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