|
-
Mar 29th, 2000, 10:15 PM
#1
Thread Starter
Hyperactive Member
Hi.
I have an array of command buttons. A `case select` command splits them into cases. At the end of case (6) i want to cause case (7) to be called. I`ve tried calling Click1_command and i get very strange results. It looks like its getting the scope of things wrong. Ie, the default `me` i assume it uses maybe points to the wrong form, as it checks to see if certain controls have valid data.
Ie, in case 7, the code checks to see if all the fields that should be filled in are being filled in. When i invoke case 7 in the usual way, it works, but when i invoke it from case 6, it complains. It then puts up a requester, and doesnt wait for a mouse click, then quits (as if i hit escape). Very strange. I assure you that all the code works without this new invocation.
I`ve tried putting `me.` or `frmname.` before the command1_click(7) call, but it doesnt even compile then (method or data member not found).
Any ideas? Can you invoke events in this way, or is it Bad?
Thanks,
Alex.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|