Valid code of the class has the following code:
if this.visible and this.DoValid
if pemstatus(thisform,'CancelValidation',5) and thisform.CancelValidation()
return
endif
if empty(this.value) and this.lRequired
do Alert with 'This field should be populated!'
return 0
endif
endif
>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