Hi,
it been a while since I created a dynamic dialog. attached is a simple on that I keep getting error 3364. will you please look and see what I am doing wrong?
i'm on version 2014B
Thanks
I was able to get a dynamic dialog to work using the examples above, but am curious why the code I have used for years isn't working. so if any one can point out what I have wrong here I would appreciate it
Hi,
in the code you attached to the first post, you have a line:
Switch DialogControlID
The DialogControlID variable is a string containing the name of the Control (eg. "PushButton_OK" ), not a numeric value for the control.
That is why you are getting the error 3364 ... the Switch/Case command is expecting to evaluate a number.
Just change the logic here to be something like an If/Else/EndIf group to do the check for the particular button ... eg: If DialogControlID == "PushButton_OK" ....
Hope that helps.
yes, that was it... thank you for your reply