Cypress Enable - Basic Scripting for Applications Provided by Cypress Software Inc
Total Page:16
File Type:pdf, Size:1020Kb
LANGUAGE REFERENCE Cypress Enable - Basic Scripting for Applications provided by Cypress Software Inc. Copyright 1999, all rights reserved." Language Reference 1 CONTENTS CYPRESS ENABLE SCRIPTING LANGUAGE ELEMENTS .....................................................................................6 COMMENTS........................................................................................................................................................................6 NUMBERS ..........................................................................................................................................................................7 VARIABLE AND CONSTANT NAMES....................................................................................................................................7 VARIABLE TYPES...............................................................................................................................................................7 OTHER DATA TYPES..........................................................................................................................................................9 CONTROL STRUCTURES ...................................................................................................................................................10 SUBROUTINES AND FUNCTIONS .......................................................................................................................................12 BYREF AND BYVAL.........................................................................................................................................................12 CALLING PROCEDURES IN DLLS......................................................................................................................................14 FILE INPUT/OUTPUT.........................................................................................................................................................15 ARRAYS...........................................................................................................................................................................16 USER DEFINED TYPES......................................................................................................................................................18 DIALOG SUPPORT.............................................................................................................................................................19 STATEMENTS AND FUNCTIONS USED IN DIALOG FUNCTIONS...........................................................................................27 DlgControlId Function..............................................................................................................................................28 DlgFocus Statement, DlgFocus() Function..............................................................................................................28 DlgListBoxArray, DlgListBoxArray() .......................................................................................................................29 DlgSetPicture .............................................................................................................................................................29 DlgValue, DlgValue() ................................................................................................................................................29 OLE AUTOMATION..........................................................................................................................................................30 ACCESSING AN OBJECT ....................................................................................................................................................31 WHAT IS AN OLE OBJECT?..............................................................................................................................................32 OLE FUNDAMENTALS .....................................................................................................................................................34 OLE AUTOMATION AND MICROSOFT WORD EXAMPLE: ..................................................................................................35 MAKING APPLICATIONS WORK TOGETHER......................................................................................................................35 THE REGISTRATION DATABASE........................................................................................................................................36 SCRIPTING LANGUAGE OVERVIEW .......................................................................................................................38 QUICK REFERENCE OF THE FUNCTIONS AND STATEMENTS AVAILABLE ...........................................................................38 LANGUAGE REFERENCE A - Z ..................................................................................................................................43 ABS FUNCTION ................................................................................................................................................................43 APPACTIVATE STATEMENT..............................................................................................................................................44 ASC FUNCTION ................................................................................................................................................................44 ATN FUNCTION ................................................................................................................................................................45 BEEP STATEMENT............................................................................................................................................................45 CALL STATEMENT............................................................................................................................................................46 CBOOL FUNCTION ...........................................................................................................................................................47 CDATE FUNCTION ...........................................................................................................................................................47 CDBL FUNCTION..............................................................................................................................................................48 CHDIR STATEMENT .........................................................................................................................................................48 CHDRIVE STATEMENT .....................................................................................................................................................49 CHECKBOX......................................................................................................................................................................49 CHOOSE FUNCTION..........................................................................................................................................................50 CHR FUNCTION ................................................................................................................................................................50 CINT FUNCTION...............................................................................................................................................................51 2 Language Reference CLNG FUNCTION .............................................................................................................................................................51 CLOSE STATEMENT..........................................................................................................................................................52 CONST STATEMENT .........................................................................................................................................................53 COS FUNCTION ................................................................................................................................................................54 CREATEOBJECT FUNCTION ..............................................................................................................................................54 CSNG FUNCTION..............................................................................................................................................................55 CSTR FUNCTION ..............................................................................................................................................................56 CURDIR FUNCTION ..........................................................................................................................................................56 CVAR FUNCTION .............................................................................................................................................................57 DATE FUNCTION ..............................................................................................................................................................57 DATESERIAL FUNCTION...................................................................................................................................................58