please help with error...

Results 1 to 2 of 2

Thread: please help with error...

  1. #1
    Join Date
    Dec 1969

    Default please help with error...

    had it all day on ASP Q&A forum. apparently it is too advanced for that forum:<BR><BR>Error Type:<BR>Microsoft VBScript compilation (0x800A0401)<BR>Expected end of statement<BR>/upload/save_and_display.asp, line 61, column 15<BR>Open path_name For Binary Access Write As #1<BR>--------------^<BR><BR>the code:<BR><BR>path = "banners"<BR>FileName = "filFile.gif"<BR>path_name = Server.MapPath(path) & FileName<BR><BR>Open path_name For Binary Access Write As #1<BR><BR>On Error Resume Next &#039;if path_name not exist then skip error.<BR> Kill path_name<BR>Err.Clear<BR><BR>For i = 1 to LenB(FileData)<BR> Put #1, ,FileData(i)<BR>Next<BR>Close #1

  2. #2
    Join Date
    Dec 1969

    Default RE: please help with error...

    this is not VBScript, it&#039;s VB<BR><BR>they&#039;re different. back to the drawing board for you. in VBScript, we use FileSystemObject to open files - there&#039;s no native method.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts