MapPoint Forums

MapForums

Community of MapPoint and Bing Maps Users and Developers




OLEVariant conversion

This is a discussion on OLEVariant conversion within the MapPoint Desktop Discussion forums, part of the Map Forums category; hello, i've got a point as OleVariant. how can i convert it into a normal Point Object? I tried something ...


Go Back   MapPoint Forums > Map Forums > MapPoint Desktop Discussion

Today's Posts Twitter Feed Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-04-2005
Junior Member
White Belt
 
Join Date: Oct 2005
Posts: 1
OLEVariant conversion

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 10-10-2005
Senior Member
Black Belt
 
Join Date: Nov 2004
Location: Belgium
Posts: 2,318
Hi,

You dont have to convert it, you have to typecast it. eg in delphi:
Point := TPoint(theThing);
in c:
Point := (TPoint)theThing;
etc..
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
conversion, olevariant


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
Lat/Long conversion klomp63 MapPoint Desktop Discussion 1 03-14-2006 02:29 PM
Help Re Conversion please Ticker MapPoint Desktop Discussion 2 11-09-2004 10:25 AM
vb6 to vb.net conversion woes starbuck MapPoint Desktop Discussion 5 07-23-2004 08:07 AM
OleVariant Problem with Delphi 6 top204 MapPoint Desktop Discussion 3 04-29-2004 04:51 AM
Coordinate conversion Matrices MapPoint Desktop Discussion 3 10-03-2003 07:13 AM


All times are GMT -5. The time now is 01:48 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.2
MP2K Magazine
Visitor Map



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67