Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to get an object number ?
Message
De
20/04/2000 05:39:38
 
 
À
19/04/2000 18:35:07
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00361187
Message ID:
00361693
Vues:
17
>>the _screen.objects(nindex)... allows to uniquely identify an object in the _scree but how can i know this 'nindex' for a form ? Is there a command which returns this number ? i'd like to get it in the init event of the form.
>
>If you want it in the Init(), its probably the largest number, but I wouldn't rely on it. What are you giong to do with it? You should build your own Forms Manager.

Above all Thanks to everybody for replying.
Anyway what i was trying to do is to increment (add 1) to a counter related to a specific form...trying to explain better : there is a property of a form (errcount) which should be incrementated (?) if an error occurs. I put an on error do errprocname in the init of the form...
I tried to put the following instrutions in the procedure :

with _screen.activeform
.errcount = .errcount + 1
endwith

but it gives me an error...it works fne if i use the form index of the callingform. The point is that i get the number identifying the form
in the init event of the form, but i think it could change if i open or close
other forms or objects ...Maybe it would be better to refer the form by its name as said someone of u.
Anyway, thanking u all for ur kindness i give u my regards
Alessio
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform