Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Strange behavior of textbox in a grid
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Strange behavior of textbox in a grid
Divers
Thread ID:
00682715
Message ID:
00682715
Vues:
51
Hi everybody,

I have a grid on DataEntry form. This grid has ValidateCurrentRow method described by Marcia Akins.

I substituted each textbox with my own class textbox in the grid in design time. I don't re-assign or change grid's record source in run-time.

One of the textboxes in the grid has this in Valid method:
if this.DoValid
	if thisform.CancelValidation()
		return
	endif

	thisform.ValidateCode('lender','lender', this.value, 'lender.code','code','fullname', ;
		this.controlsource, 'Pop up List for Lender', '' )

	this.value = evaluate(this.controlsource)

	with this.parent.parent
		if left(this.value,4)='MISC'
			.column2.text1.enabled= thisform.EditMode
			.column2.text1.lRequired = .t.
		else
			.column2.text1.value=''
			.column2.text1.enabled=.f.
			.column2.text1.lRequired = .f.
		endif
	endwith
endif
It gives me an error, property DoValid doesn't exist. I verified in Debugger, that I'm using my own textbox in the grid, which does indeed has this property.

This error occurs, when I try to move to the next record (my validation method is fired at this moment).

I'm stumped. Do you see, what could be wrong? Looks like some bug to me.

Thanks in advance.
If it's not broken, fix it until it is.


My Blog
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform