September 26, 2022, 12:41:10 AM

News:

Own IWBasic 2.x ? -----> Get your free upgrade to 3.x now.........


IWBasic 3.05 - Error messages "Syntax error"

Started by psevet, October 15, 2017, 09:24:16 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

psevet

Hello,

I haven't been using Ibasic for ages, and I wanted to go back to its successor (IWB 3.05)  but I'm a bit disappointed, as running/compiling any example file will generate a "syntax error" message.

Am I missing something or is there any way to fix this issue ?


I'm running it under Windows 10 Home Edition as admin.

Thanks in advance for your help.

Pierre

LarryMc

No one else is complaining of this problem.

In the IDE main TOOLBAR click on the "Make Executable" Icon

When the dialog opens click on the "Advanced" button.

Make sure that the  "Assembler  Options " entry is  "-O1"     Note:that's the letter O

Let me know if that makes any difference
LarryMc
Larry McCaughn :)
Author of IWB+, Custom Button Designer library, Custom Chart Designer library, Snippet Manager, IWGrid control library, LM_Image control library

psevet

Larry,

Unfortunately, that doesn't make the trick ...

I enclose a screen capture of the current options and error messages.

Just forgot to mention that I run Windows 10 64.

Regards.

Pierre


Brian

Pierre,

The attached browser_test.iwb compiles for me with no errors, and I am
on Windows 10 64-bit, as well. I admit I have had to adjust some of the
window calls - the file was a bit out of date, code wise

Brian

LarryMc

Brian
browser_test.iwb works for me and I bet will work for Pierre.

It's browser_test2.iwb doesn't work for Pierre and it doesn't work for me because he and I are both using the latest version of IWB.

See if it will work for you. If you're running the latest it won't work for you.
LarryMc
Larry McCaughn :)
Author of IWB+, Custom Button Designer library, Custom Chart Designer library, Snippet Manager, IWGrid control library, LM_Image control library

LarryMc

Pierre
Something has been lost in one of the compiler updates.
If you notice in every error line where you get that "syntax error - ," that there is a window tag name that starts with a period which is normally illegal

However, when the name has been first been declare as part of a TYPE/END TYPE structure and then used within a WITH/ENDWITH  block is is legal.

In the browser_test2 file look at the following lines
5   TYPE BROWSERDATA
   WINDOW win
   WINDOW urldlg
   WINDOW cont
    ENDTYPE

67   pointer p = 0

82      p = new BROWSERDATA

93   WITH *p

all your errors

118   ENDWITH


There's nothing I can do to address this; other than turn the issue over to LarryS

You did say this
" I'm a bit disappointed, as running/compiling any example file will generate a "syntax error" message."
What other examples did you try that gave you the same error so I can make sure if it is the same or a different problem.


LarryMc
Larry McCaughn :)
Author of IWB+, Custom Button Designer library, Custom Chart Designer library, Snippet Manager, IWGrid control library, LM_Image control library

psevet

Larry,

I switched to IW 2.515b and the examples provided with 2.515 run like a charm.

Both versions of IW are installed on my computer as memory stick installations.

Regards.

Pierre

Brian

October 15, 2017, 03:10:47 PM #7 Last Edit: October 15, 2017, 03:16:43 PM by Brian Pugh
Larry,

Quite a few of the examples don't have the (),INT at the end of the
main SUB, and sometimes haven't the zero on the RETURN

That's all I had to alter when I tested the browser_test.iwb

browser_test2.iwb looks more like an Aurora file to me. Me no understand it!

Brian

Andy

Well I get the same as Larry.

Browser test compiles, browser test2 does not.

As for all other example programs not compiling? I've had no problems with the ones I've needed to look at.

Try the control demo example - compiles fine for me.

Have you tried removing and re-installing IWB3?
Day after day, day after day, we struck nor breath nor motion, as idle as a painted ship upon a painted ocean.