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.

character string
#5
(09.10.2022, 11:03)Chris Wrote: Hello,

Thanks for your answer, but it doesn't work --> value: 0:00:00

https://zupimages.net/viewer.php?id=22/40/8bpk.png

value1 = grp.getvalue("32/1/20")
value2 = grp.getvalue("32/1/21")

local data = '%d%d:%d%d:%d%d'

local res = string.match(value2, data)

grp.write('32/1/30', res)

grp.write('32/1/28', value1)

log(res)

Script works if you pass a string, if you pass a table it can't work
Best regard
Reply


Messages In This Thread
character string - by Chris - 08.10.2022, 09:38
RE: character string - by CristianAgata - 09.10.2022, 08:00
RE: character string - by Chris - 09.10.2022, 11:03
RE: character string - by CristianAgata - 09.10.2022, 13:52
RE: character string - by Dré - 09.10.2022, 13:42
RE: character string - by Chris - 09.10.2022, 14:06
RE: character string - by CristianAgata - 09.10.2022, 14:27
RE: character string - by Dré - 09.10.2022, 14:39
RE: character string - by Chris - 09.10.2022, 14:56
RE: character string - by admin - 10.10.2022, 06:25

Forum Jump: