Search found 126 matches

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: 988

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 = RawGet(v,"isOpen") Local myplz = RawGet(v,...
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: 988

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: "..counter) If(counter> 0)...
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: 988

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.stations) DebugPrint("i: "..i) For...
by GMKai
Sat Jun 13, 2020 5:32 pm
Forum: Mailing list archive
Topic: [21 Dec 2009] opencatalog()
Replies: 1
Views: 465

[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: 607

[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: 488

[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()"
by GMKai
Sat Jun 13, 2020 5:32 pm
Forum: Mailing list archive
Topic: [20 Sep 2009] nested tables
Replies: 0
Views: 382

[20 Sep 2009] nested tables

<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 Sun, 20 Sep 2009 16:15:14 +0200</SIZE><e>[/i]</e></I><i>[/size]</i><br/> <br/> Hello,<br/> <br/> I am currently reworking the way my program access tables. I have ...
by GMKai
Sat Jun 13, 2020 5:32 pm
Forum: Mailing list archive
Topic: [21 Sep 2009] help with tables
Replies: 0
Views: 346

[21 Sep 2009] help with tables

<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 Mon, 21 Sep 2009 14:30:21 +0200</SIZE><e>[/i]</e></I><i>[/size]</i><br/> <br/> Hello, I am currently on the task to implement a way to import a saved table into an...
by GMKai
Sat Jun 13, 2020 5:32 pm
Forum: Mailing list archive
Topic: [22 Sep 2009] importing tables
Replies: 3
Views: 665

[22 Sep 2009] importing tables

<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 Tue, 22 Sep 2009 11:21:53 +0200</SIZE><e>[/i]</e></I><i>[/size]</i><br/> <br/> Hello,<br/> <br/> I fixed the previously mentioned problem, when some entries were s...
by GMKai
Sat Jun 13, 2020 5:32 pm
Forum: Mailing list archive
Topic: [22 Sep 2009] importing tables
Replies: 3
Views: 665

[25 Sep 2009] Re: importing tables

<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 Fri, 25 Sep 2009 13:37:07 +0200</SIZE><e>[/i]</e></I><i>[/size]</i><br/> <br/> Hello Andreas,<br/> <br/> yes you are right with avoiding global variables.<br/> <br...