Hi,
I'm converting some self created function from DBF to ADO/MySQL
In a browse-routine I gine the information of the field-info with a parameter like :
This is working fine.
I want to reuse the function for ADO, but here I have a problem
This is what I do:
The error that U get is 'Variable does not exist oRs'
When I do this:
It's working fine.
How can I use a variable to assinging the fields?
I'm converting some self created function from DBF to ADO/MySQL
In a browse-routine I gine the information of the field-info with a parameter like :
vvelden = 'FACTUI->FACTUURNR,FACTUI->FIRMA'
browse(..,..,..,..,vvelden)
Func mbrowse(..,..,..,..,vvelden
REDEFINE LISTBOX sGetlist FIELDS &(vVelden) ALIAS alias() HEADER &(vTitels) ID 101 OF oDlg COLOR 'N/W*'This is working fine.
I want to reuse the function for ADO, but here I have a problem
This is what I do:
vvelden = 'oRs:fields("FACTUURNR"):value,oRs:fields("FIRMA"):value'
browse(..,..,..,..,vvelden)
Func mbrowse(..,..,..,..,vvelden
REDEFINE LISTBOX sGetlist FIELDS &(vVelden) HEADER &(vTitels) ID 101 OF oDlg COLOR 'N/W*'The error that U get is 'Variable does not exist oRs'
When I do this:
REDEFINE LISTBOX sGetlist FIELDS oRs:fields("FACTUURNR"):value,oRs:fields("FIRMA"):value HEADER &(vTitels) ID 101 OF oDlg COLOR 'N/W*'It's working fine.
How can I use a variable to assinging the fields?
Regards,
Marc
FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Marc
FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite