PDA

View Full Version : Adding a space between to literals in a string



NewsArchive
06-29-2011, 01:16 AM
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

NewsArchive
06-29-2011, 01:17 AM
Hi Darrell,

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


Gregory Bailey

NewsArchive
06-29-2011, 01:17 AM
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

NewsArchive
06-29-2011, 01:17 AM
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

NewsArchive
06-29-2011, 01:18 AM
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/showthread.php?p=56542#post56542

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

Friedrich

NewsArchive
06-30-2011, 01:13 AM
Thanks Friedrich. I knew it was on your ToDo list but had not noticed the new feature.
Great job...

John