Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Validation in Grid
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00706402
Message ID:
00706504
Views:
20
Help, anyone?

I put as a workaround:
if inlist(lastkey(),5,24) && Up/Down arrow
   return 
endif
But it's not a good solution, since I use the same class on the form as well. The more strange fact is, that if I would try to check parent class of the textbox, to see, if it's in the grid, it doesn't work 100% too.

Does somebody have the same problem with grid's validation in VFP6?

It's very unfortunate to sound such outdated, but I don't know, when we will upgrade. It looks like we would skip VFP7 alltogether and upgrade directly to VFP8 :)

>Hi Nadya,
>
> How and where you testing property DoValid?
>
> MartinJ
>
>>Hi everybody,
>>
>>We still have VFP6, so here is a code from Marcia Akins which I use for grid's validation:
>>
>>I use my own textbox classes inside the grid columns instead of standard classes. The problem is, that somehow user defined properties became invisible for the grid, e.g. I get errors like property DoValid is not found. My textbox class indeed has this property. Sometimes it's even can not find the grid's custom property.
>>
>>I was trying to fix this problem by checking for the property existance, but it seems ridiculous, because I know for sure, that my class has this property...
>>
>>What should I do?
>>
>>Thanks in advance.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform