MapWinGIS:Key
From MapWindow GIS
Key
The key may be used by the programmer to store any string data associated with the object.
VB.NET Usage
Property Key() As String
Parameters
|
ReturnValue | The key in string format. |
Sample Code
Private Sub MapKey()
Dim k As String
'Get the map's key
k = Map1.Key
'Check if the map's key is "Map1"
If k = "Map1" Then
'Set the map's key to "My Map1"
Map1.Key = "My Map1"
Else
'Set the map's key to "Map1"
Map1.Key = "Map1"
End If
End Sub
VB 6 Usage
Property Key() As String
Parameters
|
ReturnValue | The key in string format. |
Sample Code
Private Sub MapKey()
Dim k As String
'Get the map's key
k = Map1.Key
'Check if the map's key is "Map1"
If k = "Map1" Then
'Set the map's key to "My Map1"
Map1.Key = "My Map1"
Else
'Set the map's key to "Map1"
Map1.Key = "Map1"
End If
End Sub
















