Search found 31 matches

by sadams54
Thursday 16th January 2020 7:03pm
Forum: General
Topic: paint.end
Replies: 2
Views: 54

Re: paint.end

Hey, thanks so much. Your answer was a bit wordy but that did the trick.

You could simplify the answer for others by just saying to eliminate the paint.end command and it all works.

Looks like the paint.end command is no longer needed.

Thanks again for the help.
by sadams54
Thursday 16th January 2020 12:42am
Forum: General
Topic: update screwed everything up
Replies: 3
Views: 83

Re: update screwed everything up

there are global variables... in the module section before and outside of any sub or function.. private A[300] as string this used to do it. Public A As New String[300] is how it must be now... so yes there are global variables.. As for the printing I never mentioned anything about a report. I said ...
by sadams54
Tuesday 14th January 2020 10:17pm
Forum: General
Topic: paint.end
Replies: 2
Views: 54

paint.end

With the latest update many things changed and no backward compatibility was considered. I have fixed my printing problems with the help of benoit, but one remains. In the past it worked fine. I set the number of pages for the document in the begin method. The it called the draw as many times as the...
by sadams54
Friday 10th January 2020 1:28am
Forum: General
Topic: read only array help
Replies: 10
Views: 231

Re: read only array help

the problem is the update to the run time modules, it has changed how declarations work and also screwed up my printing ability. I now have months of work to fix this and some of it is critical
by sadams54
Friday 10th January 2020 1:26am
Forum: General
Topic: update screwed everything up
Replies: 3
Views: 83

update screwed everything up

I did the updates and now gambas is really screwed... 1.. global variables are handled differently and had to recompile everything to make it work again. 2.. after months of work making reports and other things print nicely, the update has randomly changed the print size of everything so font sizes ...
by sadams54
Monday 23rd December 2019 7:24pm
Forum: General
Topic: read only array help
Replies: 10
Views: 231

Re: read only array help

' Gambas module file Public A[300] As String Sub ClearA() Do Stuff ---------------------------------------------------------------------------- That is the section of code. It becomes a read only array and I need read write. If I put the "[300]" after string I get syntax error. If I put try "public ...
by sadams54
Monday 23rd December 2019 6:19am
Forum: General
Topic: read only array help
Replies: 10
Views: 231

Re: read only array help

the context you provided is correct. I declare it outside the subs and functions at the module level. However your syntax produces errors as I mentioned above.
by sadams54
Sunday 22nd December 2019 8:39pm
Forum: General
Topic: read only array help
Replies: 10
Views: 231

Re: read only array help

You must Declare & Instantiate an array, either in one go like this:- Public myArray As New String[300] Nice try but the above is the same thing I tried. You can't put new in a global declaration. And the array bounds has to be at the array not the type declaration so this produces either a mix erro...
by sadams54
Sunday 22nd December 2019 6:52am
Forum: General
Topic: read only array help
Replies: 10
Views: 231

read only array help

I keep ending up with a read only array. below is the line This array is a global array inside a module. I need it to be read/write. I tried putting new in there but that just produces an error about mixing embedded arrays and new. I feel stupid not being able to figure this issue out. Please help. ...
by sadams54
Thursday 08th August 2019 1:49am
Forum: General
Topic: printing in color
Replies: 0
Views: 665

printing in color

I have finally mastered printing including multiple pages. I have 2 things I am trying to do. 1.. Print a line of text to the printer in color (assuming printer supports color). I can't figure out how to set the color to print using paint.drawtext 2.. I want to create a rectangle area on the page fi...