function EXIST$ is bad?

In this category you can exchange your programming questions and solutions.
Post Reply
PaPi
Posts: 114
Joined: Wed May 16, 2007 11:55 am

function EXIST$ is bad?

Post: # 122Post PaPi
Mon Jul 16, 2007 10:25 am

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

Marco
Site Admin
Posts: 246
Joined: Sat Sep 15, 2018 8:41 pm

function EXIST$ is bad?

Post: # 123Post Marco
Mon Jul 16, 2007 4:07 pm

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

Post Reply