Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Return status
Message
 
 
To
02/11/2004 10:30:44
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 6
OS:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00957028
Message ID:
00957031
Views:
22
You can return .F. from the method indicating failure.
* CheckSomething method
...
if I=2
  messagebox('problem')
  return .F.
endif
...
* Commandbutton click
IF Thisform.CheckSomething()
  * Check is ok, continue processing
ENDIF
>I have a method that checking something.
>I call to the method from command button.
>If the check is good I want to continue, if not to return.
>For example:
if I=2
>messagebox('problem')
>return
>endif
>If I put the 'return' in the method it's not help,
>(the program finish only the method but the command button lines continue).
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform