www.icetips.com  Icetips Utilities Documentation 2/26/2010    

Thread Limit Class: SetInstanceToSelect

Previous  Top  Next  


Prototype: (Long pInstanceToSelect)

 

pInstanceToSelectInstance number to select when window is activated if multiple instances are allowed

 

This method sets the InstanceToSelect property.  Note that this is not currently implemented and the last instance is the default instance to be selected.

 

Example:

ITThreadLocal  Class(ITThreadLimitClass)

TakeLimit        Procedure,VIRTUAL

              End

 

ThisWindow.Run  PROCEDURE

Code 

ITThreadLocal.Init('Browsepeople')

ITThreadLocal.SetProcedureLimit(5)

ITThreadLocal.SetInstanceToSelect(5)  !! Last instance

If Not ITThreadLocal.CheckProcedure(ITThreadLimit)

  Return LEVEL:Fatal

End

ReturnValue = PARENT.Run()

RETURN ReturnValue

 

 

ThisWindow.Init PROCEDURE

Code

If Not ITThreadLocal.AddProcedure(QuickWindow)

  Return LEVEL:Fatal

End

 

See also:

InstanceToSelect

ActivateWindow

 



Direct link to this page: http://www.icetips.com/manuals/utilities/setinstancetoselect_threadlimit.htm