Results 1 to 6 of 6

Thread: Adding a space between to literals in a string

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default Adding a space between to literals in a string

    I issue set variable %XXX% to 'ABCDEF'. I want to append '999' to it
    with a space in between. The '999' is coming from an .ini file so I
    cannot set it to ' 999' in the .ini file. My resulting 'XXX' string
    should be 'ABCDEF 999'. Any ideas or please point me in the right
    direction.

    TIA


    --
    Darrel (Dee) Witham
    Professional Data Services, Inc

  2. #2

    Default Re: Adding a space between to literals in a string

    Hi Darrell,

    NumberString = getini( blah, blah, blah )
    ResultString = clip( %XXX% ) &' '& NumberString


    Gregory Bailey

  3. #3

    Default Re: Adding a space between to literals in a string

    Hi Dee

    This is a long standing issue but I think it can be managed like this...

    set variable %XXX% to 'ABCDE'
    set variable %XXX% to 'F ' & '999' [Append to data]

    John Griffiths

  4. #4

    Default Re: Adding a space between to literals in a string

    Hi John,

    > This is a long standing issue but I think it can be managed like this...
    >
    > set variable %XXX% to 'ABCDE'
    > set variable %XXX% to 'F ' & '999' [Append to data]

    This *WAS* a long standing issue <g>

    http://www.lindersoft.com/forums/showthread.php?t=31781

    SetupBuilder 7.4 Build 3309 (May 01, 2011)
    ----------------------------------------------------------------------------

    IMPROVEMENT: (sync from SB8) [SB#104051] Installer: The "New Value" variable
    option can handle leading spaces in the "Set Variable..." and
    "Set VariableEx..." script functions.

    Friedrich

  5. #5

    Default Re: Adding a space between to literals in a string

    Thanks Friedrich. I knew it was on your ToDo list but had not noticed the new feature.
    Great job...

    John

  6. #6

    Default Re: Adding a space between to literals in a string

    Hi Darrel,

    > I issue set variable %XXX% to 'ABCDEF'. I want to append '999' to it
    > with a space in between. The '999' is coming from an .ini file so I
    > cannot set it to ' 999' in the .ini file. My resulting 'XXX' string
    > should be 'ABCDEF 999'. Any ideas or please point me in the right
    > direction.

    See:
    http://www.lindersoft.com/forums/sho...6542#post56542

    SetupBuilder 7.4 Build 3309 (May 01, 2011) introduced the above.

    Friedrich

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •