Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] General Discussion

Reply
 
Thread Tools Rate Thread Display Modes
  #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
  #2  
Old 06-02-2011, 12:03 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,003
Use vbld_EscapeString when storing the macro value to escape any special characters.
http://www.kinook.com/VisBuildPro/Ma...scriptmisc.htm
Reply With Quote
  #3  
Old 06-03-2011, 07:56 AM
teognost teognost is online now
Registered User
 
Join Date: 05-25-2004
Location: Prague,Czech Republic
Posts: 200
thanks a lot for info!
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -5. The time now is 05:29 PM.


Copyright © 1999-2023 Kinook Software, Inc.