Copyright © 2016 Mobilengine Corp. All rights reserved. version: 7.0.4.19927
Creates a guid value from its string representation.
Parameters
Parameter | Type | Description |
---|---|---|
string (required) | string | The string to be converted to a guid. |
Returns
The guid equivalent of the string parameter. Returns undefined
if the string parameter cannot be parsed as a guid.
Remarks
The method can handle string representations that correspond to the guid.ToStringN()
,
guid.ToStringD()
, and guid.ToStringB()
methods.
Sample
var a = guid.Generate(); ... var d = a.ToStringB(); ... var e =guid.Parse(d)
; trace e; trace "Hyphenated groups", guid.Parse("7734affe-9903-5342-ade5-0223700affe4"); trace "Continuous string", guid.Parse("7734affe99035342ade50223700affe4"); trace "Braces plus groups", guid.Parse("{7734affe-9903-5342-ade5-0223700affe4}");
{bba3f8f8-2d01-4748-bcb1-13c544a3bf4c} "Hyphenated groups", {7734affe-9903-5342-ade5-0223700affe4} "Continuous string", {7734affe-9903-5342-ade5-0223700affe4} "Braces plus groups", {7734affe-9903-5342-ade5-0223700affe4}
Figure 395. The trace message output of the script above