Page 1 of 1

function EXIST$ is bad?

Posted: Mon Jul 16, 2007 10:25 am
by PaPi
Sorry, I see, it is an bug (compiler error?):
Code from fnxBasic Help:
[code]
`exist$ test by PaPi
dim x as boolean
x=EXISTS$("ok|ab","abgfghk")
if x=true then messagedlg("exists=true. End")[/code]

error 18, line 3.....

PaPi

function EXIST$ is bad?

Posted: Mon Jul 16, 2007 4:07 pm
by Marco
dim x as boolean
x=EXISTS("ok|ab","abgfghk")
if x=true then messagedlg("exists=true. End",test,1)

This will probely help leave the $ of the exists function. The output is numeric.
And change the messagedlg as above.
It is messagedlg("text","title",type)

best regards