>oCustomer:fieldPos( cFieldname )
Opps, I meant:
oCustomer:aBuffer[oCustomer:fieldPos( cFieldname )]
The data is stored in aBuffer so you need the location in aBuffer for the fieldname.
James
Rimantas wrote:nageswaragunupudi wrote:TDataBase class comes free with FWH
In earliest versions of FWH this was not fully completed . Can you confirm a good results with that class ?
Regards !
PeterHarmes wrote:James,
Interested in using a database class, but was wondering how i use the class in the following situation:
I give my clients the ability to modify what appears in a browse and in what order the columns appear in, so i have a database that holds the browse info, like this:
Browse Code, Column Number, Field, Size, Header
for example:
CUSTOMER,1,CUSTOMER->ACNT_NBR,100, "Account"
CUSTOMER,2,CUSTOMER->ACNT_NAME,300,"Name"
etc..
The way i currently do this, is to do a strtran on the info read from the database, so if the CUSTOMER alias was CUST01 I would transform the "Field" field to "CUST01->ACNT_NBR" & "CUST01->ACNT_NAME" etc..
How can i do this with either tData or tDataBase class?
Best Regards,
Pete
@ <row>,<col> XBROWSE oBrw SIZE <width>,<height> PIXEL OF oWnd ;
COLUMNS aCols HEADERS aHead COLSIZES aSizes OBJECT oCust CELL LINES
PeterHarmes wrote:Just had another thought, what about if you had a related database and you wanted a browse that referenced both objects/databases?
Regards,
Pete
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 39 guests