PowerScript Basics - Hyderabad Colleges

Download Report

Transcript PowerScript Basics - Hyderabad Colleges

PowerScript Basics
 Identifiers
 Comments
 Special Characters
 Statement Continuation Character
 Pronouns
 Arrays
PowerBuilder Online Courses - by Prasad Bodepudi
PowerScript Basics
 Identifiers
 Should start with a letter
 Can have up to 40 characters
 Case insensitive
 Spaces are not allowed
 Can include -, $, %, #, _.
PowerBuilder Online Courses
Http://www.applied-software.com
© Prasad Bodepudi. All rights reserved.
PowerScript Basics
 Comments
 Double Slash method comments till the
end of the line.
 /* and */ comments everything in between.
PowerBuilder Online Courses
Http://www.applied-software.com
© Prasad Bodepudi. All rights reserved.
PowerScript Basics
 Special Characters







New line
Tab
Vertical Tab
Carriage Return
Form Feed
Backspace
Tilde
PowerBuilder Online Courses
~n
~t
~v
~r
~f
~b
~~
Http://www.applied-software.com
© Prasad Bodepudi. All rights reserved.
PowerScript Basics
 Statement Continuation Character
 & is the statement continuation character.
 Should be the last character in the line.
 Not required to use in the embedded SQL
statements.
PowerBuilder Online Courses
Http://www.applied-software.com
© Prasad Bodepudi. All rights reserved.
PowerScript Basics
 Pronouns in PowerScript
 This: Refers to the object itself for which the code
is written.
 Parent: Refers to the object in which the object is
placed.
 ParentWindow: Refers to the window for which
the menu is attached. Used by menu objects.
PowerBuilder Online Courses
Http://www.applied-software.com
© Prasad Bodepudi. All rights reserved.
PowerScript Basics
 Arrays
 Single & multi dimensional and dynamic arrays
are supported.
 No limitation on the number of dimensions.
 Arrays can be of any datatype except enumerated
datatype.
 LowerLimit() returns the lowest element number.
 UpperLimit() returns the highest element number.
PowerBuilder Online Courses
Http://www.applied-software.com
© Prasad Bodepudi. All rights reserved.
PowerScript Basics
 Identifiers
 Comments
 Special Characters
 Statement Continuation Character
 PowerScript Pronouns
 Arrays
Questions? Drop an e-mail at [email protected]
The End
PowerBuilder Online Courses - by Prasad Bodepudi