PowerScript Functions
\The Sandbox \PB History & Future \New In PB8 \PowerScript Functions
Workspaces
Code Examples
UI changes
Working with 
PB8
Starting PB
System Tree
Library painter
Clip & Output
Source editor
AutoScript
Source Control
Exception
Handling
Web Targets
4GL Web
Pages
Web DW
Scripting
Web DW
Container
Web DW
Events
Server-side
Methods
JavaScript
Includes
HTML
Rendering
EAServer
Profiles
EAS/Existing
Interfaces
EJB Clients
EAS
Transactions
SSL
Connections
Concurrency
Property
Multiple
PB VMs
DB Interfaces
ANSI
Outer Join
Proxy
Connections
Loading
DB Libs
PB.INI/DB Info
Command Line
Deployment
Version
for EXEs
Color Support
New Object
Properties
DW
Expressions
DW
Properties
PowerScript
Functions
SaveObject
OLE Event
DBCS Support
GUIDs & MIMEs

File system functions

File system functions reduce the need for external API calls:

  • ChangeDirectory
  • CreateDirectory
  • RemoveDirectory
  • DirectoryExists
  • GetCurrentDirectory
  • FileCopy
  • FileMove

Printer functions

  • PrintGetPrinter returns the current printer's information in tab delimited format.
  • PrintGetPrinters returns a list of installed printers, each in the same format as PrintGetPrinter.
  • PrintSetPrinter changes the printer for subsequent print jobs.
  • PrintSetupPrinter displays the printer setup dialog box.

Mathematical functions

Inverse trignometric functions determine the arcsine, arccosine, or arctangent of an angle:

  • ASin
  • ACos
  • ATan

String functions

LastPos finds the last occurrence of a string within another string.LenW, for use in DBCS environments, returns the number of characters in a string or the number of DBCS characters a blob can contain.WordCap capitalizes the initial letter of each word in a string.

Dialog box functions

GetFolder displays a dialog box to select a folder from the file system.ChooseColor displays the standard Windows color selection dialog box.

Help functions

ShowPopupHelp displays popup help (sometimes called What's This Help).ShowHelp now supports compiled HTML (CHM) Help as well as Windows Help.

Miscellaneous functions

LibraryDirectoryEx extends the functionality of LibraryDirectory by including the object type in the returned string.Sleep causes execution to pause for a specified number of seconds. In a shared object, execution sleeps on the object but not on the process.PostURL now lets you specify a port number for the HTTP server.

GetItemAtPointer returns the handle of an item at the current cursor position in a list view or tree view.

For more information

For a complete list of new and modified functions and their descriptions, select the What's New button on the Help window, then select New PowerScript functions. The modified functions ShowHelp, PostURL, and LenW are described there as well.

PBL Peeper PB Help PB History
& Future About Us Feedback Site Map

Google
 
Web www.techno-kitten.com
www.sybase.com