It's been a long time since I checked in here, and I've forgotten a lot of what I learned about programming. But this forum was very helpful to me a few years ago when I was trying to convert my very primitive M-BASIC to Q-BASIC and then to a compiled FB version.
The program, which involves simple FOR-NEXT loops and subroutines, seems to run correctly on the first run-through using one of the many versions I tried when I was first setting it up. but on the subsequent runs, the loop hangs up and returns me to the main menu. I have no idea what to look for, and I've been driving myself nuts trying to find it in the BAS code.
Is there a common mistake that might cause this to happen? (By the way, I'm running in a DOS window within Windows XP.
I'd really appreciate any suggestions you can offer. Thanks.
Novice
Old FB Program No Longer Works
-
- Posts: 147
- Joined: May 24, 2009 23:13
- Location: Texas, United States, Planet Earth
- Contact:
Re: Old FB Program No Longer Works
Richard wrote:Two years should not make that much difference.
What version of FB compiler do you now use. If you remember, what was your old version number.
Please post some code that demonstrates the problem.
I have FreeBasic version 5.1.2600. I'll try to post some of the code, but it's been so long since I've worked on this that I have to figure out just what I was trying to do. It'll take me some time to figure out the right code section to post, but I'll work on it.
Thanks.
Novice
Re: Old FB Program No Longer Works
Novice wrote:Richard wrote:Two years should not make that much difference.
What version of FB compiler do you now use. If you remember, what was your old version number.
Please post some code that demonstrates the problem.
I have FreeBasic version 5.1.2600. I'll try to post some of the code, but it's been so long since I've worked on this that I have to figure out just what I was trying to do. It'll take me some time to figure out the right code section to post, but I'll work on it.
Thanks.
Novice
1.
When you edit a post, check the option BBCode to activate the BBcode tags (you can check it per default in your profile).
2.
5.1.2600 is your Microsoft Windows version, and not the FreeBasic compiler version!
@ Novice.
Run this FB code to identify your FB version.
The topic title is that in the first page. It is ignored on later replies.
As fxm suggested; When you write a post you need to enable BBcodes for the [quote../quote] and other BBcodes to work. You can "always enable BBcodes" by Logging in, Select Profile, then change the Bbcode setting near the bottom of the page. [As moderator I enabled your first post BBcode for you.]
Run this FB code to identify your FB version.
Code: Select all
Print __FB_version__
Sleep
The topic title is that in the first page. It is ignored on later replies.
As fxm suggested; When you write a post you need to enable BBcodes for the [quote../quote] and other BBcodes to work. You can "always enable BBcodes" by Logging in, Select Profile, then change the Bbcode setting near the bottom of the page. [As moderator I enabled your first post BBcode for you.]
Richard wrote:@ Novice.
Run this FB code to identify your FB version.Code: Select all
Print __FB_version__
Sleep
The topic title is that in the first page. It is ignored on later replies.
As fxm suggested; When you write a post you need to enable BBcodes for the [quote../quote] and other BBcodes to work. You can "always enable BBcodes" by Logging in, Select Profile, then change the Bbcode setting near the bottom of the page. [As moderator I enabled your first post BBcode for you.]
Thank you. I have enabled BB codes in my profile. Please excuse my ignorance, but it's been a long time since I did any programming or used FreeBasic in any way. Please refresh my memory about at least how to access the FreeBasic help files/list of available codes and syntax.
Thanks again .
Novice
Richard wrote:@ Novice. You are welcome.
It took me a while, but I think I finally got it right. It looks as if my version of FB has a specific command for "version." When I entered
fbc -version
I got the following:
FreeBasic Compiler - Version 0.20.0 <08-10-2008> for win32 <target:win32>
Copyright <C> 2004-2008 The FreeBasic Development Team
Configured as a standalone
Does that help?
Novice
Who is online
Users browsing this forum: fxm and 16 guests