Search found 13 matches

by benco5000
Fri Jul 30, 2010 9:05 pm
Forum: Coding Questions
Topic: Can I add Compile/Build Count to version info automatically?
Replies: 6
Views: 1982

Can I add Compile/Build Count to version info automatically?

Is there a way to auto populate compiler -> options -> Version Info -> File Version / Product Version
with the count of builds / compiles or both?

Example you build/compile a project 2729 times.

Could we put 2729 into Version (like a build number) auto-magically?
and also
Could we put that number ...
by benco5000
Wed Jul 21, 2010 7:50 pm
Forum: Coding Questions
Topic: Progress Bar Threaded
Replies: 7
Views: 2174

Re: Progress Bar Threaded

Will do. Thanks.
by benco5000
Wed Jul 21, 2010 7:35 pm
Forum: Coding Questions
Topic: Progress Bar Threaded
Replies: 7
Views: 2174

Re: Progress Bar Threaded

Thank you, that should help me.

While we are at it, can you tell me how to make the progress bar window stay inside of gWinMain?
I tried changing the code from:

If OpenWindow(0, 0, 0, 320, 20, "Progress ...", $ca0001)
to
If OpenWindow(0, 0, 0, 320, 20, "Progress ...", $ca0001, gWinMain)

but ...
by benco5000
Wed Jul 21, 2010 7:01 pm
Forum: Coding Questions
Topic: Progress Bar Threaded
Replies: 7
Views: 2174

Re: Progress Bar Threaded

Sure.

While processing several files in loop. I'm trying to update an indicator for the end user:

progressBar = Round(currentFile / numberOfFilesToProcess * 100,1)
i.e. here is the actual line of code in my source program (not shown in the example its rather large)

gProgressBarLevel = Round(c ...
by benco5000
Wed Jul 21, 2010 5:09 pm
Forum: Coding Questions
Topic: Progress Bar Threaded
Replies: 7
Views: 2174

Progress Bar Threaded

My progress bar does not update properly. I read on the blog that it needed to be threaded.
Not sure how to update the progress bar from the main window? Around lines 42 - 63
Chopped this down from another program so this example may be more complex than it needs to be.

TIA ...
by benco5000
Fri Jul 16, 2010 4:58 pm
Forum: Coding Questions
Topic: Memory Allocate Crash?
Replies: 7
Views: 1985

Re: Memory Allocate Crash?

Thanks for such a quick response. I was beginning to think that it was a memory stick error. Turns out Derek was right.... although I still fail to see why that routine affects the other since it only returns a count. If I correct the counter in the CountTicks routine, it works. If I skew it ...
by benco5000
Fri Jul 16, 2010 4:18 pm
Forum: Coding Questions
Topic: Memory Allocate Crash?
Replies: 7
Views: 1985

Memory Allocate Crash?

Ok. I've been hammering on this for a couple of weeks now. This is a subsection of one of my programs. What its supposed to do is escape Hyphens (referred to as ticks in the program) and turn a single into a double tick. All this is performed in memory. I am unable to get much consistency out of the ...
by benco5000
Wed Jul 14, 2010 4:04 pm
Forum: Coding Questions
Topic: How to move byte into al
Replies: 2
Views: 457

How to move byte into al

Trying to do some basic assembler
for brevity, please assume that:
*lPointer is a valid pointer to some data, i.e.
'ABCDEFG'

Code: Select all

start:   MOV al, $00             ;; clear register for grins
         MOV al, [*lPointer]     ;; how do I get the character 'A' loaded into the register al?
by benco5000
Wed Mar 03, 2010 10:10 pm
Forum: Feature Requests and Wishlists
Topic: [Implemented] Very long statements
Replies: 44
Views: 15212

Re: Very long statements

Well thank you very much. I downloaded codecaddy and now my code looks perfect. Onward and upward. :D
by benco5000
Wed Mar 03, 2010 6:30 pm
Forum: Feature Requests and Wishlists
Topic: [Implemented] Very long statements
Replies: 44
Views: 15212

Re: Very long statements

I'll just repost here to add my vote to have this done.
My code in other languages is overly documented (is this really possible) and very clean. I'd like to add pure basic to my arsenal. Below is an example of ugly vs. clean (artsy code ...
by benco5000
Wed Mar 03, 2010 6:18 pm
Forum: Coding Questions
Topic: How can I wrap long lines of code?
Replies: 5
Views: 921

Re: How can I wrap long lines of code?

any chance we can encourage developers to reconsider?
by benco5000
Wed Mar 03, 2010 6:11 pm
Forum: Coding Questions
Topic: How can I wrap long lines of code?
Replies: 5
Views: 921

How can I wrap long lines of code?

I've looked through the docs, and forum. The latest I found was an entry
from several months ago. Was this ever corrected so we could wrap long
lines of code?

;------------------------------------------------------------
; create a main window ...
by benco5000
Tue Mar 02, 2010 10:18 pm
Forum: Coding Questions
Topic: Gadget Item Row Text
Replies: 3
Views: 1109

Gadget Item Row Text

I have this code snippet. But I must be trying to set the text in the rows incorrectly.
Any suggestions?
tia

ListIconGadget(1, 10, 10, 380, 100, "", 80, #PB_ListIcon_GridLines)
For a = 0 To 11
AddGadgetColumn(1, a, "Column " + Str(a), 80) ;; Add Columns
SetGadgetItemText(1, -1, "T" + Str(a), a ...