1. don't hard-code a file number ... there is no guarantee it will be
available. Use the FreeFile function...
dim hfile as long
hfile = FreeFile
open xxx for output as #hfile
2. use Print, rather than Write, to save without the quotes.
3. For multiple lines in the file, either insert a vbNewline between each
item in the single-line Print statement, or use multiple Prints ...
Print #hfile T_UOR & vbNewline & T_ULO & vbNewline & T_LOR & vbNewline &
T_LLO & vbNewline & ... etc
.... or...
Print #hfile T_UOR
Print #hfile T_ULO
Print #hfile T_LOR
Print #hfile T_LLO
... etc
--
Randy Birch
MVP Visual Basic
http://www.mvps.org/vbnet/
Please respond only to the newsgroups so all can benefit.
"Jason Charalambides" <da************ @netscape.com> wrote in message
news:NE******** *********@twist er.austin.rr.co m...
: I have created this little routine to export the values of some variables.
: However there are two things I need to fix:
: 1. Instead of being on a line, I want them arranged one under another.
: 2. Those values come in brackets like " ". If I use the CLng() or CDbl()
: they transform to zeros. Is there a way I can keep the numeric values and
: get rid of the ""?
: Thank you
: J.C.
:
: Open "C:\Temp\Tenseg rity.tmp" For Output As #1
:
: Write #1, T_UOR, T_ULO, T_LOR, T_LLO, T_UOR2, T_ULO2, T_LOR2, T_LLO2,
: T_Offset, T_LC, T_UBW, T_LBW, T_h, T_NoUnits1, T_NoUnits2, T_gs, T_RAX
:
: Close #1
:
: P.S. Please reply in the group because my new e-mail address is acting
: funny.
: Thanks again
:
: