Search found 237 matches

by SamuraiCrow
Mon Jul 31, 2017 1:03 pm
Forum: Newbie questions
Topic: @DISPLAY, field TITLE
Replies: 3
Views: 1750

Re: @DISPLAY, field TITLE

Yes. Preprocessor macros must be defined before the program starts running. if you need to define a name, use a constant definition or define a constant from the command line using an external build script.
by SamuraiCrow
Mon Jul 31, 2017 12:56 pm
Forum: Newbie questions
Topic: Named elements of a table
Replies: 5
Views: 2396

Re: Named elements of a table

The quotes around the variable name mean that the name of the element is literally what's between the quotes, not the contents of the variable with that name.
by SamuraiCrow
Wed Jul 26, 2017 9:34 am
Forum: General programming
Topic: Some JPEG pictures don't work...
Replies: 16
Views: 6959

Re: Some JPEG pictures don't work...

Are they traditional JFIF or JPEG2000?
by SamuraiCrow
Sun Jul 23, 2017 10:45 am
Forum: Newbie questions
Topic: Changing to full screen mode on amiga
Replies: 9
Views: 5422

Re: Changing to full screen mode on amiga

If you don't need to use window mode from the start, try using fullscreen in the preprocessor configuration.
by SamuraiCrow
Sun Jul 23, 2017 10:39 am
Forum: General programming
Topic: Function defined using self.var at later point, possible?
Replies: 6
Views: 3060

Re: Function defined using self.var at later point, possible

Pass the self pointer as the first parameter and it might work. Even if it does not work, you could always have a wrapper method call it as a workaround.
by SamuraiCrow
Tue Jul 18, 2017 4:03 pm
Forum: Windows IDE
Topic: (wish) Replace with each replace x=x+1
Replies: 4
Views: 2567

Re: (wish) Replace with each replace x=x+1

@include enum.hws from here to add an enum class. Warning it's untested at this point but has in-code documentation and an equally untested unit test method.
by SamuraiCrow
Tue Jul 18, 2017 7:46 am
Forum: Windows IDE
Topic: (wish) Replace with each replace x=x+1
Replies: 4
Views: 2567

Re: (wish) Replace with each replace x=x+1

I would expect all the enumerations to be prefixed with a # symbol since they are constants.
by SamuraiCrow
Mon Jul 17, 2017 6:00 pm
Forum: Windows IDE
Topic: (wish) Replace with each replace x=x+1
Replies: 4
Views: 2567

Re: (wish) Replace with each replace x=x+1

Personally, I'd prefer an actual enumeration function.
by SamuraiCrow
Mon Jul 17, 2017 5:53 pm
Forum: General programming
Topic: any way to access function..n?
Replies: 1
Views: 999

Re: any way to access function..n?

Of course there are other ways but the most effective way would be to make your existing wrapper tables into one so that each entry would have a var and a func field.

Code: Select all

wrap={{var=v1,func=func1},{var=v2,func=func2}…}
Then call it with

Code: Select all

wrap[n]["var"]
or

Code: Select all

wrap[n]["func"]
.
by SamuraiCrow
Sat Jul 15, 2017 6:34 pm
Forum: Newbie questions
Topic: Changing to full screen mode on amiga
Replies: 9
Views: 5422

Re: Changing to full screen mode on amiga

Can you tell us any more about your configuration besides that it's Workbench 3.1? What screenmode is the smallest in your Picasso 96 configuration? If you are not using P96, you need Plananorama plugin and a corresponding @requires directive and 2 libraries in your Libs: directory.