PowerScript Reference

Appeon PowerBuilder® 2019 R2

FOR WINDOWS

DOCUMENT ID: DC37781-01-1900-01

LAST REVISED: June 09, 2020

Copyright © 2019 Appeon. All rights reserved.

This publication pertains to Appeon software and to any subsequent release until otherwise indicated in new editions or technical notes. Information in this document is subject to change without notice. The software described herein is furnished under a license agreement, and it may be used or copied only in accordance with the terms of that agreement.

Upgrades are provided only at regularly scheduled software release dates. No part of this publication may be reproduced, transmitted, or translated in any form or by any means, electronic, mechanical, manual, optical, or otherwise, without the prior written permission of Appeon Inc.

Appeon and other Appeon products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of Appeon Inc.

SAP and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP and SAP affiliate company.

Java and all Java-based marks are trademarks or registered trademarks of Oracle and/or its affiliates in the U.S. and other countries.

Unicode and the Unicode Logo are registered trademarks of Unicode, Inc.

All other company and product names mentioned may be trademarks of the respective companies with which they are associated.

Use, duplication, or disclosure by the government is subject to the restrictions set forth in subparagraph (c)(1)(ii) of DFARS 52.227-7013 for the DOD and as set forth in FAR 52.227-19(a)-(d) for civilian agencies.

Appeon Inc., 1/F, Shell Industrial Building, 12 Lee Chung Street, Chai Wan District, Hong Kong.


Table of Contents

