WoW:API GetBuildInfo: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
m (Move page script moved page API GetBuildInfo to API GetBuildInfo without leaving a redirect)
 
(2 intermediate revisions by 2 users not shown)
Line 11: Line 11:
:;build : String - build number
:;build : String - build number
:;date : String - build date
:;date : String - build date
:;tocversion : String - TOC Version number (New in 2.4.2)
:;tocversion : Number - TOC Version number (New in 2.4.2)


== Example ==
== Example ==
Line 20: Line 20:
  build = "8278"
  build = "8278"
  date = "May  1 2008"
  date = "May  1 2008"
  tocversion = "24000"
  tocversion = 20400
 
Try this macro:
/script v, b, d, t = GetBuildInfo()
/script print(string.format("version = %s, build = %s, date = '%s', tocversion = %s.", v, b, d, t))
----
----

Latest revision as of 04:45, 15 August 2023

WoW API < GetBuildInfo

Returns information about current client build.

version, build, date, tocversion = GetBuildInfo()

Parameters[edit]

Returns
version, build, date, tocversion
version
String - version
build
String - build number
date
String - build date
tocversion
Number - TOC Version number (New in 2.4.2)

Example[edit]

local version, build, date, tocversion = GetBuildInfo()

Result[edit]

version = "2.4.2"
build = "8278"
date = "May  1 2008"
tocversion = 20400

Try this macro:

/script v, b, d, t = GetBuildInfo()
/script print(string.format("version = %s, build = %s, date = '%s', tocversion = %s.", v, b, d, t))