Page 1 of 1
WriteTable() and error handling
Posted: Sun Aug 23, 2026 2:30 pm
by Flinx
Code: Select all
;t={}
OpenFile(1, "test", #MODE_WRITE)
err=?WriteTable(1, t, {Adapter="default"})
"Error in line 3 (test.hws): Table expected in argument 2!"
I just noticed that error handling with
WriteTable() isn't working. With
RaiseOnError() it's the same.
Am I doing something wrong or is this a bug?
Re: WriteTable() and error handling
Posted: Sun Aug 23, 2026 3:30 pm
by plouf
isnt error gone when removing ; (comment) from ;t={} ?
Re: WriteTable() and error handling
Posted: Sun Aug 23, 2026 4:53 pm
by Flinx
Of course, but I just wanted to show here that the question mark doesn't work.
Re: WriteTable() and error handling
Posted: Sun Aug 23, 2026 5:38 pm
by plouf
ok see sorry.
according to manual, passing wrong numbers of arguments consider syntax error and cannon be caught, instant exiting script (second sentence from bottom)->
https://www.hollywood-mal.com/docs/html ... dling.html
errors can be caught if a procedure is designed for, for example loading a file than do not exist
Re: WriteTable() and error handling
Posted: Sun Aug 23, 2026 5:42 pm
by Flinx
Thanks, I hadn't noticed that.