Assigns the empty value in an attribute, variable, or business component depending on its types.
AttributeName | &VarName.SetEmpty()
Where:
AttributeName
Is the Attribute name to which the method is applied.
&VarName
Is the Variable name to which the method is applied.
Data Types: Audio, Blob, BlobFile, Character, VarChar, LongVarChar,
Date,
Date, DateTime,
Geography, GeoLine, GeoPoint, GeoPolygon, GUID, Image, Numeric, Video, Extended data types
Generators:
.NET,
.NET Framework, Java, RPG, Cobol, Ruby (up to GeneXus X Evolution 3), Visual FoxPro (up to GeneXus X Evolution 3)
The following table shows the corresponding empty value for each data type
Data Type |
Empty value |
Boolean |
False |
Character(N), VarChar(N), LongVarChar(N) |
N-blanks |
Date |
001-01-01 |
DateTime |
0001-01-01 00:00:00 |
Numeric |
0.0 |
Time |
00:00:00 |
Rule defined in an Owner Transaction object:
OwnerCel.SetEmpty() if OwnerName.IsEmpty();
Code defined inside a Procedure Source or inside an object Event:
If OwnerName.IsEmpty()
OwnerCel.SetEmpty()
EndIf
Notes:
Attribute Empty Value for each DBMS and Data Type
Nullvalue function
IsNull function