Download WM Basic™ User`s Manual
Transcript
164 Working Model Basic User's Manual Examples 'The following examples use the Dim statement to declare various 'variable types. Sub Main() Dim i As Integer Dim l& Dim s As Single Dim d# Dim c$ Dim MyArray(10) As Integer Dim MyStrings$(2,10) Dim Filenames$(5 to 10) '6 Dim Values(1 to 10, 100 to 200) End Sub 'long 'double 'string '10 element integer array '2-10 element string arrays element string array '111 element variant array See Also Redim (statement); Public (statement); Private (statement); Option Base (statement). Platform(s) Windows and Macintosh. Dir, Dir$ (functions) Syntax Dir$[(filespec$ [,attributes])] Description Returns a String containing the first or next file matching filespec$. If filespec$ is specified, then the first file matching that filespec$ is returned. If filespec$ is not specified, then the next file matching the initial filespec$ is returned. Comments Dir$ returns a String, whereas Dir returns a String variant. The Dir$/Dir functions take the following parameters: Parameter Description filespec$ containing a file specification. If this parameter is specified, then Dir$ returns the first file matching this file specification. If this parameter is omitted, then the next file matching the initial file specification is returned. String If no path is specified in filespec$, then the current directory is used. attributes specifying attributes of files you want included in the list, as described below. If omitted, then only the normal, read-only, and archive files are returned. Integer An error is generated if Dir$ is called without first calling it with a valid filespec$. If there is no matching filespec$, then a zero-length string is returned.
Related documents
AP Basic Programming Guide
CIMPLICITY HMI Program Editor Operation Manual
Herbal Tutorial - Applied Cognitive Science Lab
W orking Model 2D
Working Model 2D Tutorial
CIMPLICITY BCE Language Reference Manual
Inscribe User's Guide
Aphelion User Guide
10 Gig Ethernet MAC User Guide
Installation-Didacticiel Aphelion