Can InstallShield Scripting Convert Integer to String?
sprintf(nKey);
The IS compiler choked on it. I don't want to just show this
value in a message box or something, I want to display it on a
form in my dialog, and I can only send a string to the edit box
like this...
CtrlSetText( szDlg, IDC_KEY, szKey );
But unfortunately I am unable to convert integer to string and
preferrably I would like to pass it from my DLL as a string
that is ready to use in that line if I knew how. Ideally writing
C++ code that returns a pointer to a string and then
converting the pointer to a string in IS would be best if I knew
a little more about pointers :-( or if I could just pass it in from
the DLL as a string then I would be set.
John
"John Hulsman" <jhul...@jasperengines.com> wrote in message
news:3b817fd3$1...@news.installshield.com...
Sprintf (szKey, "%d", nKey);
This stores the integer value of nKey in string szKey and
it works fine. I'm sorry about the previous response, it
was just the frustration of all of this.
Thank you,
John
Or you could use a variant type (not documented very much) , e.g.:
NUMBER nTest;
VARIANT vTest;
STRING szTest;
begin
nTest = 99;
vTest = nTest;
szTest = vTest;
MessageBox (szTest, INFORMATION);
Regards
--
Dave English,
Client Software Development, Thus PLC,
Dorking Business Park, DORKING, Surrey, UK. RH4 1HJ
http://www.thus.net