On 11/24/2010 5:18 PM, Fred Taylor wrote:
> You can only search by the first field in a combo box, in your case,
> the ID. You'd have to make the 2nd column the first in order to
> search using the "space" trick.
Well, actually the first field IS the cName value. I had just pasted
that from my SQLYog program. Here's my code showing that the cName
field is the first column:
PROCEDURE cbodist.Init
LOCAL lcName as String
SELECT vluDist
SCAN FOR nactive=1
lcName = CHRTRAN(vluDist.cName,CHR(32),CHR(160))
this.additem(lcName)
this.AddListItem(cContact,this.NewItemId,2)
this.AddListItem(cCity,this.NewItemId,3)
this.AddListItem(cState,this.NewItemId,4)
this.AddListItem(cZip,this.NewItemId,5)
this.AddListItem(ALLTRIM(STR(iid)),this.NewItemId,6)
ENDSCAN
ENDPROC
The BoundColumn is 6 -- the iid field. Still possible or no?
--
Mike Babcock, MCP
MB Software Solutions, LLC
President, Chief Software Architect
http://mbsoftwaresolutions.com
http://fabmate.com
http://twitter.com/mbabcock16
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message:
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.