Page 1 of 1

bug in messagedlg function ???

Posted: Tue Jul 31, 2007 8:28 am
by PaPi
Hi, I have an problem with MESSAGEDLG function.
The fnxcompiler does know the parameters "buttons" and "type"...?

The code (from the fnxbasic helpfile):
[code]
`messagedlg_test  by PaPi
` (from fnxbasic helpfile)
dim answer as integer, i as integer
answer=messagedlg("Now stop?","Stop?", mbYesNo + mbiconquestion)
if answer=idyes then
     showmessage "it has been clicked on the YES button"
else
     showmessage "it has been clicked on the NO button"
end if
[/code]

thanks, PaPi

bug in messagedlg function ???

Posted: Tue Jul 31, 2007 3:17 pm
by Marco
I guess your using an older version of the compiler please load the new package.
Then it should be work.

best regards

bug in messagedlg function ???

Posted: Tue Jul 31, 2007 7:14 pm
by PaPi
Yes I have the new package.  But then the last compiler in fnxbasic02.zip (date: 02. juni. 2007  18:06)
to get nowhere with code below:
[code]
`program: uses_test by PaPi
uses test_1
showmessage programfolder(appname$)
[/code]

and the file test_1.lib:
[code]
function programfolder(xyz as string) as string
dim x as string
dim i as integer
x=lcase$(xyz)
i=rinstr(x,"")
result=left$(x,i)
end function
[/code]

And the compiler have trouble with variable xyz.

Therefore I use the older compiler...

best regards PaPi


bug in messagedlg function ???

Posted: Wed Aug 01, 2007 8:50 pm
by Marco
Sorry,
I hope i get rid of the bug now,
I fixed the predeclaration of the include but the one for uses did not works.
I tested the new compiler zip03 and it seems to work.
I think I don`t have to say where you could download it :)

best regards

bug in messagedlg function ???

Posted: Thu Aug 02, 2007 6:36 am
by PaPi
Thanks for you.
Also where I could download compiler zip03 ?
PaPi