bug in messagedlg function ???

Here one can report bugs or hold discussions about bugs updates and work arounds.
Post Reply
PaPi
Posts: 114
Joined: Wed May 16, 2007 11:55 am

bug in messagedlg function ???

Post: # 134Post PaPi
Tue Jul 31, 2007 8:28 am

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

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

bug in messagedlg function ???

Post: # 135Post Marco
Tue Jul 31, 2007 3:17 pm

I guess your using an older version of the compiler please load the new package.
Then it should be work.

best regards

PaPi
Posts: 114
Joined: Wed May 16, 2007 11:55 am

bug in messagedlg function ???

Post: # 136Post PaPi
Tue Jul 31, 2007 7:14 pm

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


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

bug in messagedlg function ???

Post: # 137Post Marco
Wed Aug 01, 2007 8:50 pm

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

PaPi
Posts: 114
Joined: Wed May 16, 2007 11:55 am

bug in messagedlg function ???

Post: # 138Post PaPi
Thu Aug 02, 2007 6:36 am

Thanks for you.
Also where I could download compiler zip03 ?
PaPi

Post Reply