Profile class

The Profile class represents one or more account related profiles.
Hex.Profile(iProfileId) returns a new object of type Profile.

Profile:GetProfileName()

This function returns the name of the profile as a string.

Profile:Next()

This function gets the next profile.
The function will return true on success, and false when there are no more profiles to iterate.
If you did not initialize this object with value -1, the function will always return false.

Lua sample code

local p = Hex.Profile(-1)
local b = true

-- Iterate through the profiles
while b == true do
	print("Profile name="..p:GetProfileName())
	b = p:Next()
end

Generated on Thu Aug 21 11:24:07 2008 for HeXHub/HexScript by  doxygen 1.5.4
Site hosted by SourceForge.net Logo