26.12.2012 Views

ICAM Virtual Machine V19 - Kxcad.net

ICAM Virtual Machine V19 - Kxcad.net

ICAM Virtual Machine V19 - Kxcad.net

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

The $FBASNAM Function<br />

result=$FBASNAM(s1[,s2])<br />

Returns: String<br />

<strong>Virtual</strong> <strong>Machine</strong> Reference, Model Customization<br />

Simulation Macro Functions, File and Directory Functions<br />

This function extracts and returns the file name portion of a file path string s1, optionally removing<br />

any trailing portion s2 of the file name that matched the suffix string. The syntax is as<br />

follows:<br />

file_name_string=$FBASNAM(path_string [,suffix_string])<br />

For example, “test.cld” is the base portion of “C:\temp\test.cld”. When removing a trailing<br />

suffix, the $FBASNAM function looks for the last occurrence of the suffix in the file name, and<br />

then removes the remainder of the file name from the matched point onwards. Case is significant.<br />

Continuing the example, “test” would be returned if “.” (a decimal) is specified as a suffix.<br />

The $FCTIME Function<br />

result=$FCTIME(n)<br />

Returns: String<br />

This function returns the date and time in string format, given a real number n specifying the<br />

number of seconds since the operating system specific “epoch” time. This function can be used<br />

to convert time values from the $FSTAT function to a human readable format. The syntax is as<br />

follows:<br />

date_string=$FCTIME(real)<br />

The date string is output in the following format with a single blank between the date and time<br />

portions:<br />

dd-mm-yyyy hh:mm:ss<br />

The $FDIRNAM Function<br />

result=$FDIRNAM(s)<br />

Returns: String<br />

This function extracts and returns the directory name portion of a file path string a. The path<br />

string need not contain directory name information. The syntax is as follows:<br />

path_string=$FDIRNAM(path_string)<br />

<strong>ICAM</strong> Technologies Corporation – Proprietary 177

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!