Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Get preprocessed code.
Message
De
13/11/2004 04:12:52
 
 
À
12/11/2004 05:53:57
Information générale
Forum:
Visual FoxPro
Catégorie:
Visual FoxPro Beta
Divers
Thread ID:
00960730
Message ID:
00961118
Vues:
8
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform