|getdiskinfo| windowtitle `GetDiskInfo` printlf `GetDiskInfo "filespec",NumberOfBlocksVar printlf ` {,NumberUsedVar {,BytesPerBlockVar}} printlf printlf `Used to get information about a disk. printlf `the given variables will be set to the printlf `proper value. end |askforfilename| windowtitle `"str" = AskForFileName("filespec" {,"WindowTitle"{,x {,y } } }) printlf `Brings up CanDo's file requester, allowing printlf `your application to ask user's for a file printlf `name which they can locate. The default printlf `file name must be specified, with an printlf `optional window title, and positioning. end |exists| windowtitle `<> = Exists("filename") printlf `Returns a TRUE if the specified filename printlf `exists` end |parentof| windowtitle `"string" = ParentOf("DirName") printlf `Returns the directory specification of printlf `the specified "DirName." end |libraryversion| windowtitle `"string" = LibraryVersion` printlf `Returns the string identification of printlf `the current cando.library being used. end |filetype| windowtitle `"string" = FileType("FileName") printlf `Returns specific information about the printlf `file.` end |ifthen| windowtitle `value = IfThen(Logical, TrueExpression [,FalseExpression]) printlf `Returns TrueExpression if the logical is printlf `true, otherwise it returns the False- printlf `Expression, or NOTHING if no False- printlf `Expression is specified. printlf print `SEE ALSO: ` subject `Match`Match` print ` & ` subject `Case`Case` print `.` end |match| windowtitle ` = Match(TestExpression, Exp1 [, Exp2 [...] ]) printlf `Returns an integer value indicating which printlf `Exp matches the TestExpression, or 0 if printlf `none do. For example: printlf ` Let Str = "GoodBye" printlf ` Let Cnt = Match(Str,"Hi","GoodBye","Hey") print `Cnt will be set to 2. SEE ALSO: ` subject `Case`Case` print `.` end |case| windowtitle `value = Case(, Exp1 [, Exp2 [...] ]) printlf `Returns the expression corresponding to the printlf `. For example: printlf ` Let X = 3 printlf ` Let Test=Case(X,"1st","2nd","3rd","4th") printlf `Test will be set to "3rd". print ` SEE ALSO: ` subject `IfThen`IfThen` print ` & ` subject `Match`Match` print `.` end |input| windowtitle `"String" = Input("Prompt") printlf `Similar to Input Function in BASIC. It printlf `displays the "Prompt" in the CLI and waits printlf `for user to type information ending in the printlf `RETURN key being pressed. This function printlf `returns the information typed by the user. end