Nope
Map entries will duplicate
and thats not allowed...
Object CLocation
properties
m.Initialize
m.Put("DBID", DBUtils.DB_TEXT)
m.Put("LocationName", DBUtils.DB_TEXT)
m.Put("SKU", DBUtils.DB_TEXT)
m.Put("Shelf", DBUtils.DB_INTEGER)
m.Put("Orientation", DBUtils.DB_INTEGER)
m.Put("Short", DBUtils.DB_INTEGER)
m.Put("Out", DBUtils.DB_INTEGER)
m.Put("WalkSequence", DBUtils.DB_INTEGER)
Your sure to get the same Shelf number or short or out or Orientation values
between at least a few instances of the object (whoops I mean type) so that would mess up the map concept not allowing you to have a list of map objects to feed to the method SQL.InsertMap....
Presently I'm just populating a single instance of the type AKA its properties into a set of map instances
and then push that into SQL.Insert Map.. One at a time
So I'm inserting one type instance at a Time avoiding duplications in the instance of map's key value pairs that I would run into if I attempt to "put in" several instances of the type.
It may be fast enough (a thousand or so individual SQL pushes) rather than than trying to parametrize out an insert statement and build up a string builder.. ??
I don't know for sure...
Pseudo Code manual Build up of Insert statement :
append to insert stringBuilder,
Dim sb as StringBuilder
sb .Append( blah blah ----
insert
ColNm1 ColNm2, ColNm3
Values
' LOOP through Each CLocation Object to provide values for insert statement
For I =1 To ListofClocationObjects.Size ' check for zero based Kraziness
Dim objSpecificInstance as CLocation
objSpecificInstance = ListofClocationObjects(I)
sb .Append(
objSpecificInstance .DBID, objSpecificInstance .SKU, objSpecificInstance .Shelf )
and so on... I may get around to trying something ugly like this today too .
Sorry as appropriate No offense intended &
Again I TRULY
APPRECIATE ALL replies...
I'm just not looking forward to this kind of tedium today..
please forgive my ranting thanks
:sign0089: