Hi all,

 

Long time, no chat..

 

I am working on a VFP project that requires that I pass a struct.  For my
current problem, it wants an array of structs that simply have 2 doubles.

 

I seem to remember there being a fairly straightforward way to create a
variable that, to the COM objects method, looks like a struct, when, in
fact, it is a string of values patched together.

 

So the code in .net might look like

 

Dim pt(2) as somestruct

Pt(0).x = 123.9876

Pt(0).y = 456.789

Pt(1).x = 123.1

Pt(1).y = 789

 

Comobj.SomeSillyMethod(pt)

 

And the structure looks something like:

Structure Somestruct

  Double x

  Double y

 

I assume I should be able to use a VFP array, but not sure how to model the
struct.

 

I am also not sure how to do it so that it sees it as a double and not a
decimal or some other data type.

 

Any and all ideas are welcome!

 

Take care,

 

Fletcher

(who lurks here when time permits or problems require)

 

Fletcher Johnson

fletchersjohn...@yahoo.com

408-781-2345 - Cell

408-946-0960 - Work

501-421-9629 - Fax

 



--- StripMime Report -- processed MIME parts ---
multipart/alternative
  text/plain (text body -- kept)
  text/html
---

_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/051901cc6ccf$7300e3d0$5902ab70$@yahoo.com
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to