Information générale
Catégorie:
Codage, syntaxe et commandes
>>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
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