GetTasks

GetTasks

Postby nageswaragunupudi » Tue Jan 29, 2008 9: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
User avatar
nageswaragunupudi
 
Posts: 10624
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: GetTasks

Postby Enrico Maria Giordano » Tue Jan 29, 2008 9:48 pm

I confirm the problem.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Postby Antonio Linares » Wed Jan 30, 2008 9: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42080
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Enrico Maria Giordano » Wed Jan 30, 2008 10:27 am

You are right.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Postby nageswaragunupudi » 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
User avatar
nageswaragunupudi
 
Posts: 10624
Joined: Sun Nov 19, 2006 5:22 am
Location: India


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Enrico Maria Giordano, Horizon, nageswaragunupudi and 68 guests