DataType for storing pointlist (x,y,z)?
- From: "MP" <NoSpam@xxxxxxxxxx>
- Date: Mon, 31 Mar 2008 12:23:44 -0500
Greetings,
Using vb6, ado, writing to mdb format(jet 4.0)
If I want to store an array of 3 doubles, what would be best for the data
type of the field?
from Type Property (ado) in the help in vb6
Constant Description
adArray Joined in a logical OR together with another type to indicate
that the data is a safe-array of that type (DBTYPE_ARRAY).
adVariant An Automation Variant (DBTYPE_VARIANT).
adVector Joined in a logical OR together with another type to indicate
that the data is a DBVECTOR structure, as defined by OLE DB, that contains a
count of elements and a pointer to data of the other type (DBTYPE_VECTOR).
would it be one of the above?
which one is better and why?
or would it be better to break the array into components and store each as
adDouble?
fldPtX
fldPtY
fldPtZ
most likely the incoming data will be either a variant containing an array
of (2 or 3) doubles
or the array itself (not wrapped in a variant)
I could massage this before sending to ado for putting in the database so
which would be more ...fill in the blanks <g> ...better, faster, efficient,
???
thanks
mark
.
- Prev by Date: Stored procedure problem
- Previous by thread: Stored procedure problem
- Index(es):
Relevant Pages
|