a DBCOMBO review

a DBCOMBO review

Postby Marcelo Via Giglio » Mon Oct 28, 2024 4:49 pm

Hello everyone,

I am leaving a modification of DBCOMBO class that adapts it to the last source I have from fivewin, there are sure to be some details, but it may be of interest

The modifications, the following options were added to dbcombo.ch:

[ <noblank: NOBLANK> ] ;
[ ORDER <order> ] ;
[ FOR <uCond> ] ;
[ TOOLTIP <cToolTip>] ;

NOBLANK : for the combo not to start with a blank value, it starts with the first value in the list
ORDER : to use an index when filling the combo, in this case it is a TAG of an index
FOR : is for the data to be filled accoring a condition e.g. field->state = 'IL'
TOOLTIP : no need to explain

Important! The specification of ITEMFIELD and LISTITEM can be not only the name of the field, but also an expression
for example " trim(first) + ' ' + trim(last) "
"alltrim(str(id))" this way we can select numeric fields

I leave the source and example, the example is in the dbcombo.prg source

https://app.box.com/s/tdp8d0odtcydwcld755e0e5etcv18v75
Marcelo Via Giglio
 
Posts: 1064
Joined: Fri Oct 07, 2005 3:33 pm
Location: Cochabamba - Bolivia

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 27 guests