Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Custom method RETURN .T., is evaluated to a 1 or 4
Message
 
 
À
16/09/1998 03:55:12
Mark Hall
Independent Developer & Voip Specialist
Keston, Kent, Royaume Uni
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00136812
Message ID:
00137230
Vues:
12
>>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).

save_it
------------
RETURN .T.

save_button
--------------------
this.lgoodsave = osdi.omainscr.page6.container1.save_it


i made lgoodsave a custom property after these problems started. it was just a local within save_button. what do you think?

thanks - brenda
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform