NextActivity – PB Docs 2017

NextActivity

PowerScript function

Description

Provides the next activity in a trace file.

Applies to

TraceFile objects

Syntax

Argument

Description

instancename

Instance name of the TraceFile object

Return value

TraceActivityNode

Usage

You use the NextActivity function to read the next activity in a
trace file. The activity is returned as a TraceActivityNode object. If
there are no more activities or if the file is not open, an invalid object
is returned. You can then use the LastError property of the TraceFile
object to determine what kind of error occurred. To use this function, you
must have previously opened the trace file with the Open function. You use
the NextActivity and Open functions as well as the other properties and
functions provided by the TraceFile object to access the contents of a
trace file directly. For example, you would use these functions if you
want to perform your own analysis of the tracing data instead of using the
available modeling objects.

Examples

This example opens a trace file and then uses a user-defined
function called of_dumpactivitynode to report the appropriate information
for each activity depending on its activity type:

See also

Open

Close

Reset


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x