Search found 2316 matches

by KristopherWindsor
Apr 03, 2011 0:08
Forum: Projects
Topic: Directory Listing (Recursive Dir()) for the Common Man
Replies: 6
Views: 2248

Maybe there should be a progress bar, showing how many directories it's added to the list? The folder UDT has stats (below) that show how many folders / files have been loaded. If you're using the iterator macros (or set populationPolicy.top otherwise), you can use those stats with the root folder ...
by KristopherWindsor
Apr 02, 2011 13:37
Forum: General
Topic: Recursive Sub calls, If statements, etc
Replies: 13
Views: 2247

You won't reach any limit for nested If statements if it exists. For Subs, each call uses some memory on the stack, and the stack is only 1MB by default. (You can make the stack larger if necessary.) If each call uses 100 bytes, then you could make recursive calls about 10,000 levels deep. Beyond th...
by KristopherWindsor
Apr 02, 2011 8:31
Forum: Projects
Topic: Directory Listing (Recursive Dir()) for the Common Man
Replies: 6
Views: 2248

Hard drives are slow, heh.
I hope some other people see this since dir() is a common issue, and this has worked for me anyway.
by KristopherWindsor
Mar 28, 2011 15:50
Forum: Projects
Topic: Directory Listing (Recursive Dir()) for the Common Man
Replies: 6
Views: 2248

Directory Listing (Recursive Dir()) for the Common Man

I've got a decent solution here for when you want to iterate through all the files and folders in a folder and its subfolders. The solution: ⋅ Has a nice usage syntax for the main use case (iterating through all the files / folders once) ⋅ Lets you store the file / folder tree in...
by KristopherWindsor
Mar 28, 2011 12:54
Forum: Tips and Tricks
Topic: Tiny Stack Implementation
Replies: 11
Views: 3615

Tiny Stack Implementation

If you don't know what a stack is, you do now. :P ' Tiny Stack Implementation ' By Kristopher Windsor Type stackFrame Declare Constructor(Data As Integer, n As stackFrame Ptr) As Integer Data As stackFrame Ptr n End Type Constructor stackFrame(Data As Integer, n As stackFrame Ptr) th...
by KristopherWindsor
Mar 28, 2011 1:33
Forum: Community Discussion
Topic: whats screwing everything up in the FreeBASIC universe ?
Replies: 18
Views: 3864

Image

I like it.
But I think the bad home page keeps the noobs away and won't matter much to the good programmers who happen to see the forum.
by KristopherWindsor
Mar 24, 2011 8:37
Forum: General
Topic: Function exists to remove all spaces from a string?
Replies: 44
Views: 4793

Care to performance test against this for large inputs and sparse spaces? function RemChar ( byref txt as string, byref char as string ) as string dim as string res = "" dim as integer a, b, l = len(txt) + 1 do a = b b = instr(a + 1, txt, char) if b = 0 then b = l r...
by KristopherWindsor
Mar 23, 2011 19:49
Forum: General
Topic: Using SUBs with parameters as Threads
Replies: 6
Views: 1613

ThreadCreate's second parameter is an "any ptr" to pass to the Sub that will be run in the new thread. Although you could put an integer here and cast it, you're supposed to create a UDT with all the data that the Sub needs and give the new thread a pointer to that UDT. http://www.freebasic.net/wiki...
by KristopherWindsor
Mar 22, 2011 7:27
Forum: Community Discussion
Topic: how do i run the interpreter now that I've downloaded?
Replies: 15
Views: 3903

@TESLACOIL - So do something about it.
by KristopherWindsor
Mar 19, 2011 7:25
Forum: General
Topic: Err issues , BUG , harmless ? statement ends Do Loop
Replies: 8
Views: 1101

Re: Thank you agamemnus

Thank you agamemnus It is indeed a bit of a bug then, at least from the point of it being so counter intuitive. Its gonna catch people out time & again im sure. Its also double pain when your straight looking code is part of the error checking you are testing out on your prog. Your mind is focu...
by KristopherWindsor
Mar 19, 2011 4:01
Forum: General
Topic: Err issues , BUG , harmless ? statement ends Do Loop
Replies: 8
Views: 1101

When you print Err, you're clearing the error, so Err = 0 and the loop exits.
From the manual:
NOTE: PRINT ERR after an error occurred is likely to print 0, because PRINT sets a new ERR value when executed. To print an ERR value it must be first copied to an auxiliary variable and print that one.
by KristopherWindsor
Mar 16, 2011 23:40
Forum: Projects
Topic: Project April Fool's Day
Replies: 5
Views: 2241

badidea wrote:64-bit esheep FTW!
I remember from the time I had a Pentium 100 running Windown95.

That reminds me - I haven't tested ESHEEP on x64, but I assume it works. :)
by KristopherWindsor
Mar 16, 2011 22:15
Forum: Projects
Topic: Project April Fool's Day
Replies: 5
Views: 2241

Imortis wrote:I haven't seen esheep in years! You, sir, just made my day.

Thank reddit actually; I just found out about them. :P
by KristopherWindsor
Mar 16, 2011 20:24
Forum: Projects
Topic: Project April Fool's Day
Replies: 5
Views: 2241

Project April Fool's Day

First, you should know about ESHEEP. They are amazing: http://kristopher.jafile.com/screen/100136.png My plan for April Fool's Day is to have these sheep appear on April Fool's Day on everyone else's computers (Windows only though). I made this code to spawn the sheep: ' ESHEEP spawner by Kristopher...
by KristopherWindsor
Mar 16, 2011 5:19
Forum: Beginners
Topic: maximise window to full screen when myprog.exe is launched
Replies: 10
Views: 2096

Look at the flag options on this page:
http://www.freebasic.net/wiki/wikka.php ... engraphics

Go to advanced search