Geeks With Blogs


Google My Blog

Catch me at: The List!

My InstallScript Utility Belt My Amazon Wishlist
My Standard Disclaimer

Chris G. Williams Beware: I mix tech and personal interests here.

11.  If I have a function in InstallScript that accepts a STRING by reference, let me pass in (and get back) a value from a STRING array.

Where ReadKey is my function and the 4th parameter accepts a STRING ByRef...
STRING szWebConfigKey(20);
ReadKey(ISMSI_HANDLE, szInstallDir, "szWebConfigKey(6));

This throws an error at compile time. So I have to do this instead...
STRING szWebConfigKey(20), szTemp;
ReadKey(ISMSI_HANDLE, szInstallDir, "szTemp);
szWebConfigKey(6) = szTemp;

I can do this in VB.NET no problem, but not in InstallScript. I realize the workaround is trivial, but it's an annoyance.

Posted on Thursday, February 10, 2005 9:42 AM General Interest , Installshield | Back to top

Comments on this post: Installshield Wishlist Item #11

No comments posted yet.
Your comment:
 (will show your gravatar)

Copyright © Chris G. Williams | Powered by: