On 11/24/2010 8:35 AM, MB Software Solutions, LLC wrote:
> On 11/24/2010 8:24 AM, Tracy Pearson wrote:
>> Mike,
>> Did you use NoDefault in the Keypress when handling the chr(32)?
>> Tracy
>
> DOH! I used this:
>
> if nKeyCode = 32 then
> nKeyCode = 160
> dodefault(nKeyCode,nShiftAltCtrl)
> endif
>
> I'll try the nodefault and report back!
>
Tracy,
Here's the code:
*INIT Event*
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
*KEYPRESS EVENT*
LPARAMETERS nKeyCode, nShiftAltCtrl
IF nKeyCode = 32 THEN
nKeyCode = 160
NODEFAULT
ENDIF
Do you see a problem with this code? It still isn't finding the
appropriate value past the space. Values in the box are like this:
BV ACME COMPANY
LH SMITH & SONS
--
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.