PowerScript Topics
Language Basics
Comments
Identifier names
Labels
Special ASCII characters
NULL values
Reserved words
Pronouns
Parent pronoun
This pronoun
Super pronoun
Statement continuation
Statement separation
White space
Conditional compilation
Datatypes
Standard datatypes
The Any datatype
System object datatypes
Enumerated datatypes
Declarations
Declaring variables
Where to declare variables
About using variables
Syntax of a variable declaration
Declaring constants
Declaring arrays
Values for array elements
Size of variable-size arrays
More about arrays
Declaring external functions
Datatypes for external function arguments
Calling external functions
Defining source for external functions
Declaring DBMS stored procedures as remote procedure calls
Operators and Expressions
Operators in PowerBuilder
Arithmetic operators in PowerBuilder
Relational operators in PowerBuilder
Concatenation operator in PowerBuilder
Operator precedence in PowerBuilder expressions
Datatype of PowerBuilder expressions
Numeric datatypes in PowerBuilder
String and char datatypes in PowerBuilder
Structures and Objects
About structures
About objects
About user objects
Instantiating objects
Using ancestors and descendants
Garbage collection
User objects that behave like structures
Assignment for objects and structures
Assignment for structures
Assignment for objects
Assignment for autoinstantiated user objects
Calling Functions and Events
About functions and events
Finding and executing functions and events
Finding functions
Finding events
Triggering versus posting functions and events
Static versus dynamic calls
Static calls
Dynamic calls
Overloading, overriding, and extending functions and events
Overloading and overriding functions
Extending and overriding events
Passing arguments to functions and events
Passing objects
Passing structures
Passing arrays
Using return values
Functions
Events
Using cascaded calling and return values
Syntax for calling PowerBuilder functions and events
Calling functions and events in an object's ancestor
Statements, Events, and Functions
PowerScript Statements
Assignment
CALL
CHOOSE CASE
CONTINUE
CREATE
DESTROY
DO...LOOP
EXIT
FOR...NEXT
GOTO
HALT
IF...THEN
RETURN
THROW
THROWS
TRY...CATCH...FINALLY...END TRY
SQL Statements
Using SQL in scripts
CLOSE Cursor
CLOSE Procedure
COMMIT
CONNECT
DECLARE Cursor
DECLARE Procedure
DELETE
DELETE Where Current of Cursor
DISCONNECT
EXECUTE
FETCH
INSERT
OPEN Cursor
ROLLBACK
SELECT
SELECTBLOB
UPDATE
UPDATEBLOB
UPDATE Where Current of Cursor
Using dynamic SQL
Dynamic SQL Format 1
Dynamic SQL Format 2
Dynamic SQL Format 3
Dynamic SQL Format 4
PowerScript Events
About events
Activate
AddressChange
BeginDownload
BeginDrag
Syntax 1: For ListView controls
Syntax 2: For TreeView controls
BeginLabelEdit
Syntax 1: For ListView controls
Syntax 2: For TreeView controls
BeginLogScan
BeginRightDrag
Syntax 1: For ListView controls
Syntax 2: For TreeView controls
BeginSync
BeginUpload
CategoryCollapsed
CategoryExpanded
CategorySelectionChanged
CategorySelectionChanging
CertificateError
Clicked
Syntax 1: For menus
Syntax 2: For ListView and Toolbar controls
Syntax 3: For Tab controls
Syntax 4: For TreeView controls
Syntax 5: For windows and progress bars
Syntax 6: For Ribbon controls
Syntax 7: For other controls
Close
Syntax 1: For the application object
Syntax 2: For OLE controls
Syntax 3: For windows
CloseQuery
CloseUp
ColumnClick
ConnectMobiLink
Constructor
DataChange
DateChanged
DateSelected
DBError
DBNotification
Deactivate
DeleteAllItems
DeleteItem
Syntax 1: For ListView controls
Syntax 2: For TreeView controls
Destructor
DisconnectMobiLink
DisplayMessage
DoubleClicked
Syntax 1: For ListBox, PictureListBox, ListView, and Tab controls
Syntax 2: For TreeView controls
Syntax 3: For windows
Syntax 4: For other controls
DownloadingStart
DownloadingStateChanged
DragDrop
Syntax 1: For ListBox, PictureListBox, ListView, and Tab controls
Syntax 2: For TreeView controls
Syntax 3: For windows and other controls
DragEnter
DragLeave
DragWithin
Syntax 1: For ListBox, PictureListBox, ListView, and Tab controls
Syntax 2: For TreeView controls
Syntax 3: For windows and other controls
DropDown
EndDownload
EndLabelEdit
Syntax 1: For ListView controls
Syntax 2: For TreeView controls
EndLogScan
EndSync
EndUpload
Error
Syntax 1: for Connection, DataWindow, DataStore, OLE, OLEObject, OLETxnObject
Syntax 2: for CompressorObject objects
Syntax 3: for ExtractorObject objects
ErrorMessage
ExternalException
FileExists
FileMessage
Finished
Gesture
GetFocus
Help
Hide
HotLinkAlarm
Idle
InputFieldSelected
InsertItem
ItemActivate
ItemChanged
ItemChanging
ItemCollapsed
ItemCollapsing
ItemExpanded
ItemExpanding
ItemPopulate
ItemUnselected
Key
LineDown
LineLeft
LineRight
LineUp
LoseFocus
Modified
Syntax 1: For Ribbon controls
Syntax 2: For all other controls
MouseDown
Syntax 1: For RichTextEdit controls
Syntax 2: For windows
MouseMove
Syntax 1: For RichTextEdit controls
Syntax 2: For windows
MouseUp
Syntax 1: For RichTextEdit controls
Syntax 2: For windows
Moved
NavigationError
NavigationProgressIndex
NavigationStart
NavigationStateChanged
Notify
Open
Syntax 1: For the application object
Syntax 2: For windows
Other
PageDown
PageLeft
PageRight
PageUp
PictureSelected
PipeEnd
PipeMeter
PipeStart
PrintFooter (obsolete)
PrintHeader (obsolete)
PdfPrintFinished
ProcessingFile
ProgressIndex
PropertyChanged
PropertyRequestEdit
RButtonDown
Syntax 1: For controls and windows, except RichTextEdit
Syntax 2: For RichTextEdit controls
RButtonUp
RecognitionResult
RemoteExec
RemoteHotLinkStart
RemoteHotLinkStop
RemoteRequest
RemoteSend
Rename
Resize
ResourceRedirect
RightClicked
Syntax 1: For ListView and Tab controls
Syntax 2: For TreeView controls
RightDoubleClicked
Syntax 1: For ListView and Tab controls
Syntax 2: For TreeView controls
Save
SaveObject
Selected
Syntax 1: For Ribbon controls
Syntax 2: for all other controls
SelectionChanged
Syntax 1: For Listboxes
Syntax 2: For Tab controls
Syntax 3: For TreeView controls
Syntax 4: For Ribbon controls
SelectionChanging
Syntax 1: For Tab controls
Syntax 2: For TreeView controls
Show
SizeCompleted
Sort
Syntax 1: For ListView controls
Syntax 2: For TreeView controls
SQLPreview
Start
Syntax 1: for Animation controls
Syntax 2: for CompressorObject and ExtractorObject objects
Stop
Stroke
SyncPreview
SystemError
SystemKey
Timer
TitleTextChanged
ToolbarMoved
UploadAck
UserString
ValueChanged
ViewChange
WaitForUploadAck
WarningMessage
PowerScript Functions
Abs
ACos
AccessToken
Activate
AddCategory
AddColumn
AddData
Syntax 1: For all graph types except scatter
Syntax 2: For scatter graphs
AddItem
Syntax 1: For ListBox and DropDownListBox controls
Syntax 2: For PictureListBox, DropDownPictureListBox, and RibbonComboBoxItem controls
Syntax 3: For ListView controls
Syntax 4: For ListView controls
AddItemArray
AddItemBlob
AddItemBoolean
AddItemDate
AddItemDateTime
AddItemNull
AddItemNumber
AddItemObject
AddItemString
AddItemTime
AddLargePicture
AddMasterSeparatorItem
AddPicture
AddSeparatorItem
AddSeries
AddSmallPicture
AddStatePicture
AddToLibraryList
AppendParam
ApplyTheme
Arrange
ArrangeSheets
Asc
AscA
ASin
AsymmetricDecrypt
AsymmetricEncrypt
AsymmetricGenerateKey
AsymmetricSign
AsymmetricVerifySign
ATan
Base32Decode
Base32Encode
Base64Decode
Base64Encode
Base64UrlDecode
Base64UrlEncode
Beep
BeginTransaction (obsolete)
Blob
BlobEdit
BlobMid
BuildModel
Byte
Cancel
Syntax 1: for Pipeline objects
Syntax 2: for CompressorObject and ExtractorObject objects
CancelDownload
CancelSync
CanUndo
CategoryCount
CategoryName
Ceiling
ChangeDirectory
ChangeMenu
Char
CharA
Check
ChooseColor
ClassList
ClassName
Syntax 1: For any object
Syntax 2: For variables
Clear
Syntax 1: For selected text
Syntax 2: For RichTextEdit controls
Syntax 3: For JSONPackage objects
ClearAll
ClearBoldDates
ClearHeaders
Syntax 1: for TokenRequest objects
Syntax 2: for OAuthRequest objects
ClearParams
ClearRecentItems
ClearRequestHeaders
Clipboard
Syntax 1: For text
Syntax 2: For bitmaps of graphs
Close
Syntax 1: For windows
Syntax 2: For OLEStorage objects
Syntax 3: For OLEStream objects
Syntax 4: For trace files
CloseChannel
CloseTab
CloseUserObject
CloseWithReturn
CollapseItem
CommandParm
CommitDocking
CommitTransaction (obsolete)
Compress
ConnectToNewObject
ConnectToNewRemoteObject
ConnectToObject
ConnectToRemoteObject
ConnectToServer (obsolete)
ContainsKey
Copy
CopyRTF
Cos
Cpu
CreateDirectory
CreateInstance
Syntax 1: for TransactionServer objects
Syntax 2: for DotNetAssembly objects
CreateJsonArray
CreateJsonObject
CreatePage
Cut
DataCount
DataSource
Date
Syntax 1: For DateTime data and blobs
Syntax 2: For strings
Syntax 3: For combining numbers into a date
DateTime
Syntax 1: For creating DateTime values
Syntax 2: For extracting DateTime values from blobs
Syntax 3: For extracting DateTime values from strings
Day
DayName
DayNumber
DaysAfter
DBHandle
DebugBreak
Dec
DeleteCategory
Syntax 1: for Graph controls
Syntax 2: for RibbonBar controls
DeleteCheckBox
DeleteColumn
DeleteColumns
DeleteComboBox
DeleteData
DeleteGroup
DeleteItem
Syntax 1: For ListBox, DropDownListBox, and RibbonComboBoxItem controls
Syntax 2: For ListView controls
Syntax 3: For TreeView controls
Syntax 4: For RibbonMenu controls
Syntax 5: For RibbonBar controls
DeleteItems
DeleteLargeButton
DeleteLargePicture
DeleteLargePictures
DeleteMasterItem
DeletePanel
DeletePicture
DeletePictures
DeleteRecentItem
DeleteSeries
DeleteSmallButton
DeleteSmallPicture
DeleteSmallPictures
DeleteStatePicture
DeleteStatePictures
DeleteTabButton
DestroyModel
DirectoryExists
DirList
DirSelect
Disable
DisableCommit
DisconnectObject
DisconnectServer
Double
DoVerb
Drag
DraggedObject (obsolete)
Draw
EditLabel
Syntax 1: For editing a label in a ListView
Syntax 2: For editing a label in a TreeView
Enable
EnableCommit
EntryList
ExecRemote
Syntax 1: For sending single commands
Syntax 2: For commands over an opened channel
Exp
ExpandAll
ExpandItem
ExportJSON
ExportXML
ExportToJSONFile
ExportToXMLFile
Extract
Fact
FileClose
FileCopy
FileDelete
FileEncoding
FileExists
FileLength
FileLength64
FileMove
FileOpen
FileRead
FileReadEx
FileSeek
FileSeek64
FileWrite
FileWriteEx
Fill
FillA
FillW (obsolete)
Find
FindCategory
FindClassDefinition
FindFunctionDefinition
FindItem
Syntax 1: For ListBox, DropDownListBox, and RibbonComboBoxItem controls
Syntax 2: For ListView controls
Syntax 3: For ListView controls
Syntax 4: For TreeView controls
FindMatchingFunction
FindNext
FindSeries
FindTypeDefinition
FromAnsi
FromUnicode
GarbageCollect
GarbageCollectGetTimeLimit
GarbageCollectSetTimeLimit
GetAccessToken
GetActiveCategory
GetActiveSheet
GetAlignment
GetApplication
GetApplicationButton
GetArgElement
GetAutomationNativePointer
GetBestHeight
GetBody
Syntax 1: for TokenResponse objects
Syntax 2: for OAuthRequest objects
Syntax 3: for ResourceResponse objects
GetBoxPictureList
GetByte
GetByteArray
GetCategory
GetCategoryByIndex
GetCategoryCount
GetCategoryIndex
GetCertificateLabel (obsolete)
GetCheckBox
GetChildCount
GetChildItem
GetChildItemByIndex
GetChildItemCount
GetChildKey
GetChildrenList
GetColumn
GetComboBox
GetCommandDDE
GetCommandDDEOrigin
GetCommandString
GetCompanyName
GetContextKeywords
GetContextService
GetCredentialAttribute (obsolete)
GetCurrentDirectory
GetData
Syntax 1: For data points in graphs
Syntax 2: For EditMask controls
Syntax 3: For data in an OLE server
GetDataDDE
GetDataDDEOrigin
GetDataLabelling
GetDataPieExplode
GetDataStyle
Syntax 1: For the colors of a data point
Syntax 2: For the line style and width used by a data point
Syntax 3: For the fill pattern or symbol of a data point
GetDataTransparency
GetDataValue
GetDateLimits
GetDbmlsyncPath
GetDisplayRange
GetDotNetCoreVersion
GetDynamicDate
GetDynamicDateTime
GetDynamicDecimal
GetDynamicNumber
GetDynamicString
GetDynamicTime
GetEnvironment
GetExpiresIn
GetFileOpenName
GetFileSaveName
GetFilesCount
GetFilesList
GetFirstSheet
GetFixesVersion
GetFocus
GetFolder
GetGroup
GetGlobalProperty (obsolete)
GetHeader
Syntax 1: for TokenRequest objects
Syntax 2: for TokenResponse objects
Syntax 3: for OAuthRequest objects
Syntax 4: for ResourceResponse objects
GetHeaders
Syntax 1: for TokenRequest objects
Syntax 2: for TokenResponse objects
Syntax 3: for OAuthRequest objects
Syntax 4: for ResourceResponse objects
GetHostObject
GetItem
Syntax 1: For ListView controls
Syntax 2: For ListView controls
Syntax 3: For TreeView controls
Syntax 4: For RibbonMenu controls
Syntax 5: For RibbonBar controls
GetItemArray
GetItemAtPointer
GetItemBlob
Syntax 1
Syntax 2
GetItemBoolean
Syntax 1
Syntax 2
GetItemByTag
GetItemCount
GetItemDate
Syntax 1
Syntax 2
GetItemDateTime
Syntax 1
Syntax 2
GetItemNumber
Syntax 1
Syntax 2
GetItemObject
GetItemParent
GetItemString
Syntax 1
Syntax 2
GetItemTime
Syntax 1
Syntax 2
GetItemType
GetJsonBlob
GetJsonString
GetJWTToken
GetKey
GetLargeButton
GetLastReturn
GetLibraryList
GetMajorVersion
GetMasterItem
GetMasterItemCount
GetMenu
GetMenuByButtonHandle
GetMessage
GetMinorVersion
GetName
GetNativePointer
GetNextSheet
GetOAuthToken
GetObjectRevisionFromRegistry
GetOrigin
GetPanel
GetParagraphSetting
GetParent
GetPin (obsolete)
GetRecentItem
GetRecentItemCount
GetRecentTitle
GetRecordSet
GetRefreshToken
GetRemote
Syntax 1: For single DDE requests
Syntax 2: For DDE requests via an open channel
GetRequestHeader
GetRequestHeaders
GetResponseBody
GetResponseHeader
GetResponseHeaders
GetResponseStatusCode
GetResponseStatusText
GetRootItem
GetSelectedDate
GetSelectedRange
GetSeriesLabelling
GetSeriesStyle
Syntax 1: For the colors of a series
Syntax 2: For the line style and width used by a series
Syntax 3: For the fill pattern or symbol of a series
Syntax 4: For determining whether a series is an overlay
GetSeriesTransparency
GetShortName
GetSmallButton
GetSource
GetSpacing
GetStatusCode
Syntax 1: for TokenResponse objects
Syntax 2: for ResourceResponse objects
GetStatusText
Syntax 1: for TokenResponse objects
Syntax 2: for ResourceResponse objects
GetStatus (obsolete)
GetSyncRegistryProperties
GetTabButton
GetTabButtonByIndex
GetTabButtonCount
GetText
GetTextColor
GetTextStyle
GetTheme
GetToday
GetTokenError
GetTokenType
GetToolbar
GetToolbarPos
Syntax 1: For docked toolbars
Syntax 2: For floating toolbars
GetTransactionName (obsolete)
GetURL
GetValue
Syntax 1: for DatePicker control
Syntax 2: for JSONPackage object
GetValueBlob
GetValueBoolean
GetValueDate
GetValueDateTime
GetValueNumber
GetValueString
GetValueTime
GetValueToDataWindow
GetVersionName
GoBack
GoForward
Handle
HexDecode
HexEncode
Hide
HMAC
Hour
HyperLinkToURL
Idle
ImpersonateClient
ImportClipboard
ImportFile
ImportJSON
ImportXML
ImportFromJSONFile
ImportFromXMLFile
ImportString
IncomingCallList
Init (obsolete)
InputFieldChangeData
InputFieldCurrentName
InputFieldDeleteCurrent
InputFieldGetData
InputFieldInsert
InputFieldLocate
InsertCategory
Syntax 1: for Graph controls
Syntax 2: for RibbonBar controls
InsertCategoryFirst
InsertCategoryLast
InsertCheckBox
InsertCheckBoxFirst
InsertCheckBoxLast
InsertClass
InsertColumn
InsertComboBox
InsertComboBoxFirst
InsertComboBoxLast
InsertData
InsertDocument
InsertFile
InsertGroup
InsertGroupFirst
InsertGroupLast
InsertItem
Syntax 1: For ListBox and DropDownListBox controls
Syntax 2: For PictureListBox, DropDownPictureListBox, RibbonComboBoxItem controls
Syntax 3: For ListView controls
Syntax 4: For ListView controls
Syntax 5: For TreeView controls
Syntax 6: For TreeView controls
Syntax 7: For RibbonMenu controls
InsertItemFirst
Syntax 1: For TreeView controls
Syntax 2: For TreeView controls
Syntax 3: For RibbonMenu controls
InsertItemLast
Syntax 1: For TreeView controls
Syntax 2: For TreeView controls
Syntax 3: For RibbonMenu controls
InsertItemSort
Syntax 1: For TreeView controls
Syntax 2: For TreeView controls
InsertLargeButton
InsertLargeButtonFirst
InsertLargeButtonLast
InsertMasterItem
InsertMasterItemFirst
InsertMasterItemLast
InsertObject
InsertPanel
InsertPanelFirst
InsertPanelLast
InsertPicture
InsertRecentItem
InsertRecentItemFirst
InsertRecentItemLast
InsertSeries
InsertSmallButton
InsertSmallButtonFirst
InsertSmallButtonLast
InsertTabButton
InsertTabButtonFirst
InsertTabButtonLast
Int
Integer
InternetData
IntHigh
IntLow
InvokePBFunction
_Is_A (obsolete)
IsAlive
IsAllArabic
IsAllHebrew
IsAnyArabic
IsAnyHebrew
IsArabic
IsArabicAndNumbers
IsCallerInRole
IsDate
IsHebrew
IsHebrewAndNumbers
IsImpersonating
IsInTransaction (obsolete)
IsMinimized
IsNull
IsNumber
IsPreview
IsSecurityEnabled
IsTime
IsTransactionAborted (obsolete)
IsValid
KeyCount
KeyDown
LastPos
Left
LeftA
LeftW (obsolete)
LeftTrim
LeftTrimW (obsolete)
Len
LenA
LenW (obsolete)
Length
LibraryCreate
LibraryDelete
LibraryDirectory
LibraryDirectoryEx
LibraryExport
LibraryImport
LineCount
LineLength
LineList
LinkTo
LoadDockingState
LoadFile
LoadString
LoadInk
LoadPicture
LoadWithDotNetCore
LoadWithDotNetFramework
Log
Syntax 1: For all objects
Syntax 2: For ErrorLogging objects
LogTen
Long
Syntax 1: For combining integers
Syntax 2: For converting strings and blobs
LongLong
Syntax 1: For combining longs
Syntax 2: For converting strings and blobs
Lookup (obsolete)
Syntax 1: For CORBA-compliant EAServer components
Syntax 2: For instances of an EJB component
Lower
LowerBound
mailAddress
mailDeleteMessage
mailGetMessages
mailHandle
mailLogoff
mailLogon
mailReadMessage
mailRecipientDetails
mailResolveRecipient
mailSaveMessage
mailSend
Match
MatchW (obsolete)
Max
MD5
MemberDelete
MemberExists
MemberRename
MessageBox
Mid
MidA
MidW (obsolete)
Min
Minute
Mod
ModifyData
Syntax 1: For all graph types except scatter
Syntax 2: For scatter graphs
Month
Move
MoveTab
_Narrow (obsolete)
Navigate
NextActivity
Now
ObjectAtPointer
OffsetPos
Open
Syntax 1: For windows of a known datatype
Syntax 2: For windows of unknown datatype
Syntax 3: For loading an OLE object from a file into a control
Syntax 4: For opening an OLE object in memory into a control
Syntax 5: For opening an OLE object in a file into an OLEStorage
Syntax 6: For opening an OLE storage member into a storage
Syntax 7: For opening OLE streams
Syntax 8: For opening trace files
OpenChannel
OpenSheet
OpenSheetAsDocument
OpenSheetDocked
OpenSheetFromDockingState
OpenSheetInTabGroup
OpenSheetWithParm
OpenSheetWithParmAsDocument
OpenSheetWithParmDocked
OpenSheetWithParmFromDockingState
OpenSheetWithParmInTabGroup
OpenTab
Syntax 1: For user objects of a known datatype
Syntax 2: For user objects of unknown datatype
OpenTabWithParm
Syntax 1: For user objects of a known datatype
Syntax 2: For user objects of unknown datatype
OpenUserObject
Syntax 1: For user objects of a known datatype
Syntax 2: For user objects of unknown datatype
OpenUserObjectWithParm
Syntax 1: For user objects of a known datatype
Syntax 2: For user objects of unknown datatype
OpenWithParm
Syntax 1: For windows of a known datatype
Syntax 2: For windows of unknown datatype
OutgoingCallList
PageCount
PageCreated
ParentWindow
Paste
PasteLink
PasteRTF
PasteSpecial
PauseDownload
PBAddCookie (Obsolete)
PBGetCookies (Obsolete)
PBGetMenuString
Pi
PixelsToUnits
Play
PointerX
PointerY
PopMenu
PopulateError
Pos
PosA
PosW (obsolete)
Position
Syntax 1: For editable controls, except RichTextEdit
Syntax 2: For RichTextEdit controls
Post
PostData
PostDataEnd
PostDataStart
PostEvent
PostURL
Preview
Print
Syntax 1: For printing a visual object in a print job
Syntax 2: For printing text in a print job
Syntax 3: For RichTextEdit controls
PrintAsPDF
PrintBitmap
PrintCancel
PrintClose
PrintDataWindow
PrintDefineFont
PrintEx
PrintGetPrinter
PrintGetPrinters
PrintLine
PrintOpen
PrintOval
PrintPage
PrintRect
PrintRoundRect
PrintScreen
PrintSend (obsolete)
PrintSetFont
PrintSetPrinter
PrintSetSpacing
PrintSetup
PrintSetupPrinter
PrintText
PrintWidth
PrintX
PrintY
ProfileInt
ProfileString
Rand
Randomize
Read
Syntax 1: For reading into a string
Syntax 2: For character arrays or blobs
ReadData
Real
RecognizeText
Refresh
RegistryDelete
RegistryGet
RegistryKeys
RegistrySet
RegistryValues
RelativeDate
RelativeTime
ReleaseAutomationNativePointer
ReleaseNativePointer
Remove
RemoveApplicationButton
RemoveDirectory
RequestResource
Repair
Replace
ReplaceA
ReplaceText
ReplaceW (obsolete)
Reset
Syntax 1: For list boxes
Syntax 2: For graphs
Syntax 3: For trace files
ResetArgElements
ResetDataColors
ResetInk
ResetPicture
Resize
RespondRemote
Restart
ResumeDownload
ResumeTransaction (obsolete)
Retrieve
RetrieveOne
Reverse
RevertToSelf
RGB
Right
RightA
RightW (obsolete)
RightTrim
RightTrimW (obsolete)
RollbackOnly (obsolete)
RollbackTransaction (obsolete)
Round
RoutineList
Run
Save
Syntax 1: For InkPicture controls
Syntax 2: For OLE objects
SaveAs
Syntax 1: For graph objects
Syntax 2: For saving an OLE control to a file
Syntax 3: For saving an OLE control to an OLE storage
Syntax 4: For saving an OLE storage object to a file
Syntax 5: For saving an OLE storage object in another OLE storage
SaveDockingState
SaveDocument
SaveInk
SaveToFile
Scroll
ScrollNextPage
ScrollNextRow
ScrollPriorPage
ScrollPriorRow
ScrollToRow
Second
SecondsAfter
Seek
Syntax 1: For OLE stream objects
Syntax 2: For animation controls
SelectedColumn
SelectedIndex
SelectedItem
SelectedLength
SelectedLine
SelectedPage
SelectedStart
SelectedText
SelectionRange
SelectItem
Syntax 1: When you know the text of an item
Syntax 2: When you know the item number
Syntax 3: For TreeView controls
SelectObject
SelectTab
SelectText
Syntax 1: For editable controls (except RichTextEdit)
Syntax 2: For RichTextEdit controls and presentation styles
SelectTextAll
SelectTextLine
SelectTextWord
Send
SendDeleteRequest
SendGetRequest
SendPatchRequest
SendPostRequest
SendPutRequest
SendRequest
SeriesCount
SeriesName
SetAbort
Syntax 1: For OLETxnObject objects
Syntax 2: For TransactionServer objects
SetAccessToken
SetActiveCategory
SetActiveCategoryByIndex
SetAlignment
SetApplicationButton
SetArgElement
SetAutomationLocale
SetAutomationPointer
SetAutomationTimeout
SetBody
SetBoldDate
SetBoxPictureList
SetByte
SetCategory
SetCheckBox
SetColumn
SetComboBox
SetComplete
Syntax 1: For OLETxnObject objects
Syntax 2: For TransactionServer objects
SetData
SetDataDDE
SetDataLabelling
SetDataPieExplode
SetDataStyle
Syntax 1: For setting a data point's colors
Syntax 2: For the line associated with a data point
Syntax 3: For the fill pattern and symbol of a data point
SetDataTransparency
SetDateLimits
SetDropHighlight
SetDynamicParm
SetFirstVisible
SetFocus
SetGroup
SetGlobalProperty (obsolete)
SetHeader
Syntax 1: for TokenRequest objects
Syntax 2: for OAuthRequest objects
SetHeaders
Syntax 1: for TokenRequest objects
Syntax 2: for OAuthRequest objects
SetItem
Syntax 1: For ListView controls
Syntax 2: For ListView controls
Syntax 3: For TreeView controls
Syntax 4: For RibbonMenu controls
Syntax 5: For RibbonBar controls
SetJWTToken
SetLargeButton
SetLevelPictures
SetLibraryList
SetMask
SetMasterItem
SetMenu
SetMessage
SetMicroHelp
SetMinimized
SetNewMobiLinkPassword
SetNull
SetOAuthToken
SetOverlayPicture
SetPanel
SetParagraphSetting
SetParm
SetPicture
SetPointer
Syntax 1: System-defined shape
Syntax 2: File-defined shape
SetPosition
Syntax 1: For positioning windows and controls in windows
Syntax 2: For positioning objects within a DataWindow
SetProfileString
SetRange
SetRecentItem
SetRecentTitle
SetRecordSet
SetRedraw
SetRemote
Syntax 1: For single DDE requests
Syntax 2: For DDE requests via an open channel
SetRequestHeader
SetRequestHeaders
SetResultSet
SetSelectedDate
SetSelectedRange
SetSeriesLabelling
SetSeriesStyle
Syntax 1: For setting a series' colors
Syntax 2: For lines in a graph
Syntax 3: For the fill pattern and symbols in a graph
Syntax 4: For creating an overlay in a graph
SetSeriesTransparency
SetSheetID
SetSmallButton
SetSpacing
SetState
SetSyncRegistryProperties
SetTabButton
SetTextColor
SetTextStyle
SetTimeout (obsolete)
SetToday
SetToolbar
SetToolbarPos
Syntax 1: For docked toolbars
Syntax 2: For floating toolbars
SetTop
SetTraceFileName
SetTransPool
SetValue
Syntax 1: for DatePicker control
Syntax 2: for JSONPackage object
SetValueBlob
SetValueBoolean
SetValueByDataWindow
SetValueDate
SetValueDateTime
SetValueNumber
SetValueString
SetValueTime
SHA
SharedObjectDirectory
SharedObjectGet
SharedObjectRegister
SharedObjectUnregister
Show
ShowHeadFoot
ShowHelp
ShowPopupHelp
Sign
SignalError
Sin
Sleep
Sort
Syntax 1: For TreeView controls
Syntax 2: For ListView controls
SortAll
Space
Sqrt
Start
Syntax 1: For executing pipeline objects
Syntax 2: For activating timing objects
StartHotLink
StartServerDDE
State
StepIt
Stop
Syntax 1: For deactivating timing objects
Syntax 2: For stopping an animation from playing
StopHotLink
StopNavigation
StopServerDDE
String
Syntax 1: For formatting data
Syntax 2: For blobs
Submit
SuspendTransaction (obsolete)
SymmetricDecrypt
SymmetricEncrypt
SymmetricGenerateKey
Synchronize
Syntax 1: For synchronization without parameters
Syntax 2: For synchronization with parameters
SyntaxFromSQL
SystemRoutine
TabPostEvent
TabTriggerEvent
Tan
Text
Syntax for ListBox, DropDownListBox, PictureListBox, and DropDownPictureListBox controls
Syntax for RibbonComboBoxItem controls
TextLine
Time
Syntax 1: For DateTime and blob values
Syntax 2: For strings
Syntax 3: For integers
Timer
ToAnsi
Today
Top
TotalColumns
TotalItems
TotalSelected
ToUnicode
TraceBegin
TraceClose
TraceDisableActivity
TraceEnableActivity
TraceEnd
TraceError
TraceOpen
TraceUser
TriggerEvent
TriggerPBEvent
Trim
TrimW (obsolete)
Truncate
TrustVerify (obsolete)
TypeOf
Uncheck
Undo
UnitsToPixels
UpdateLinksDialog
Upper
UpperBound
UrlDecode
UrlEncode
WebBrowserGet
WebBrowserSet
Which
WordCap
WorkSpaceHeight
WorkSpaceWidth
WorkSpaceX
WorkSpaceY
Write
XMLParseFile
XMLParseString
Year
Yield
Zoom