PDA

View Full Version : Right from table to TXT


dgould
05-02-2007, 06:59 AM
I am new to Autoplay :)
I m trying to obtain the information from a system, which I am using the line below....

LANINFO = System.GetLANInfo();

Then I am trying to write the host name to a text file

TextFile.WriteFromString("C:\\test.txt",LANINFO.host, true);

I keep getting a attempt to concatenate global 'LANINFO"(a table value)

Some assistance would be greatly appreciated.

mz241508
05-02-2007, 07:16 AM
Try this code:
LANINFO = System.GetLANInfo();
TextFile.WriteFromString("C:\\test.txt", LANINFO.Host, true);

dgould
05-02-2007, 07:17 AM
Tried that and got them same error.

mz241508
05-02-2007, 07:20 AM
Thats strange, i seem to get no error(s)?! :huh

Does anyone else get any error(s)?

Desrat
05-02-2007, 07:53 AM
the code posted by mz241508 is fine, thats exactly as it should be...

dgould
05-02-2007, 08:02 AM
Got it, Not sure what I type wrong, but I got it. Thanks