Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Quick Question on Proc Returns
Message
De
27/01/2009 10:21:36
 
 
À
26/01/2009 19:02:53
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01377136
Message ID:
01377331
Vues:
13
>>>>>>Hey Guys
>>>>>>
>>>>>>Trying to track a flag variable through and, as best as I can tell, the only place it is getting set is in a line
>>>>>>
>>>>>> lSessionYOpen=SessionOKCP()
>>>>>>where SessionOKCP() is
>>>>>>
>>>>>>PROC SessionOKCP
>>>>>>if not m.viewonly
>>>>>>	SHOW GET m.leavehere, 1 PROMPT 'OK'
>>>>>>else
>>>>>>	SHOW GET m.leavehere, 1 PROMPT 'EXIT'
>>>>>>endi
>>>>>>RETURN
>>>>>>
>>>>>>
>>>>>>Now, procedures always return True, yes? And if that is so, why does it appear that lSessionYOpen never gets changed from it's initialization of False?
>>>>>>
>>>>>>Speak in small words please, as I've got a raging headache.
>>>>>
>>>>>You can download the GoFish utility (Download#9925) to search for strings in an entire project. It's useful to check if you might have another version of SessionOKCP() somewhere that's being accessed unexpectedly.
>>>>>
>>>>>It sounds like the issue is a value isn't getting changed. If it is being changed, but you don't know where, you can use the debugger and set it to break when the variable's value changes.
>>>>>
>>>>>You're right, the proc you've listed should return .T. You could experiment with RETURNing something else, inserting WAIT WINDOW just above it etc. to see if that code is actually being accessed.
>>>>
>>>>I haven't had much luck with GoFish and this project, mostly because half the code isn't in the project. Don't ask...
>>>
>>>All the more reason for me to suspect the wrong code is being executed.
>>
>>Well, it wouldn't be the first time that I've gone into the other developers office and said (In best Inigo Montoya voice) "I'm not thinking that this is doing what you think it is doing"
>
>"My name is Inigo Montoya. Your code @#$%. Prepare to die"

Unfortunately, the guy who wrote this code IS dead.
"You don't manage people. You manage things - people you lead" Adm. Grace Hopper
Pflugerville, between a Rock and a Weird Place
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform