Questions inserting records with object pointers.

chuck hinkle chuckbo at hinkles.us
Mon Nov 3 13:15:45 CST 2003



>
> Well I reckon I may be about to receive a lesson but here's how I do
> it at the moment
>
> D_Ecurs.setblank
> D_Ecurs.field("EPtr").setstring(Ecurs.field("recid").getstring)
> D_Ecurs.field("DPtr").setstring(Dcurs.field("recid").getstring)
> if not D_Ecurs.add then
> if Db.errNumber <> 344 then
> // error sequence here
> end if
> end if
>
>>But that seems to go against the idea behind the Valentina model; I feel
>>like I'm trying to manipulate data that Valentina wants to manage itself.
>>Am I really on the right track, or is there an easier, recommended way?
>
> So basically I'm doing it your way too...
>>
>>I didn't find anything in the V4RBReference.
>
> Have you looked in the examples??
>

I don't remember seeing anything with SQL commands -- they were doing ADD
commands like you showed.



More information about the Valentina mailing list