_Ralph_
15th February 2007, 20:02
Hi all.
I'm developing a program that allows users to insert data on table using an user interface.
This UI has 3 field:
table
field
data
Just an example :
function boolean input.data.on.table()
{
long table.id
string table.field(20), field.name(20)
table.id = db.bind("t"&field.table)
db.set.to.default(table.id)
|??????????????????
field.name = data
|??????????????????
db.insert(table.id)
}
but this way, won't work. As field.name is regonized as a variable.
Do you know somehow to "parse" a string with the table field name??
Something that works the same way as db.bind() for the table name..
is that possible??
my best regards
I'm developing a program that allows users to insert data on table using an user interface.
This UI has 3 field:
table
field
data
Just an example :
function boolean input.data.on.table()
{
long table.id
string table.field(20), field.name(20)
table.id = db.bind("t"&field.table)
db.set.to.default(table.id)
|??????????????????
field.name = data
|??????????????????
db.insert(table.id)
}
but this way, won't work. As field.name is regonized as a variable.
Do you know somehow to "parse" a string with the table field name??
Something that works the same way as db.bind() for the table name..
is that possible??
my best regards