>I have a problem.
>
>I need to have the preprocessed sourcecode ( #DIRECTIVES applied ).
>Exist a way for this ?
>This is for debug control.
>
>But the same problem has a greater impact in the following case:
>- Properties expression are not preprocessed ( a bug for me )
>- i want use WriteExpression for put into a property the preprocessed expression
>
>Exampe:
>
>#DEFINE PRECONSTANT1 1
>* table.expression is 'm.this.byby>PRECONSTANT1'
>objselected[1].WriteExpression('someprop',??????)
>* now objselected[1].someprop have to be = m.this.byby>1
>
>
>Someone knows one mode ( ????? operation ) in order making to make it to the VFP preprocessor ?
>
>The only way that i found for use preprocessor at runtime is with COMPILE/EXECSCRIPT,
>but i have not found a way for get the preprocessed code.
>
>I have to rewrite the VFP preprocessor ?
>A lot frustrating, I have the vfp preprocessor available, but I cannot use it.
>
>Thanks,
>Fabio
hi Fabio,
It looks like you'll have to write your own preprocessor.
The only way I've found to see some preprocessed code is when there's an error on a line, eg
#define MAX_INTEGER (0x7fffffff)
set MAX_INTEGER ON
The prog.err file looks like
set (0x7fffffff) ON
Error in line 30: Command contains unrecognized phrase/keyword.
There may be a way with a sys() that is not documented, but then someone from Microsoft would have to answer that
Gregory