Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MultiUser Issue
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00540233
Message ID:
00540270
Vues:
31
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform