Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Forms, Methods and parameter passing
Message
De
06/02/2002 11:17:35
 
 
À
06/02/2002 11:08:05
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00615998
Message ID:
00616093
Vues:
46
In your code below how is it passing over the item_number? thisform.ItemNo in the click command is the Item number I am passing to the GETPRICE method? But it for the replace command thisform.getprice is returning the value calculated by GetPrice? I assume that (thisform.ItemNo) is passing the item# to the getprice mathod and does not contain the returned value?

I did not intend to return an array, I just need to return a single price xxxx.xx so I could simple say in my method return_price=xxx+yyy etc?

David



--------your code------------------------
* Form.GetPrice 'method'
lparameters tnItemNumber
external array arrPrice
select price from products where ItemId = tnItemNumber into array arrPrice
return iif(_Tally=0,0,arrPrice)

* Commandbutton.click
replace myfield with thisform.GetPrice(thisform.ItemNo)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform