## Search found 27 matches

Jul 26, 2014 4:42
Forum: Beginners
Topic: Return an array from a Function.
Replies: 9
Views: 1780

### Re: Return an array from a Function.

You are right. Try this: DECLARE SUB printSeries(S() AS INTEGER) DECLARE FUNCTION fibonacci(S() AS INTEGER) AS INTEGER PTR dim as integer series(10) fibonacci(series()) printSeries series() '====================================================== FUNCTION fibonacci(S() AS INTEGER) AS INTEGER PTR s(LB...
Jul 25, 2014 22:17
Forum: Beginners
Topic: Return an array from a Function.
Replies: 9
Views: 1780

### Re: Return an array from a Function.

Try this: DECLARE SUB printSeries(S() AS INTEGER) DECLARE FUNCTION fibonacci(S() AS INTEGER) AS INTEGER PTR dim as integer series(10) fibonacci(series()) printSeries series() '====================================================== FUNCTION fibonacci(S() AS INTEGER) AS INTEGER PTR s(LBOUND(S))=1 : s(...
Jul 23, 2013 15:35
Forum: Beginners
Topic: how to get external parameters ?
Replies: 9
Views: 1309

### Re: how to get external parameters ?

Hi. I hope this helps.

Code: Select all

`dim argv as ZSTRING PTR PTR = __FB_ARGV__for i as integer = 0 to __FB_ARGC__ -1    print *argv[i]next i`
Oct 29, 2012 21:35
Forum: Beginners
Topic: Tutorials and such
Replies: 2
Views: 513

### Re: Tutorials and such

Check out Petes qbsite, for older issues of QB Express. http://petesqbsite.com/sections/express/express.shtml
Dec 08, 2009 10:29
Forum: Community Discussion
Topic: Is FreeBasic still continued to develop?
Replies: 139
Views: 33747
Right. There are more ACTIVE users than the registered people here. :)
Apr 17, 2008 6:01
Forum: Projects
Topic: requesting beta testers
Replies: 13
Views: 7034
Look really nice and familiar. Hope you release a demo or something before release.
Apr 17, 2008 5:50
Forum: Beginners
Topic: How to get read variable from a txt file?
Replies: 7
Views: 1583
Variables are stored in sequential mode here. You can use any variable name to get sisters name, in the same method used to get "Your Name". Dim ff As Ubyte Dim name_str As String Dim age_ubyte As Ubyte ff = Freefile Input "What is your name? ",name_str Input "What is your age? "...
Mar 25, 2008 6:23
Forum: Beginners
Topic: Simple Project List for Beginners- Add some of your own!
Replies: 15
Views: 4011
O_o Nice. My first game like project was a simple space shooter in QB. It was so easy when I used draw\$, most gfx stored in Strings and everything done in spaghetti; GOTO DRAWSPRITE :S Tetris could be the perfect game for a beginner programmer to understand the most important principles and coding s...
Mar 25, 2008 5:56
Forum: Beginners
Topic: I actually don't know how to start FB O.o
Replies: 4
Views: 1655
Download fbIDE or type FBC [source.bas] in start shell. http://fbide.freebasic.net/
Feb 28, 2008 11:18
Forum: Projects
Topic: Trucs Qui s'Emboîtent (a Tetris Clone) v1.0
Replies: 21
Views: 4753
Nice job Hezad. It runs really fast on my computer, so I had to increase sleep count. You should really "center" some piece, so that it does affect gameplay when rotated: DATA 0,0,0,0 DATA 0,0,0,0 DATA 0,1,0,0 DATA 1,1,1,0 to DATA 0,0,0,0 DATA 0,1,0,0 DATA 1,1,1,0 DATA 0,0,0,0 I worked on a tetris c...
Dec 15, 2007 1:23
Forum: Beginners
Topic: Is there variable named as XXX(cant get solved)
Replies: 20
Views: 4135
I think it's Possible, if you read source file, search for DIM, get variable names and store them in an array or list along with the data types. Something like this DIM var_base_of_list as variable_List_ITEM GETVars DIM a as integer DIM b as integer print ifDimmed("a") ... ... Sub ...
Sep 30, 2007 19:14
Forum: Projects
Topic: EUIS - ELIZA Granddaughter
Replies: 2
Views: 1637
Better than Eliza? :D
Great. Can you upload an exe + source zipped on Filepasta or something.
Aug 04, 2007 4:17
Forum: General
Topic: Need a ScreenSet example that shows visible page property
Replies: 6
Views: 1837
An example screen 13, ,4 screenset 1:print "PAGE 1" screenset 2:print "Page 2" screenset 3:print "Page 3 ::" i = 1 do key = getkey if i < 0 then i = 0: if i > 3 then i = 3 screenset 0,i if key = 20735 then i = i + 1 if key = 18687 then i = i - 1 loop while key <> 27 The...
Jul 25, 2007 16:31
Forum: Beginners
Topic: Is this possible with free basic? automated dl from a ftp?
Replies: 3
Views: 1917
I'm not a professional but that CAN BE easy in Free BASIC. FTP(RFC 959) you can create a client FTP scheduler. I think using (vb/ws) o any other OS script can be much easier, as you are really good in action script. ftp.exe in window's can help a lot. I have a problem that I can't seem to find a sol...
Mar 03, 2007 3:39
Forum: Projects
Topic: The "Patrick Duffy" Project, a serious Game.
Replies: 15
Views: 4616
Yeah, it looks fun. You must be using v0.16 so it did'nt work for me. I had to change the imageCreate() to make it work on my compiler(0.15): dim shared screenw, screenh screenh = 640: screenw = 480 Screenres screenh,screenw,16,2 '' Variables GFX Dim Shared As Integer counter=0 Dim as any ptr Patric...

Go to advanced search