Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to get top and left (relative to the form) for cell
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00666947
Message ID:
00667007
Vues:
25
>> For the controls on form I type amount, this form appears, I re-type amount, press TAB (on Check Amount form), then the Check Amount form releases and I jump to the next field.
>>
>>However, if I'm in the grid, by pressing TAB I return back to the same cell instead of the next cell. What should I do?
>
>I'm not completely clear on the problem. Sorry.
>
>>Thanks a lot in advance.

I solved the second problem by the following:

text1.when
thisform.TempMort = this.value
text1.valid
if this.DoValid
	
	if thisform.TempMort = this.value && Value does match
	    return
	endif    
	
	if thisform.CancelValidation()
		return
	endif	
	
*--------------------------------------------------------------------------
* -- SBB 9/27/00
* -- If mortgage price > sales price - issue warning; rekey the mortgage amount
*--------------------------------------------------------------------------

	if this.value > this.parent.parent.parent.txtPrice.value
		=myMessage('Warning: Mortgage amount cannot be greater than sales price. ')
		this.value= 0
		return 0
	endif

	if not empty(this.value)		

		do form ChkAmt with 'Re Enter Mortgage Amount', this.value, ;
			'MorgTemp.mortgage', objtoclient(this, 1), objtoclient(this, 2)
			
		if MorgTemp.Mortgage = 0
			return 0			
		endif
		keyboard '{TAB}' 
	endif
endif
As you see, I have to save the value in the form's property and I have to keyboard '{TAB}'. Not a very elegant solution, but it works!
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform