Home > Archive > FoxPro Help and Support > December 2005 > no diffrent between 'b' and 'B' in search









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author no diffrent between 'b' and 'B' in search
bijan

2005-12-06, 3:24 am

Hi
When I use select command to find a record
Bd='bijan'
For example select * from di where bd $ g………
It don’t find recors have capital letter for example 'BIJAN'
How can set search to find 'bijan' and 'BIJAN'
thank you
Stefan Wuebbe

2005-12-06, 3:24 am


"bijan" <bijan@discussions.microsoft.com> schrieb im Newsbeitrag
news:37332FFB-E640-4944-8E0D- 028FFF47C156@microso
ft.com...
> Hi
> When I use select command to find a record
> Bd='bijan'
> For example select * from di where bd $ g...
> It don't find recors have capital letter for example 'BIJAN'
> How can set search to find 'bijan' and 'BIJAN'
> thank you


Try Upper() or Lower(), e.g. "select * from di where Upper(bd) $ Upper(g..."
See also "Set Ansi" and Sys(3054) in help.


hth
-Stefan


--
|\_/| ------ ProLib - programmers liberty -----------------
(.. ) Our MVPs and MCPs make the Fox run....
- / See us at www.prolib.de or www.AFPages.de
-----------------------------------------------------------



Fred Taylor

2005-12-06, 9:25 am

You could also use ATC():

SELECT * FROM yourtable WHERE ATC("BIJAN",yourfield)>0 ...

--
Fred
Microsoft Visual FoxPro MVP


"bijan" <bijan@discussions.microsoft.com> wrote in message
news:37332FFB-E640-4944-8E0D- 028FFF47C156@microso
ft.com...
> Hi
> When I use select command to find a record
> Bd='bijan'
> For example select * from di where bd $ g...
> It don't find recors have capital letter for example 'BIJAN'
> How can set search to find 'bijan' and 'BIJAN'
> thank you



Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com