FromString method

Official Content
This documentation is valid for:

Converts a character data type to the data type of the attribute or variable to which the method is applied.

Syntax

AttOrVar.FromString(character-expression)

Where:

AttOrVar
   
Must be an attribute or variable.

character-expression
     Must be a character expression.

Type Returned:
Data type of the attribute or variable to which the method is applied.

Scope

Generators: .NET, Java, Ruby (up to GeneXus X Evolution 3), Visual FoxPro (up to GeneXus X Evolution 3)

Samples

If &GUID <> GUID.FromString("2ac61739-b024-438e-a6e5-e507d8be4667")
   msg("Bad Site Key")
EndIf

See Also

CtoD function
CtoT function
ToString method