Question about Java Script

 From:  fcwilt
12075.1 
Hi,

You posted a file with this bit of code:

var path = moi.geometryDatabase.currentFileName;


// Strip off file extension.
var base = path.substring( 0, path.lastIndexOf('.') );

// Get file extension.
var ext = path.substring( path.lastIndexOf('.') );

My general purpose Windows development tool has a class for manipulating file names and such.

You can set the property which accepts an entire file specification (server, drive letter, path, name, extension, etc.).

Then you can access several properties for the parts, such as file name and extension.

I am assuming since you coded those function your Java Script has no such class.

Is it possible to write such a class to use in your Java Script, so you need not code functions like you did above?

Thanks.

Frederick