FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour GetTasks
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
GetTasks
Posted: Tue Jan 29, 2008 09:01 PM

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
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
GetTasks
Posted: Wed Jan 30, 2008 09:38 AM

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
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
GetTasks
Posted: Wed Jan 30, 2008 10:36 AM

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

Continue the discussion