Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Anyway to avoid this Macro Substitution
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 6 SP5
Divers
Thread ID:
01072057
Message ID:
01072059
Vues:
15
This message has been marked as a message which has helped to the initial question of the thread.
>Hi all
>
>I have a form containing multiple Business Objects classes. This form also contains a container, which in turn contains a command button. The container has a property which contains the name of the BO with which it is supposed to deal. The property is populated at Design Time and will stay constant for this container and it's contained object. This is my code, can I avoid the macro substitution I have to do?
>
>
LOCAL lcBO
>
>lcBO = THIS.PARENT.cBOName
>
>
>* Confirm the changes
>IF THISFORM.&lcBO..lConfirmOnDelete ;
>		AND (goApp.DisplayMessage("VSO_DeleteRec") = MSGNO)
>		>	* User did not confirm the deletion
>	RETURN
>ENDIF
>
>
>THISFORM.&lcBO..DELETE()
>
>Please advise.
>
>
>Update: I have a typo in the title I meant avoid rather than void.
IF EVALUATE([THISFORM.]+lcBO+[.lConfirmOnDelete])

...
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform