Mega Search
23.2 Million


Sign Up

Make a donation  
How to store TGUID on TValue?  
News Group: embarcadero.public.delphi.language.delphi.general

[XE7.1]

Maybe simple or silly,

but how can I store a TGUID value on a TValue variable?

var
  GUID: TGUID;
  Value: TValue;

begin
  Value := GUID; ?????
end;

How can I retrive it? There is not apparent interface for TGuid data on TValue.

Eduardo

Vote for best question.
Score: 0  # Vote:  0
Date Posted: 20-Jan-2015, at 11:14 AM EST
From: Eduardo Elias
 
Re: How to store TGUID on TValue?  
News Group: embarcadero.public.delphi.language.delphi.general
Eduardo wrote:

> how can I store a TGUID value on a TValue variable?

> How can I retrive it?

Like this:

{code}
var
  GUID: TGUID;
  Value: TValue;
begin
  GUID := ...;
  Value := TValue.From(GUID);
  GUID := Value.AsType();
end;
{code}


-- 
Remy Lebeau (TeamB)

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 20-Jan-2015, at 12:10 PM EST
From: Remy Lebeau (TeamB)