GUIDs identify objects such asinterfaces and class objects. A GUID consists of one group of 8 hexadecimaldigits, followed by three groups of 4 hexadecimal digits each, which arefollowed by one group of 12 hexadecimal digits.
In the following script, Imanually generate the GUID that I can use later in the application by usingVB.NET:
Private Sub GenerateGUID()
Dim sGUID As String
sGUID = System.Guid.NewGuid.ToString()
MessageBox.Show(sGUID)
End Sub
In the example, I define a string variable, sGUID, to hold aGUID that I will generate. Then I set the value of sGUID to the value returned bythe System.Guid.NewGuidmethod (using the System.Guidnamespace) and convert the result to a string using ToString(). The result is displayed in a messagebox.