Action
Returns the declaration for the window.
Availability
This functionality is supported only if you are using the Classic Agent.
Syntax
lsDeclaration = window.GenerateDecl()
Return Value
Returns a list of strings.
Variable
|
Description
|
lsDeclaration
|
The window declaration.
LIST OF STRINGS.
|
Notes
Use the
GenerateDecl method to generate window declarations dynamically. The declarations created are the same as those made with the
Record Window Declarations dialog box.
For proper formatting of
GenerateDecl,do not copy the declaration from the results file to your frame file. Instead, output the results of
GenerateDecl to an INC file, then open that file in
Silk Test Classic.
Example
LIST OF STRING lsFindDecs
WINDOW w
TextEditor.Search.Find.Pick()
w = Desktop.GetActive()
lsFindDecs = w.GenerateDecl()
ListWrite(lsFindDecs, "{GetProgramDir()}\{WindowName(w)}.inc")