Kinook Software Forum

Kinook Software Forum (https://www.kinook.com/Forum/index.php)
-   [VBP] General Discussion (https://www.kinook.com/Forum/forumdisplay.php?f=2)
-   -   Problem with special character % (https://www.kinook.com/Forum/showthread.php?t=4872)

teognost 06-02-2011 11:39 AM

Problem with special character %
 
I read from a table all the values from a specific field,store the current value in a macro %MACRO1% and compare it with some other macro %MACRO2% (in a step which is executed with the condition like 'Build only if macro or expression ).
Problem is when reading the table sometimes the field contains a string with special char % -in such a cases the build fails:

Error expanding macros or script in property condexpr:

because it finds inside the macro just one char % and tries to interpret it as a macro.
Is there anyway i can make VBP to interpret the content of a macro as it is -without considering % as a macro sign -or the only way is to parse the content of the macro and changing it by doubling all the % chars?

kinook 06-02-2011 12:03 PM

Use vbld_EscapeString when storing the macro value to escape any special characters.
http://www.kinook.com/VisBuildPro/Ma...scriptmisc.htm

teognost 06-03-2011 07:56 AM

thanks a lot for info!


All times are GMT -5. The time now is 07:37 PM.


Copyright © 1999-2023 Kinook Software, Inc.