pc dmis basic.pdf

  • View
    567

  • Download
    30

Embed Size (px)

Text of pc dmis basic.pdf

  • PC-DMIS Basic

    Language Reference

    By Brown and Sharpe Mfg. Co.

  • This manual was produced using Doc-To-Help, by WexTech Systems, Inc.

  • PC-DMIS Basic Language Reference Contents i

    ContentsBasic Script Editor 11

    Introduction................................................................................................................... ...........11File Menu ...................................................................................................................... ...........11

    New............................................................................................................................ 11Open...........................................................................................................................11Save............................................................................................................................11Save As ......................................................................................................................12Print ...........................................................................................................................12Print Preview..............................................................................................................12Exit.............................................................................................................................12

    Edit Menu.................................................................................................................................12Undo ..........................................................................................................................12Cut..............................................................................................................................12Copy...........................................................................................................................12Paste...........................................................................................................................12Delete.........................................................................................................................12Select All ...................................................................................................................13Find ............................................................................................................................13Find Next ...................................................................................................................13Replace ......................................................................................................................13

    View.........................................................................................................................................14Run...........................................................................................................................................14Help..........................................................................................................................................14

    Basic Help..................................................................................................................14Syntax Help ...............................................................................................................14Syntax Help File ........................................................................................................15

    Basic Script Toolbar.................................................................................................................15New............................................................................................................................15Open...........................................................................................................................15Save............................................................................................................................15Print ...........................................................................................................................15Print Preview..............................................................................................................15Find ............................................................................................................................15Cut..............................................................................................................................16Copy...........................................................................................................................16Paste...........................................................................................................................16Undo ..........................................................................................................................16Start............................................................................................................................16Pause ..........................................................................................................................16Stop............................................................................................................................16Set Breakpoint............................................................................................................16Quick Watch ..............................................................................................................17Step Into.....................................................................................................................17Step Over ...................................................................................................................17

  • ii Contents PC-DMIS Basic Language Reference

    Cypress Enable Scripting Language Elements 19Comments ............................................................................................................................... 19

    Statements: ................................................................................................................ 19Line Continuation Character: .................................................................................... 20

    Numbers .................................................................................................................................. 20Variable and Constant Names ................................................................................................. 20Variable Types ........................................................................................................................ 20

    Variant ...................................................................................................................... 20Variants and Concatenation ...................................................................................... 21

    Other Data Types .................................................................................................................... 21Data Types ................................................................................................................ 21Scope of Variables .................................................................................................... 22Declaration of Variables ........................................................................................... 22

    Control Structures ................................................................................................................... 22Loop Structures......................................................................................................... 22

    Subroutines and Functions ...................................................................................................... 24ByRef and ByVal .................................................................................................................... 25

    Scalar Variables ........................................................................................................ 25Passing User Defined Types by Ref to DLLs and Enable functions ....................... 26

    Calling Procedures in DLLs .................................................................................................... 27Passing and Returning Strings .................................................................................. 27

    File Input/Output ..................................................................................................................... 28File I/O Examples ..................................................................................................... 28

    Arrays...................................................................................................................................... 29Ways to Declare a Fixed-Size Array......................................................................... 30Manipulating Arrays ................................................................................................. 31MultiDimensional Arrays ......................................................................................... 31

    User Defined Types................................................................................................................. 32Dialog Support ........................................................................................................................ 33

    Dialog Box controls .................................................................................................. 33OK and Cancel Buttons............................................................................................. 34List Boxes, Combo Boxes and Drop-down List Boxes............................................. 3