Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
_Tally and timers
Message
 
À
10/03/2006 17:10:41
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
01102133
Message ID:
01103343
Vues:
17
>>Peter,
>>
>>What about making _tally private?
>>
>>
>>clear
>>
>>local test1(1)
>>
>>create cursor test (id I autoinc)
>>append blank
>>append blank
>>append blank
>>append blank
>>
>>select * from test into array test1
>>
>>AnotherSelect()
>>
>>? Program(), _tally
>>
>>use in Select('test')
>>
>>function AnotherSelect
>>local test2(1)
>>private _tally
>>
>>select * from test where .f. into array test2
>>
>>? Program(), _tally
>>
>
>Great! Not the panacea for all pain, I guess, but this might become a new best-practices principle.
>
>Pity that it can't be declared as LOCAL.

I am not so sure PRIVATE _tally would work. One reason would be that vars declared as PRIVATE are visible/accesible/asignable by subsequently executing methods (timer.timer being one of them).
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform