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 :
- Code: Select all Expand view RUN
- 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:
- Code: Select all Expand view RUN
- 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:
- Code: Select all Expand view RUN
- 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?