Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

Using AutoScript – PB Docs 70 – PowerBuilder Library

Using AutoScript – PB Docs 70

Using AutoScript

AutoScript provides help when you are coding scripts by displaying
a list of possible completions for the statement you are typing.
The list can include local variables, class variables, and functions. Class variables include global and
instance variables that are in scope, objects and controls in the
current window or user object, and properties.

Turning AutoScript on

To turn AutoScript on, select Design>Options from
the menu bar in any painter that has a Script view, select the AutoScript
property page, and check each of the elements in the Include groupbox
you want to display. You can also specify that you want the list
to display only immediately after you type a dot. For example, if
you select this option, the list displays after you type this. but
not after you type this.c.

When AutoScript is enabled, a listbox displays when you pause
as you enter code in the Script view. The list includes all syntax
elements you selected on the AutoScript property page that it is
syntactically correct to paste into the script at the cursor. The
first item that matches any letters you’ve already typed is
highlighted.

If you type the name of a variable followed by a dot, the
functions and properties that apply to that variable’s
data type display in the list. Otherwise, the functions and properties
of the current object display.

Pasting items into a script

To paste an item into the script at the insertion point, double-click
the item or select it and press tab or enter.
You can use arrow keys to navigate through the list. If you had
started typing a word, the item you select from the list replaces
the word. A word is delimited by white space, a period, or a parenthesis.
If you don’t want to select an item, click outside the
popup window to dismiss it.

Pasting functions The list displays function names with their arguments. Each
version of an overloaded function displays on a separate line. When
you select a function from the list, AutoScript pastes the function
prototype into the script.

Example

Create a new window, place on it a MultiLineEdit and a CommandButton control,
and save it. Select Design>Options from the menu bar and
check the Enable checkbox and each of the Include checkboxes. Then
pause after typing the letters ml into
the clicked event script for the command button.

The listbox that displays includes all functions and properties
that apply to the command button, the variables that are in scope,
and the names of the controls that have been placed on the same
window. The default name for the MultiLineEdit control (mle_1),
is highlighted.

Double-click the name of the MultiLineEdit control to paste
it into the script, then add a period and the letter t:

The listbox that displays includes all functions and properties
that apply to MultiLineEdit controls, with the first item beginning
with t
highlighted.


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