Find and Search

Parent Previous Next

VisualSim                                                                                                                                    

Find and Search

 

Function & Argument Type(s)

 

Description

 

Example

constants()

Return a data structure containing the list of all the parameters in the model.



constants()

findFile

(String name)

Find a file or directory.


findFile("doc")

= "D:\VisualSim\VS930\doc"

findFiles

(String fileName)

Find all files containing fileName.


findFiles("VS.txt")

"D:/VisualSim/VS930/VS.txt"

findFirstFile

(String fileName)

Find first file containing fileName.


findFirstFile("Visual")

findFirstFileDate

(StringToken fileName)

Find first file containing fileName, return long as a string.



a = findFirstFileDate("C:/VisualSim/VS930/Array_Test_Results.txt")

  = "Tue Jun 23 10:30:41 PDT 2009"


findPartialFiles

(String fileName)

Find all files containing partial fileName.



findPartialFiles("doc")

findText

(String text)

Find all files containing partial text.


findText("VisualSim")

findText

(String fileName,

String text)

Find all files containing partial text.



findText("D:\VisualSim\VS930\VS.txt","VisualSim")

findText

(String fileName,

String text, int n_)

Find first file containing partial text, N values after the text to find, separated by spaces.




findText("D:\VisualSim\VS930\VS.txt","VisualSim",10)

getLineN

(String script, int line)

Get the Nth Line in string.

getLineN(readFile("C:/VisualSim/VS930/Array_Test_Results.txt"), 2)

Test(1) Arr.sum( ) passed . . .

getLineNumber

(String script,

int index)

Get the Nth Line number in string based on the index argument, returns minimum of one.


b = readFile("C:/VisualSim/VS930/Array_Test_Results.txt")

c = getLineNumber(b,b.length()-1)

  = 14

 

 

 

Created with the Personal Edition of HelpNDoc: Free CHM Help documentation generator