Monthly Archives: January 2013

TDI 6.1.1 – delete method

The class is a really useful class for those times when you need a little more in terms of file manipulation than the ‘system’ object UserFunctions provide.

However, using this in TDI will throw up a little gotcha that can occur when using the delete method.

For example;

var dirObj = new"c:\\temp\\mydir");

Will generate the following error; Encountered "delete" at line..

The answer is to de-reference the method;

var dirObj = new"c:\\temp\\mydir");