NUMBER_ACTIVATE

NUMBER_ACTIVATE

NUMBER OF LAST ACTIVATED SYSTEM OBJECT (FORM)

  • Type: System Variable
  • Parameter: 0
  • Group: System Objects

ACTION

The system variable NUMBER_ACTIVATE returns the system object number which is the last activated FORM.

SYNTAX: NUMBER_ACTIVATE in an expression

USE

  • The system variable NUMBER_ACTIVATE is used to know the object number of the last activated FORM.

ERROR

  • None.

EXAMPLE

label active0,active1

dim k0%,k1%

k0%=0

k1%=0

height 0,200:width 0,300

alpha 10:top 10,20:left 10,20:caption 10, "Click on this FORM"

form 1:left 1,310:height 1,200:width 1,300

alpha 11:parent 11,1:top 11,20:left 11,20

on_activate 0,active0

on_activate 1,active1

end

active0:

k0%=k0%+1

caption 0, "activations: "+str$(k0%)+" : "+str$(NUMBER_ACTIVATE)

caption 10, ""

caption 11, "Click on this FORM"

return

active1:

k1%=k1%+1

caption 1, "activations: "+str$(k1%)+" : "+str$(NUMBER_ACTIVATE)

caption 10, "Cliquez sur ce FORM"

caption 11, ""

return

SEE ALSO

-