Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Validate the field
Message
From
08/10/1998 07:58:16
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Validate the field
Miscellaneous
Thread ID:
00144944
Message ID:
00144944
Views:
77
I have a Grid Box With 4 columns
The first column is stockid and then specie, grade , unitcost

Questions:

1) How to validate those fields are exist or not?

I have try this:

In the grid.beforerowcolchange

With thisform.grid
idkey=.cstock.combo1.value+cspecie.combo1.value+cgrade.combo1.value
yesfound=seek(idkey,"stock",1) && (index key - stockid+specie+grade
if !(yesfound)
messagebox("Non-Existing Stock")
else
stor unitcost to .ccost.text1.value
endi
endwith

Is this code correct??
Next
Reply
Map
View

Click here to load this message in the networking platform