Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Wierd Behavior - Could be Me
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Wierd Behavior - Could be Me
Miscellaneous
Thread ID:
00569523
Message ID:
00569523
Views:
47
Last night I was working on a form in VFP7, I have a text box that the user enters a length of time in. In the valid method, I check the begining time and the length to make sure it does not conflict with any other records. But each time I ran it, the valid event wasn't returning a conflict even though I knew there was a conflict. I put a set step on in the valid method, and it was hitting my line that calls the conflict check method (ctChkDoc()), but then going to the next line without running it. Yet that same function is called from another form and runs great. I still haven't figured out why it was skipping over that line. With set step on, it never even entered the fuction. Below is the code, and I've put <== marker where the functions were called but didn't fire:
* Setup variables for conflict checking
ltTestStart=schcase.begintime
ltTestEnd=ltTestStart+ttos(this.value)  <==  Does not call ttos() and doesn't store anything to ltTestEnd
SELECT meetingprocedures
lcDocNum=ALLTRIM(meetingprocedures.docnumber)
* Check for SurgeonConflict
lcConflict=ctChkDoc(lcDocNum,ltTestStart,ltTestEnd,gnMeetID) <== Never calls function and lcConflict is never populated
I exitted VFP7 and got back in, ran it again, same results. Compile both ttos and ctChkDoc from command window, no errors. I don't really this this is a bug in VFP as much as maybe I've got something set screwy. Any suggestions where I should start looking would be appreciated.

Kirk
Next
Reply
Map
View

Click here to load this message in the networking platform