The variable must be a valid varchar or varbit.
eg:
 
1.
set var vtest varbit = ['f:\SomeIcon.ico']
 
write .vtest to SomeOtherIcon.ico
 
the file "SomeOtherIcon.ico" will now hold the same contents as "f:\SomeIcon.ico"
 
2.
set var vtest varchar = ['f:\SomeTextFile.txt']
 
write .vtest to SomeOtherTextFile.txt
 
the file "SomeOtherTextFile.txt" will now hold the same contents as "f:\SomeOtherTextFile.txt"
 
 
'----- Original Message -----
Sent: Saturday, October 19, 2002 4:18 PM
Subject: WRITE .var TO FILENAME

Using RB for Windows 6.5++ (1.851) The on-line help provides the following syntax
for the WRITE statement:
 
WRITE .var TO FILENAME
 
However, when executed, it generates an error message:
 "Syntax is Incorrect for the command WRITE"
 
Can anyone else reproduce this?
 
- Rob Vincent
 
 

Reply via email to