IonicWind Software

IWBasic => General Questions => Topic started by: Asmodeus on September 22, 2008, 07:07:26 AM

Title: Run Code
Post by: Asmodeus on September 22, 2008, 07:07:26 AM
Hi Everyone,

I am new to Emergence BASIC, and wanted to test some code I wrote but it will not let me run it. I am able to make an exe and run it, but that is not a practical way to test. The execute icon (f4) is greyed out. Any help would be appreciated.

-Asmodeus
Title: Re: Run Code
Post by: billhsln on September 22, 2008, 07:57:36 AM
Have you tried compiling it in DEBUG mode and the running it?  In DEBUG mode you can put stop points and there is a way to send messages to the screen with values.  I don't use it much, but there is more documentation on it in the Help screens.

Bill
Title: Re: Run Code
Post by: Asmodeus on September 22, 2008, 08:35:04 AM
Well the only options I have are single build or make exe, the debug feature is greyed out also. Creative Basic is working ok though.

Asmodeus
Title: Re: Run Code
Post by: TonyMUK on September 22, 2008, 08:39:17 AM
You need to tick the Debug Build box in the project options. This will build the EXE in debug mode which will then include any debug statements you have in your program. The ones I use are DEBUG PRINT and STOP. Haven't looked to see if there are any others.
Title: Re: Run Code
Post by: LarryMc on September 22, 2008, 10:02:11 AM
CBasic and EBasic are different.

CBasic allows you to run a program before you compile it.

EBasic does not.  You have to compile it in some fashion before it will run.

Larry
Title: Re: Run Code
Post by: Asmodeus on September 22, 2008, 01:54:39 PM
Hi Larry,

Thanks for the info.

So I assume that you would need to compile before you debug also then?

-Asmodeus
Title: Re: Run Code
Post by: Ionic Wind Support Team on September 22, 2008, 02:07:05 PM
That is why it is called a "compiler" and not an "interpreter".  Once creates fast executables and the other runs the code using a runtime, much slower.