Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Macro expansion
Message
De
10/09/2001 15:45:51
 
 
À
07/09/2001 15:02:08
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00554002
Message ID:
00554871
Vues:
9
>Has anyone run into this problem?

Alan -

Your code causes syntax errors in VFP6 for me.

Yet, I am having a similar problem with macro expansion.

Could anyone try the following:
* Release current file menu popup
RELEASE POPUP _MFILE

* Redefine the File popup
DEFINE POPUP _MFILE MARGIN RELATIVE SHADOW COLOR SCHEME 4

* Populate the File popup with the users apps
LOCAL lnCounter, lcBar, lcOnSelection, la1(2, 4)
la1 = ''
la1(1, 2) = "x.scx"
la1(1, 3) = "Message for x   "
la1(1, 4) = "X"

la1(2, 2) = "y.scx"
la1(2, 3) = "Message for y   "
la1(2, 4) = "Y"

FOR lnCounter = 1 TO ALEN( la1, 1 )
	lcBar = ALLTRIM( STR( lnCounter ) )
	DEFINE BAR &lcBar OF _MFILE ;
		PROMPT la1[ lnCounter, 4 ] ;
		MESSAGE la1[ lnCounter, 3 ]

	lcOnSelection = 'ON SELECTION BAR ' + lcBar + ;
		' OF _mfile DO FORM ' + la1[lnCounter,2]

	&lcOnSelection
ENDFOR
When I compile the code in VFP6, it works fine in VFP6. When I compile it in VFP7 it works fine in VFP7. Neither code runs correctly in the opposite version, however. Sometimes (like in this example) it just acts differently. Sometimes it causes Syntax errors at the macro expanded line.

Anyone else see different behavior?

- George
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform