Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Control Order change
Message
From
07/12/2000 01:36:10
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00449950
Message ID:
00450255
Views:
25
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform