Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Where is my object after SCATTER NAME...
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Where is my object after SCATTER NAME...
Divers
Thread ID:
00123220
Message ID:
00123220
Vues:
51
I have a class called rule42 which is based on the license class which is based on custom.

This is the Init of rule42:

lparameter cLicID
dodefault(cLicID)
select PROGRAMB
if pcount() = 1
if ! seek(cLicID, 'PROGRAMB', 'LIC_ID')
return .f.
endif
endif
scatter name oProgramBRcd

Here is the init of the license class:

lparameter cLicID
select LICENSE
if pcount() = 1
if ! seek(cLicID, 'LICENSE', 'LIC_ID')
return .f.
endif
endif
scatter name oLicenseRcd
with this

endwith

The problem I am seeing is the scatter object, oLicenseRcd, is created, but as soon as License.Init ends the object disappears. Almost as if it is losing scope. Do objects created with scatter..name have scope?

TIA
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform