Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MultiUser Issue
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00540233
Message ID:
00540270
Views:
39
>If the button is clicked and it reads 'Edit' then
>- if I can get a lock on the record then
>-- perform the button change
>- else
>-- tell the user the record is locked
>- endif
>else
>-- It must be a save button, so save the record...
>-- ...and perform the button change.
>endif

I tried this:
DO CASE
   CASE ... = 'EDIT'
       IF ISRLOCKED()
           MESSAGEBOX('BLA BLA BLA')
           RETURN
       ENDIF
       *** EDIT STUFF   
   CASE ... = 'SAVE'
      *** DO THE SAVE STUFF
ENDCASE
But that is not working either.
I have this method called set_errors() that is a method of my oApp class.
But I set it off by saying ON ERROR so I can Get the default Error Message for this segment of code.

I Don't know what to do now.
What is Wisdom?
Wisdom - The ability to respond to any situation according to God's Plan.
Therefore:
USE Wisdom IN Everything ORDER priority AS Knowledge
SELECT Knowledge
BROWSE FOR Understanding WHERE Wisdom=Guide

LeRoy Jackson
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform