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:
00706410
Views:
28
Valid code of the class has the following code:
********************************************************************
*  Description.......: wgTextBox.Valid
*  Calling Samples...:
*  Parameter List....:
*  Created by........:
*  Modified by.......:
********************************************************************
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform