Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to pause execution while in another program?
Message
De
22/04/1999 12:41:57
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
How to pause execution while in another program?
Divers
Thread ID:
00211102
Message ID:
00211102
Vues:
59
In the following code I have automated Outlook from VFP6 and have created an Outlook contact object(myItem). I need to confirm that this item is saved before committing the record to Fox. My problem is that Fox continues processing code and falls into the if statement before control is returned from Outlook and the condition can be accurately evaluated.

myItem.spouse=allt(proper(customer.city))
myItem.display

**I need to stop the code here and wait for control to be returned **from Outlook**

BEGIN TRANSACTION
=tableupdate()
if myItem.saved=.f.
ROLLBACK
thisform.myquitbtn1.click else
END TRANSACTION
endif

thanks
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform