Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Anyway to avoid this Macro Substitution
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 6 SP5
Miscellaneous
Thread ID:
01072057
Message ID:
01072059
Views:
14
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform