Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Forms, Methods and parameter passing
Message
From
06/02/2002 11:17:35
 
 
To
06/02/2002 11:08:05
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00615998
Message ID:
00616093
Views:
41
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)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform