General information
Category:
Coding, syntax & commands
>>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
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only