Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Don't know how to describe it: more @ Say crap
Message
De
17/04/2007 13:25:17
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
 
 
À
17/04/2007 12:47:48
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
01216844
Message ID:
01216884
Vues:
13
Seems I have to do this:
		DO CASE
			CASE xx = 1
				m.Note_Name1 = ALLTRIM(a_name[ 1 ])
				@ ( 8 * ( xx - 1 ) + 7 ) * row_incr, 16 GET dummy1 ;
					FUNCTION '*NH Note' ;
					SIZE but_height, 8 ;
					VALID v_choice(m.Note_Name1) ;
					DEFAULT 0
			CASE xx = 2
				m.Note_Name2 = ALLTRIM(a_name[ 2 ])
				@ ( 8 * ( xx - 1 ) + 7 ) * row_incr, 16 GET dummy2 ;
					FUNCTION '*NH Note' ;
					SIZE but_height, 8 ;
					VALID v_choice(m.Note_Name2) ;
					DEFAULT 0
		ENDCASE
Anyone know why or if there is a way around this?



>Is there is a reason I can't pass the correct variable in button that is displayed more than once on a screen. I'm putting on an edit appt screen and it will not pass the correct name variable. There is only one read, so when the button is pushed can it only be the last value of xx rather than what is in the loop? m.Note_Name changes, but not when the button is pushed and it runs the VALID.
>
>The logic is this (it more complicated and the screen is defined, etc, but this is hopefully enough):
>
>
>
>FOR xx = 1 to 2
>
>	m.Note_Name = ALLTRIM(a_name[ xx ])
>
>	@ ( 6 * ( xx - 1 ) + 7 ) * row_incr, 16  SAY m.Note_Name
>
>	@ ( 8 * ( xx - 1 ) + 7 ) * row_incr, 16 GET dummy ;
>		FUNCTION '*NH Note' ;
>		SIZE but_height, 8 ;
>		VALID v_choice(m.Note_Name) ;
>		DEFAULT 0
>
>ENDFOR
>
>READ CYCLE MODAL
>
>
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform