Switch to desktop version  
Find the number of tags - Printable Version

+- Ewon Technical Forum (https://techforum.ewon.biz)
+-- Forum: Development (https://techforum.ewon.biz/forum-50.html)
+--- Forum: BASIC Script (https://techforum.ewon.biz/forum-52.html)
+--- Thread: Find the number of tags (/thread-1123.html)



Find the number of tags - hjl - 09-12-2019

In a script I like to find number of tags.
From an example I found I made this:

// Finding number of tags
    Onerror "GOTO EndCount"
    For i% = 0 To 500
      Setsys Tag,"load", -i%
    Next i%
EndCount:
  LastTag% = i% - 1

It works but an Error is shown on the console. 
Can I supress this error message or is it an better way to find the number of tags?
 


RE: Find the number of tags - AngelaT - 09-12-2019

GETSYS PRG,"NBTAGS" will return the number of tags.