GetTaskInfo

Return to Introduction  Previous page  Next page

Retrive info about a task.

 

 

Prototype:

GetTaskInfo(LONG HeaderID, LONG TaskID),PTP:TaskInfo

 

Arguments:

HeaderID

The unique ID of the header in wich the task resides.

TaskID

The unique ID of the task you want info from

 

Returns

Upon succesfull return, this function will return a PTP:TaskInfo-group.

 

See also:

SetTaskInfo

 

Example:

HeaderInfo           GROUP(PTP:TaskInfo),PRE(HIG) .

TaskInfo             GROUP(PTP:TaskInfo),PRE(TIG) .

 

Code

HeaderInfo = Self.GetTaskInfo(HeaderID, 0)

If HeaderInfo = '' Then Return .

  

TaskInfo = Self.GetTaskInfo(HeaderID, TaskID)

If TaskInfo = '' Then Return .

  

Message('Header: ' & HeaderInfo.Title & '<13,10><13,10>' & |

         'Title: ' & TaskInfo.Title & '<13,10>' & |

         'Icon: ' & TaskInfo.IconName & '<13,10>' & |

         'Visible: ' & TaskInfo.IsVisible, 'You clicked a task',ICON:Asterisk,'Ok',1)

 



Direct link to this page on our website: http://www.icetips.com/manuals/xptaskpanel/gettaskinfo.htm