Restored from previous forum. Originally posted by TronDoc.
Is anyone with PB experience going over the forum
entries....
Edited by - TronDoc on 09 February 2002 11:32:12
better/more examples AND for.next.step
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by Franco.
Well I try to run every snippets of code (if I have time...) and if they don't work I send a feedback. (It's a good way to learn quickly and understand how things work...)
So I gathered (segmented - for better finding) not only my code, but also contributed code from others, and already send my collection (well a part of... to seperate into sections and to test it is so time consuming) to users who asking me for. (Hi Fangles how is it going? )
I put every snippet of code in fully functional Procedures (this makes a lot easier to reuse it) and every Procedure in a own Include file. When I need code I add my Includefile and can use this function right away.
(That's why I like to make libs with PureB...)
But I suggest that the moderator creates a new Topic where the users can put the working sources - ONLY THE SOURCES - with including some comments like:
";This source is tested with Win98 and PureB V2.7... bla, bla"
or something like that.
But the topic must be segmented for better search!
Maybe segmented into the library names or into API calls or whatever...
And if somebody has a questions to a source, he has to put it to another topic, or in a special question section (not where the sources are!).
Or somebody can separate the sources in the 'tips and tricks' topic from the comments and questions, and seperate the code into sections ...
So we can, all together, not only increase our database of code also the quality.
What do you think?
(If not..., I don't stop to seperate code into sections and... )
Have a nice day...
Franco
Well I try to run every snippets of code (if I have time...) and if they don't work I send a feedback. (It's a good way to learn quickly and understand how things work...)
So I gathered (segmented - for better finding) not only my code, but also contributed code from others, and already send my collection (well a part of... to seperate into sections and to test it is so time consuming) to users who asking me for. (Hi Fangles how is it going? )
I put every snippet of code in fully functional Procedures (this makes a lot easier to reuse it) and every Procedure in a own Include file. When I need code I add my Includefile and can use this function right away.
(That's why I like to make libs with PureB...)
But I suggest that the moderator creates a new Topic where the users can put the working sources - ONLY THE SOURCES - with including some comments like:
";This source is tested with Win98 and PureB V2.7... bla, bla"
or something like that.
But the topic must be segmented for better search!
Maybe segmented into the library names or into API calls or whatever...
And if somebody has a questions to a source, he has to put it to another topic, or in a special question section (not where the sources are!).
Or somebody can separate the sources in the 'tips and tricks' topic from the comments and questions, and seperate the code into sections ...
So we can, all together, not only increase our database of code also the quality.
What do you think?
(If not..., I don't stop to seperate code into sections and... )
Have a nice day...
Franco
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by Paul.
Just a note...
I would be quite willing to setup some sort of code archive on the PB Resources Site if anyone is interested??
http://www.reelmediaproductions.com/pb
Just a note...
I would be quite willing to setup some sort of code archive on the PB Resources Site if anyone is interested??
http://www.reelmediaproductions.com/pb
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by PB.
However, this constant version does work:
Fred?
Hmm, you're right! The following example does not work:Lastly, the most recent documentation I can find
shows the "step" part of the for,next,step
command to be a "constant". Is this true?
Even GW-BASIC allowed the "step" to be
a variable....
Code: Select all
s=5
For a=0 To 20 Step s
MessageRequester("value",Str(a),0)
Next
Code: Select all
#s=5
For a=0 To 20 Step #s
MessageRequester("value",Str(a),0)
Next
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by Fangbeast.
Fangles
Going well Franco, your templates really help and when I told Fred, he was interested enough to ask me to send them to him. I'm posting bits and peices too as I learn and Fred gave me good comments and helped a lot too.who asking me for. (Hi Fangles how is it going? )
Fangles
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by Fangbeast.
Fangles
Paul, I've wanted that for a while and mentioned it to Fred who was interested. With Franco finally collecting his templates and all of us playing with 'mini' code, you could end up with a nice section there:)Just a note...
I would be quite willing to setup some sort of code archive on the PB Resources Site if anyone is interested??
http://www.reelmediaproductions.com/pb
Fangles