GetTasks

Post Reply
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

GetTasks

Post by nageswaragunupudi »

When I use GetTasks function, it is returning an empty array. Can any others confirm if the function is working correctly for them ? I am using FWH 8.01
Regards

G. N. Rao.
Hyderabad, India
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

It looks as a recent change in Windows! (or we never considered that a main window or dialog has to be created before)

If you try this without creating a window, Windows is returning zero:
MsgInfo( GetActiveWindow() )

In order to have GetTasks() running fine, call it from a running window:

DEFINE BUTTON OF oBar ACTION MsgInfo( Len( GetTasks() ) )
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Post by nageswaragunupudi »

Yes. I think we never considered it necessary. Now better all users note this point. So that like me we don't get a surprise.
Regards

G. N. Rao.
Hyderabad, India
Post Reply