I'm reposting this from forum
I've just updated openoffice to version 2.4.0 from 2.3.1 and started experiencing following error: "Inadmissible value or data type. Data type mismatch." here (i've marked the line with >>>>):
' Create the user directory if it doesn't exist...
>>>> if Not oFileAccess.exists(sUserPath) then MkDir(sUserPath)
if Not oFileAccess.exists(sTmpPath) then MkDir(sTmpPath)
It complains about an expression "Not oFileAccess.exists(sUserPath)". I have noticed that the problem is caused by Not operator. When I tried to remove it (i know that this will break the script, but that was an experiment) the script breaks on next line.
Similarly following "hack" causes the line passes without error:
if Not (oFileAccess.exists(sUserPath)=True) then MkDir(sUserPath)
I started thinking that oFileAccess.exists returns something other than Boolean, but surprisingly this:
gives "Boolean" so I completely don't know why the hack above makes it works. I have started wondering if there is some bug in OOBasic in ver. 2.4, or so. I don't have any experience with basic and openoffice api so I would be very thankful if you could investigate this further. If you need additional information please do not hesitate to contact me directly by email.
I must say that this script is REALLY GREAT JOB. I am looking forward for next releases.
Log in to post a comment.