MapWinGIS:Key

This is a back-up of the WIKI.
Not all links might work
We're working on a new wiki.

Main Page | Recent changes | View source | Page history | Log in / create account |

Printable version | Disclaimers | Privacy policy

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

Retrieved from "http://mapwindow.org/wiki/index.php/MapWinGIS:Key"

This page has been accessed 4,795 times. This page was last modified on 9 November 2005, at 16:20.