comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » building argument list for addRecord in Dataminer
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
building argument list for addRecord in Dataminer [message #26929] Thu, 04 October 2001 10:19 Go to previous message
timothy.williams is currently offline  timothy.williams
Messages: 20
Registered: October 2001
Junior Member
I have the rows of a table widget that I want to insert to a database
table via Dataminer. For example, if I have an array of structures
called values from a table widget, then I would like to use addRecord
for each row in the table. I thought I could just do

ors->addRecord, values[i]

but values[i] is a structure, so that isn't right, and addRecord is
expecting a list of fields. I tried building up a string containing
the fields and then called addRecord with

ors->addRecord, arglist

but only the first field was written. (It turned out that the first
field was also a string, but other fields weren't) I believe what I
need to do is get this structure into a list of arguments and call
addRecord with the correct number of arguments, but I don't know how
to build this. I'm think of something like 'apply' in Python.

One other idea I haven't tried yet. Should I build up a SQL command
and call sqlExecute?

Thanks.
[Message index]
 
Read Message
Read Message
Previous Topic: mpfitfun.pro
Next Topic: Re: mpfitfun.pro

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 19:33:46 PDT 2025

Total time taken to generate the page: 0.00421 seconds