System.Variant2Time(Variant) Method

Version: Available or changed with runtime version 1.0.

Gets a time from a variant.

Syntax

Time :=   System.Variant2Time(Variant: Variant)

Note

This method can be invoked without specifying the data type name.

Parameters

Variant
 Type: Variant
The input variant.

Return Value

Time
 Type: Time

Example

var
    TextTime: Time;
    variant1: Variant;
begin 
    variant1 := Time;  
    TestTime := Variant2Time(variant1);  
end;

System Data Type
Get Started with AL
Developing Extensions