>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.