Official Content

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

Data Types: BlobBooleanCharacterVarCharLongVarCharDate, DateTimeGeography, GeoLine, GeoPoint, GeoPolygon, GUIDNumeric
Generators: .NET, .NET FrameworkJava, 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

    


Last update: November 2024 | © GeneXus. All rights reserved. GeneXus Powered by Globant