Information générale
Catégorie:
The Mere Mortals Framework
Kevin,
I have a simple question about the cSelect class. Lets say I have a custom method in a bizobj that scans a lookup table and does inserts into my alias. How would the code look?
Example:
loLookup = CREATEOBJ('cSelect', 'v_lookup')
SCAN
IF SOMETHING
loAlias = CREATEOBJ('cSelect', This.GetAlias())
Replace ...
Endif
loLookup = CREATEOBJ('cSelect', 'v_lookup')
ENDSCAN
Is it best to not create loLookup again and just select the named alias? I normally just select the alias, but there are times when I want to be sure my bizobj restores the previously selected alias. Saving the alias and restoring it later is a tried and true procedural approach, but what do your recommend?
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