Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Triggers in a form
Message
De
05/01/2001 00:51:16
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Triggers in a form
Divers
Thread ID:
00459678
Message ID:
00459678
Vues:
51
Hi everybody!

Is there a way to send information to a Editbox when a trigger fires up?
I have a form with a editbox and I want know when an specific field (balance) is equal to 0. I tried with a trigger update and stored procedure but I can't figure out how to put this information into the editbox.

Here's my code:

Create trigger on inventory for Update as IsBalanceZero()

Procedure IsBalanceZero

if _triggerlevel = 1
if inventory.balance = 0 then
wait window "Equal to 0"
* here I'd like to send this info to the editbox
* thisform.Edit1.value = Inventory.Item_ID + "Re-order"
endif
return .t.
endif
EndProc

thanks in advance
Happy New Year!!!

Martin Alcaraz
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform