Information générale
Catégorie:
Codage, syntaxe et commandes
Titre:
How to pause execution while in another program?
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement