Search found 356 matches

by sancho3
Oct 14, 2017 21:53
Forum: General
Topic: Problem with len()
Replies: 8
Views: 853

Problem with len()

I am trying to debug some code and came across a problem with the len() function. Len returns -1 on a type member string array element. In the following code m.s(1) returns -1 while w(1) returns 32. Type mytype as string * 32 s(any) end type dim as mytype m dim as string * 32 w(1 to 16) redim m.s(1 ...
by sancho3
Oct 14, 2017 1:15
Forum: General
Topic: Preventing <Ctrl>+C possible?
Replies: 7
Views: 907

Re: Preventing <Ctrl>+C possible?

Thanks for the correct example, dkl
You better rub your eyes and look again.
by sancho3
Oct 11, 2017 1:00
Forum: Beginners
Topic: Custom Menu
Replies: 14
Views: 3517

Re: Custom Menu

Very nice BasicCoder. That is an excellent example of a pop up menu.

Its the fact that this is the beginners thread that makes it all the more important that example code be a jumping off point as opposed to code that must be discarded.
by sancho3
Oct 10, 2017 3:27
Forum: Linux
Topic: Some Geany Questions
Replies: 7
Views: 2332

Some Geany Questions

1. In FBEdit we have context sensitive help by pressing F1 on a keyword. We don't have that in Geany. What do you guys do for access to the manual? 2. I can't seem to find a way to better colorize the file format. I use Document/set file types/programming/freebasic. It seems there are two possible f...
by sancho3
Oct 09, 2017 23:28
Forum: Beginners
Topic: Custom Menu
Replies: 14
Views: 3517

Re: Custom Menu

But my point is that he can't use the code as is. It needs over hauling just to make it a popup. What you are showing is really not much more than the Line,B command as it stands. The very minimum the popup must do is show and hide properly. I am not trying to offend either of you, however, I stand ...
by sancho3
Oct 09, 2017 4:45
Forum: Beginners
Topic: Simple example to use fscanf?
Replies: 9
Views: 1605

Re: Simple example to use fscanf?

If the stream is from a file there are the built in file commands which should get around it. I don't know very much about fscanf. You are faced with a couple of other issues with fscanf. The floating point is limited in size. 2.733556 is the most I could get out of it where the actual value was 2.7...
by sancho3
Oct 09, 2017 3:39
Forum: Beginners
Topic: Simple example to use fscanf?
Replies: 9
Views: 1605

Re: Simple example to use fscanf?

%s is defined as s String of characters. This will read subsequent characters until a whitespace is found (whitespace characters are considered to be blank, newline and tab). So it stops reading at the first blank after channel. Out of curiosity, why are you using fscanf? Are the FB file functions i...
by sancho3
Oct 09, 2017 1:33
Forum: Beginners
Topic: Custom Menu
Replies: 14
Views: 3517

Re: Custom Menu

I would describe both BasicCoder's and MrSwiss's as unworkable examples of a pop up menu.
Both make no attempt to replace the background they overwrite.
In fact both examples completely erase the screen.
by sancho3
Oct 03, 2017 3:38
Forum: Linux
Topic: New to linux how to run FB
Replies: 8
Views: 2417

Re: New to linux how to run FB

@St.W. No information was missing. I skipped a step that was well described; the installing of the the three other files(dependancies?). I skipped it thinking that fbc would still run and just produce errors. This does not happen. Its my fault entirely, and I have to remember now that I'm in Linux t...
by sancho3
Oct 02, 2017 21:32
Forum: Linux
Topic: New to linux how to run FB
Replies: 8
Views: 2417

Re: New to linux how to run FB

Yes it was the fact that I didn't install the other packages that was causing the problem. I followed DKL instructions here and that fixed it up. I am able to compile. The stickied thread titled FB 0.20 +Ubuntu 8.10 64 - the easy way should probably be updated. One more question. My simple hello wor...
by sancho3
Sep 30, 2017 3:29
Forum: Linux
Topic: New to linux how to run FB
Replies: 8
Views: 2417

New to linux how to run FB

Hello: Computer problems forced me into Linux Ubuntu. I have never used Linux before. I installed freebasic and got to the point where I ran the install script and it returned successfully installed. I can't run fbc at all. From the terminal I have tried fbc, /fbc, ./fbc. It says no such file or dir...