Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Control Order change
Message
De
07/12/2000 01:36:10
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00449950
Message ID:
00450255
Vues:
27
>I'm trying to jump from one control to another for checking field validation (usually the next one) but with >> for x=1 to form.controlcount << jumps into a different control. I realize that is taking the record order (recno()) inside the scx file.

Instead of relying on the zOrder (record order) to do this, why not use the TabIndex properties of the controls? You could try something like this (unstested):
dimension this.aControls[this.controlcount]
for each loControl in this.controls
	if loControl.TabIndex > alen(this.aControl, 1)
		dimension this.aControls[loControl.TabIndex]
	endif
	this.aControls[loControl.TabIndex] = loControl
endfor
Then scan through that array,
for each loControl in this.aControls
	if vartype(loControl) = 'O'
		loControl.Valid() && Or whatever it is that you do
	endif
endfor
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform