![]() |
![]() |
[ Bottom of Page | Previous Page | Next Page | Contents | Index ]
Object.CreateMap( ) As Integer
Object.SetMapNumElement(hndl As Integer, key As String, val As Double)
Object.SetMapStrElement(hndl As Integer, key As String, val As String)
Object.GetMapNumValue (hndl As Integer, key As String) As Double
Object.GetMapStrValue(hndl As Integer, key As String) As String
Object.RemoveMapElement(hndl As Integer, key As String)
Object.RemoveMapAll(hndl As Integer)
Object.ExistsMapElement(hndl As Integer, key As String)
As Boolean A. Service Object Method Library
Object.DestroyMap(hndl As Integer)
Visual Basic example: | |
Dim hPropTable As Integer hPropTable = Svc.CreateMap() Svc.SetMapNumElement(hPropTable, "NumAttr", 1) Svc.SetMapStrElement(hPropTable, "StrAttr", "stringVal") Dim numAttr As Double numAttr = Svc.GetMapNumValue(hPropTable, "NumAttr") Dim strAttr As String strAttr = Svc.GetMapStrValue(hPropTable, "StrAttr") Svc.RemoveMapElement(hPropTable, "NumAttr") If Svc.ExistsMapElement(hPropTable, "NumAttr") Then 'Error End If Svc.RemoveMapAll(hPropTable) Svc.DestroyMap(hPropTable) |
|
JavaScript example: | |
var hPropTable; hPropTable = Svc.CreateMap(); Svc.SetMapNumElement(hPropTable, "NumAttr", 1); Svc.SetMapStrElement(hPropTable, "StrAttr", "stringVal"); var numAttr; numAttr = Svc.GetMapNumValue(hPropTable, "NumAttr"); var strAttr; strAttr = Svc.GetMapStrValue(hPropTable, "StrAttr"); Svc.RemoveMapElement(hPropTable, "NumAttr"); if( Svc.ExistsMapElement(hPropTable, "NumAttr") ){ //Error } Svc.RemoveMapAll(hPropTable); Svc.DestroyMap(hPropTable); |
[ Top of Page | Previous Page | Next Page | Contents | Index ]