Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Strange situation - no error and not all code run
Message
From
04/02/2014 17:30:30
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01593215
Message ID:
01593224
Views:
28
>>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!!!!!!!

I wasted too much time writing my answer, you are too quick for me. I need a faster keyboard.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform