Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Quick Question on Proc Returns
Message
De
26/01/2009 18:15:59
 
 
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:
01377159
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.
>>>
>>>Yes, a procedure will return .T. if nothing else is returned. Are you sure SessionOKCP() is being called? Have you set a breakpoint at the top of it?
>>>
>>>Sorry about the headache....
>>
>>Unfortunately, the only way we can test this is to build an exe. They never knew any other way until I got here, but this will NOT run from 'Do Main' nor will it run if built to an app, so no, I cannot set a breakpoint on it. I can set seventy-eleven wait windows and message boxes tho'
>>
>>And the headache is easing, finally.
>
>I'm sure it would run from DO Main with proper pathing set up, but it sounds like that is a project for a less high pressure day ;-( Good luck!

Probably would, problem is neither me (the new guy) or the other developer (who's been here 9 years) have found that yet.
"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