Event parameter passed by reference doesn't work using VBScript
Posted on 1998-12-02
I have an Event "MyContextMenu" that I fire right before I plan to display a context menu. It contains a BOOL* parameter bDisable that is passed by reference so if the client sets that to TRUE I will not put up the context menu. This works fine in VB but when I try it in VBScript, it doesn't return the value the client passed.
Here is the definition for my event:
void FireMyContextMenu(BOOL FAR* bDisable)
Here is the entry from the ODL:
[id(1)] void MyContextMenu(boolean* bDisable);
And finally here is the call to fire the event:
BOOL bDisable = FALSE;
FireMyContextMenu(&bDisable);// After this call with the following VBScript code bDisable should be TRUE
bDisable = True
Any ideas what I can do to make this work in both VB and VBScript without changing the data type (it's in the field already).