IF ISCLEAR(FileSystem) THEN CREATE(FileSystem); FilePath := 'C:\'; IF NOT FileSystem.FolderExists(FilePath) THEN FileSystem.CreateFolder(FilePath); IF EXISTS(FilePath + 'PostCode.csv') THEN ERASE(FilePath + 'PostCode.csv'); TestFile.CREATE(FilePath + 'PostCode.csv'); TestFile.CREATEOUTSTREAM(TestStream); XMLPORT.EXPORT(5050, TestStream); TestFile.CLOSE;
Comments
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
Can I assume he's asking how are they Defined in the globals
FileSystem - Type System
TestFile - Type File
TestStream - Type Stream
or something like that.. am I correct?
http://www.BiloBeauty.com
http://www.autismspeaks.org
FileSystem - Type System
TestFile - Type File
TestStream - Type OutStream ('Stream' is not listed as a type)
I get a compile error "Type conversion not possible because 1 of the operators contains an invalid type. Automation := System"
?
Chandler
I haven't looked at what the code does but maybe it's WshShell
http://www.BiloBeauty.com
http://www.autismspeaks.org