NetTalk Central

Author Topic: p_web.OpenFile - returns 0 but file still closed  (Read 3651 times)

CaseyR

  • Sr. Member
  • ****
  • Posts: 448
    • View Profile
    • Email
p_web.OpenFile - returns 0 but file still closed
« on: June 22, 2017, 11:39:13 AM »
Pseudo code
 
   p_web.OpenFile(MyFileLabel)       returns 0 as expected

 But immediately following

  STATUS(MyFileLabel)   also returns 0 (file closed)

I only checked the status because I was getting File Not Open errors.  Everything is on the same thread.

Easy to work around, but it might indicate a larger issue.

Thanks.               

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: p_web.OpenFile - returns 0 but file still closed
« Reply #1 on: June 22, 2017, 09:26:22 PM »
>> but it might indicate a larger issue.

I would suggest it definitely suggests a larger issue.
Perhaps try doing an OPEN there (as a test, not permanent code) to see if you get an error.

Open(MyfileLabel,42h)
p_web.Trace('xxx Error after open is ...' & errorcode() & ' ' & error())

Cheers
Bruce