API:GetVocInfo

__NOTOC__
GetVocInfo
Returns the info of the units primary class
local JobID,JobName = GetVocInfo("unit")
'''
== Input ==
'''
 unit: string (player, target, party1, pet, targettarget, mouseover...)
 this appears to not matter as it always returns the players information.
'''
== Return ==
'''
 JobID: number-related to primary class 1-8 for Players.
 JobName: string-Name related to primary class 
 
== Example ==
 /script local JobID,JobName = GetVocInfo("unit"); DEFAULT_CHAT_FRAME:AddMessage("Job no.:"..JobID.." Job Title:"..JobName)
--Qaz1qaz1qa 07:40, 6 March 2010 (UTC)
API:GetVocSubInfo