PDA

View Full Version : OLEVariant conversion



phoque
10-04-2005, 07:46 AM
hello,

i've got a point as OleVariant.
how can i convert it into a normal Point Object?
I tried something like this, but it don't work

p := recs.fields.Item('Shape').Value:

thanks for help

Wilfried
10-10-2005, 12:44 PM
Hi,

You dont have to convert it, you have to typecast it. eg in delphi:
Point := TPoint(theThing);
in c:
Point := (TPoint)theThing;
etc..