msgbox …XamGantt("Identifier").GetTaskProperty(2, gntTaskName)
This topic provides information about the xamGantt™ control’s testable user replay-only methods.
This topic contains the following sections:
The following table briefly explains the replay-only methods for testing controls. Detailed information about the methods follows the table.
The GetTaskProperty
method retrieves a task’s value.
The following table lists the code examples included in this topic.
Retrieves and displays the third (index=2) visible task name in a message box.
msgbox …XamGantt("Identifier").GetTaskProperty(2, gntTaskName)
The following list contains the possible exceptions for the method and the reason that is likely to be causing them.
The specified project task index [{1}] is out of range
The specified project task index[{1}] was not found
The SetTaskProperty
method allows changing a task’s value with a specified string value.
The following table lists the code examples included in this topic.
Changing the task named “Planning” to a name “New name”.
XamGantt("Identifier").SetTaskProperty “Planning”, gntTaskName, “New name”
The following list contains the possible exceptions for the method and the reason that is likely to be causing them.
The specified project Task index [{1}] is out of range
Cannot find the following project task [{1}]
This method allows setting the first visible date to a task where the first date increment includes the supplied date.
The following table explains the method’s parameter followed by code example.
Set the first visible DateTime to one where the first date increment includes 9/14/2012 8:00AM.
XamGantt("Identifier").SetFirstVisibleDate #9/14/2012 8:00AM#
None (outside of invalid or not included parameters thrown by UFT).
The following topics provide additional information related to this topic.