Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Strange situation - no error and not all code run
Message
 
 
À
04/02/2014 17:25:56
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01593215
Message ID:
01593223
Vues:
26
>I have seen this happen many times before. You are willing to bet your life that a condition is true, in this case b_sched.pref_lvl11 = 3. I am betting that this condition is not true. Maybe a simple spelling error? Try to type it again, and see what happens.
>

See my response to Al. The problem was with the code as it was structured:
case b_sched.pref_lvl4=3
		if !empty(b_sched.whichlevel)
			lcWhichLevel = lower(alltrim(b_sched.whichlevel))
			do case
			case m.lcWhichLevel = 'tch_level' and not csrTemp.tch_level>=b_sched.tch_level
				lcReqOK = 'Booking requiring a minimum alpine level would be violated'
			case m.lcWhichLevel = 'snb_level' and not csrTemp.snb_level>=b_sched.snb_level
				lcReqOK = 'Booking requiring a minimum snowboard level would be violated'
			case m.lcWhichLevel = 'tele_level' and not csrTemp.tele_level>=b_sched.tele_level
				lcReqOK = 'Booking requiring a minimum telemark level would be violated'
			case m.lcWhichLevel = 'misc_level' and not csrTemp.misc_level>=b_sched.misc_level
				lcReqOK = 'Booking requiring a minimum other level would be violated'
			endcase
		endif
The above pref_lvl4 was 3. So, that code was executing and now I was expecting my other code to execute as well. What a rookie mistake!!!!!!!
If it's not broken, fix it until it is.


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

Click here to load this message in the networking platform