Search found 140 matches

by GMKai
Sun Sep 24, 2023 5:16 pm
Forum: Newbie questions
Topic: Lists and duplicate keys
Replies: 3
Views: 2240

Lists and duplicate keys

When creating a list with numeric entries...like this: Local indextab = CreateList() Local p = ToNumber(mui.get(mymuiid,"active")) If(HaveItem(indextab,p) = False) InsertItem(indextab,p,p) DebugPrint("Inserted!") Else() ... What would be a good way to check for duplicates before ...
by GMKai
Sun Sep 25, 2022 1:49 pm
Forum: Hollywood bugs
Topic: CountStr
Replies: 1
Views: 1240

CountStr

Code: Select all

Local number = 123556.56
DebugPrint(number)
n = CountStr(number,".")
DebugPrint(n)
n = CountStr(number,'.')
DebugPrint(n)

Code: Select all

123556.56
1
0
Why does the result differ?
Both Count are expected to be 1.
Tested with MorphOS 3.17 and Hollywood 9.1
by GMKai
Sun Sep 26, 2021 11:00 am
Forum: Amiga IDE questions
Topic: FlowStudio
Replies: 17
Views: 26454

Re: FlowStudio

After creating Project and adding a script file to it, go to Workspace --> Project Settings. In the Build tab, write this as Build Command: Hollywood:System/Hollywood -debugdevice @stdout yourscript.hws. I have Makefile Creation "None" and selected "Quiet build" and "Automa...
by GMKai
Mon Sep 20, 2021 11:18 am
Forum: Amiga IDE questions
Topic: FlowStudio
Replies: 17
Views: 26454

Re: FlowStudio

Was anyone successful in setting up a project that used the compiler-settings to build a Hollywood-project?
I had my simple-scripts but I fail to have FlowStudio setup to run the script from within the editor...
by GMKai
Wed Jan 20, 2021 1:04 pm
Forum: Newbie questions
Topic: How to iterate correctly over a given table and peek specific values
Replies: 8
Views: 4765

Re: How to iterate correctly over a given table and peek specific values

Function p_iteratelist(table) Local counter = 0 If(HaveItem(table,"stations")) counter = TableItems(table.stations) DebugPrint("Stations: "..counter) If(counter> 0) For i,v In Pairs(table.stations) DebugPrint("--------") DebugPrint("i: "..i) Local myOpen = Ra...
by GMKai
Thu Jan 14, 2021 3:37 pm
Forum: Newbie questions
Topic: How to iterate correctly over a given table and peek specific values
Replies: 8
Views: 4765

Re: How to iterate correctly over a given table and peek specific values

Hi there, this code should make clearer what point is open: OpenFile(1, "t:table.bin", #MODE_READ) newtable = ReadTable(1) CloseFile(1) Function p_iteratelist(table) Local counter = 0 If(HaveItem(table,"stations")) counter = TableItems(table.stations) DebugPrint("Stations: &...
by GMKai
Tue Jan 12, 2021 2:49 pm
Forum: Newbie questions
Topic: How to iterate correctly over a given table and peek specific values
Replies: 8
Views: 4765

How to iterate correctly over a given table and peek specific values

OpenFile(1, "t:table.bin", #MODE_READ) newtable = ReadTable(1) CloseFile(1) Function p_iteratelist(table) Local counter = 0 If(HaveItem(table,"stations")) counter = TableItems(table.stations) DebugPrint("Stations: "..counter) If(counter> 0) For i,v In IPairs(table.stat...
by GMKai
Sat Jun 13, 2020 5:32 pm
Forum: Mailing list archive
Topic: [21 Dec 2009] opencatalog()
Replies: 1
Views: 1546

[21 Dec 2009] opencatalog()

<r><I><s>[i]</s><SIZE size="85"><s>[size=85]</s>Note: This is an archived post that was originally sent to the Hollywood mailing list on 21 Dec 2009 12:32:54 +0000</SIZE><e>[/i]</e></I><i>[/size]</i><br/> <br/> Hello,<br/> <br/> the documentation of "OpenCatalog()" says that the function can handle ...
by GMKai
Sat Jun 13, 2020 5:32 pm
Forum: Mailing list archive
Topic: [24 Dec 2009] is it possible to use: openfile(1, "fileX") when x differs?
Replies: 2
Views: 1972

[24 Dec 2009] Re: is it possible to use: openfile(1, "fileX") when x differs?

<r><I><s>[i]</s><SIZE size="85"><s>[size=85]</s>Note: This is an archived post that was originally sent to the Hollywood mailing list on 24 Dec 2009 14:30:14 +0000</SIZE><e>[/i]</e></I><i>[/size]</i><br/> <br/> Hallo samuli,<br/> <br/> you can use the operator ".." to concatenate strings<br/> <CODE>...
by GMKai
Sat Jun 13, 2020 5:32 pm
Forum: Mailing list archive
Topic: [25 Dec 2009] setlayername()can i use it without number?
Replies: 1
Views: 1558

[25 Dec 2009] Re: setlayername()can i use it without number?

Note: This is an archived post that was originally sent to the Hollywood mailing list on 25 Dec 2009 07:51:04 +0000

Hallo samuli,

check the command "getAttribute()"