Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Custom method RETURN .T., is evaluated to a 1 or 4
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00136812
Message ID:
00136918
Vues:
20
>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

in the calling method try:
local llRetVal
llRetVal = sdi.mainscr.page6.save_it
if type('llRetVal') = "L"
   This.lReturn = llRetVal
endif
Mark McCasland
Midlothian, TX USA
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform