Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Custom method RETURN .T., is evaluated to a 1 or 4
Message
From
16/09/1998 03:55:12
Mark Hall
Independent Developer & Voip Specialist
Keston, Kent, United Kingdom
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00136812
Message ID:
00137165
Views:
16
>have a custom method of a page class called save_it. save_it does various table updating, then caclucations, then refreshes. as the last statement it "RETURN .T.". about 25% of the time i get a "DATA TYPE MISMATCH". the calling custom method that has the mismatch is save_button in a toolbar class. when i step throught the debugger i can see the RETURN .T. in save_it being executed (it is the only return in save_it). then save_button (the calling custom method in a toolbar class) has a "this.lreturn = sdi.mainscr.page6.save_it". this.lreturn is a 1 about 25% of the time (once i saw it as a 4). the "if lreturn" in save_button give me the data type mismatch.
>
>what gives? save_button calls about 15 other custom save_it methods. there is only one that is giving me trouble. the problematic save_it only has acouple of lines of code, with a single return .t. at the bottom.
>
>any ideas?
>
>thanks - brenda

Hi,

Maybe it's a scope problem, are you sure that you have LOCALled lReturn in every method (no typos or anything).
Regards
Mark

Microsoft VFP MCP
Menulib - OO Menus for VFP www.hidb.com/menulib
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform