Change MacroChar only for one OraScript

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
sinys
Posts: 186
Joined: Tue 21 Feb 2012 03:44

Change MacroChar only for one OraScript

Post by sinys » Mon 12 Aug 2013 16:12

How I can change MacroChar only for one OraScript?
If it not possible in current moment, please add this feature! :)

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: Change MacroChar only for one OraScript

Post by AlexP » Tue 13 Aug 2013 08:38

Hello,

Work with macros is implemented for all the products and components in the same way on the common level, therefore the symbol used for macros identification is common for all the components and can't be modified dependently on a used component.

sinys
Posts: 186
Joined: Tue 21 Feb 2012 03:44

Re: Change MacroChar only for one OraScript

Post by sinys » Tue 13 Aug 2013 11:14

My program allows to write end-users own queries. I use standard '&' char of course in throughout my program, but my users want to change this char and if I change global variable my scripts will no longer function.
I do NOT propose to take a second global variable to TOraScript. I suggest make this property locally for TMacros like
EndUser_OraScript.Marcos.MacroChar := '#';

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: Change MacroChar only for one OraScript

Post by AlexP » Wed 14 Aug 2013 13:29

Hello,

For the time being, we don't plan to change this behaviour. We will investigate the possibility to implement this feature in the next version. If you have the version with source code, we can tell you what changes to make to implement this feature.

Post Reply