This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

tag value of ocbject
#1
Hello

i should retrieve the object tag value with the following code

Code:
------- retry TAGS for mailing dest
tbl = grp.gettags(name)

strTAGS = table.concat(tbl, ', ')


If I have more tags how can I retrieve the value of the single tag?


BR
Reply
#2
First tag will be tbl[1], second: tbl[2] and so on. But the table can be empty as well. Explain what are you try to do? Find if an object has a certain tag?
Reply
#3
(01.02.2021, 09:31)admin Wrote: First tag will be tbl[1], second: tbl[2] and so on. But the table can be empty as well. Explain what are you try to do? Find if an object has a certain tag?

yes I am using the tags for various functions, in case of values, if I have more values the first value is used for or / and script, the second to send mail with differentiated address.

is it possible to see the length of the array?

thank's
Reply
#4
Array-like table length:
Code:
len = #tbl
Reply
#5
(01.02.2021, 10:22)admin Wrote: Array-like table length:
Code:
len = #tbl

thank you very much
Reply


Forum Jump: