Search found 240 matches

by SamuraiCrow
Sun Nov 10, 2019 3:37 pm
Forum: Newbie questions
Topic: Drop some results
Replies: 6
Views: 125

Re: Drop some results

LarsB wrote:
Sun Nov 10, 2019 2:58 pm
Why do you set a,b,d to NIL if they are not needed?
That's to deallocate them.
by SamuraiCrow
Thu Nov 07, 2019 1:42 am
Forum: Newbie questions
Topic: Aminet Release - How to
Replies: 19
Views: 438

Re: Aminet Release - How to

@LarsB

The icon file format on AOS 4 is backward compatible to AOS 3.
by SamuraiCrow
Mon Nov 04, 2019 6:57 pm
Forum: Newbie questions
Topic: Applets and .ogg
Replies: 8
Views: 231

Re: Applets and .ogg

Applets are portable but plugins are not. Linkage cannot take place. Just put the plugin in the appropriate directory in the applet player.
by SamuraiCrow
Mon Oct 14, 2019 6:36 pm
Forum: Amiga IDE questions
Topic: Prefered Amiga IDE
Replies: 12
Views: 1855

Re: Prefered Amiga IDE

SantiDarkG wrote:
Mon Oct 14, 2019 2:45 pm
Error: File Path of the file *.hws doest not exist!
Did you try #?.hws instead of the star?
by SamuraiCrow
Thu Oct 03, 2019 6:44 pm
Forum: General programming
Topic: Any way to save current eventhandler option?
Replies: 9
Views: 244

Re: Any way to save current eventhandler option?

@Bugala

Have you considered making a wrapper function your handler instead and having it keep track of the functions yourself?
by SamuraiCrow
Thu Oct 03, 2019 8:10 am
Forum: General programming
Topic: Create tables
Replies: 8
Views: 214

Re: Create tables

sashapont wrote:
Wed Oct 02, 2019 9:32 pm
I use this code and than
SystemRequest("tbl", ListItems(tbl), "OK",#REQICON_WARNING)
I have 0. Why not 100?
Use TableItems() instead of ListItems() because it isn't an array.
by SamuraiCrow
Thu Oct 03, 2019 8:05 am
Forum: General programming
Topic: Any way to save current eventhandler option?
Replies: 9
Views: 244

Re: Any way to save current eventhandler option?

It's the first parameter passed into the event handler. See https://hollywood-mal.com/docs/html/hol ... ndler.html for details.
by SamuraiCrow
Wed Oct 02, 2019 9:19 pm
Forum: General programming
Topic: Create tables
Replies: 8
Views: 214

Re: Create tables

You still need to put those 100 tables in an outer one. You can use a string concatination to generate a key value. Local and Global variables cannot use dynamic names.

Code: Select all

Global tbl={}
For t=0 to c
  tbl["MenuItem"..StrStr(t).."$"]={}
Next
by SamuraiCrow
Wed Oct 02, 2019 9:11 pm
Forum: General programming
Topic: Any way to save current eventhandler option?
Replies: 9
Views: 244

Re: Any way to save current eventhandler option?

Isn't an event just a table variable? You should be able to pass that in as a parameter or assign it to another variable as needed. You should even be able to insert it into another table!
by SamuraiCrow
Wed Oct 02, 2019 9:05 pm
Forum: General programming
Topic: Create tables
Replies: 8
Views: 214

Re: Create tables

Let's try again. You are trying to generate names dynamically? If so it needs to be inside an outer table.

Code: Select all

MenuItem={}
For t=0 to c
  MenuItem[t]={}
Next