It is currently Wed Dec 11, 2019 11:47 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: With - EndWith bug when using /PREPROCESS
PostPosted: Tue Jul 30, 2019 10:39 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sat May 05, 2007 5:31 pm
Posts: 631
Location: Linz, Austria
When you compile following example with pbCompiler.exe /PREPROCESS ...
Code:
test.RECT

With test  ; <--
  \left = 0 
EndWith
... then the space characters (after the expression) will also be transmitted, which leads to an error:
Code:
test.RECT
With test
 test  \left = 0
EndWith
(Also found inside Vehicle.pb (Line 182: With *Vehicle) from the help file)


Top
 Profile  
Reply with quote  
 Post subject: Re: With - EndWith bug when using /PREPROCESS
PostPosted: Wed Jul 31, 2019 12:42 am 
Offline
Addict
Addict
User avatar

Joined: Wed Dec 23, 2009 10:14 pm
Posts: 3149
Location: Boston, MA
I hate to say it, but I banned With..EndWith in my codebase to avoid these issues. Also, the debugger cannot expand the Macro '\somefield' elements while stepping through code. Meaning, you cannot hover over any of the 'With' variables.

_________________
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum


Top
 Profile  
Reply with quote  
 Post subject: Re: With - EndWith bug when using /PREPROCESS
PostPosted: Sun Aug 18, 2019 6:26 pm 
Offline
Addict
Addict
User avatar

Joined: Sat Feb 13, 2010 3:45 pm
Posts: 941
chi wrote:
... then the space characters (after the expression) will also be transmitted, which leads to an error

Not the spaces lead to an error, the With / EndWith commands lead to the error, because they should not occur in the preprocessed file.
'test \left = 0' is a valid command.

_________________
sorry for my bad english


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 10 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye