Information générale
Catégorie:
Codage, syntaxe et commandes
Titre:
Custom method RETURN .T., is evaluated to a 1 or 4
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
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement