View Single Post
  #1  
Old 06-02-2011, 11:39 AM
teognost teognost is online now
Registered User
 
Join Date: 05-25-2004
Location: Prague,Czech Republic
Posts: 200
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: <Error parsing macros: Unrecoverable Parse Error at position 540 - expecting percent_sign>

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?
Reply With Quote