Experts out there, help me! 
Author Message
 Experts out there, help me!

VB-Experts out there, help me! :-)

My question:

I want to compare strings the way "Option Compare Text" does.
So, "a"="A" !
BUT, I just want to enable this in one procedure!


THANK YOU
Cu SimonC



Sun, 18 Nov 2001 03:00:00 GMT  
 Experts out there, help me!
VB-Experts out there, help me! :-)

My question:

I want to compare strings the way "Option Compare Text" does.
So, "a"="A" !
BUT, I just want to enable this in one procedure!


THANK YOU
Cu SimonC



Sun, 18 Nov 2001 03:00:00 GMT  
 Experts out there, help me!
Hi,

You can use LCase$() or UCase$() functions to convert both strings to
the same case and then compare them:

    If Ucase$(String1) = Ucase$(String2) then

   End If

Regards,
                Stoil

Quote:

> VB-Experts out there, help me! :-)

> My question:

> I want to compare strings the way "Option Compare Text" does.
> So, "a"="A" !
> BUT, I just want to enable this in one procedure!


> THANK YOU
> Cu SimonC



Sun, 18 Nov 2001 03:00:00 GMT  
 Experts out there, help me!
Take a look at StrComp.


Quote:
> VB-Experts out there, help me! :-)

> My question:

> I want to compare strings the way "Option Compare Text" does.
> So, "a"="A" !
> BUT, I just want to enable this in one procedure!


> THANK YOU
> Cu SimonC



Sun, 18 Nov 2001 03:00:00 GMT  
 Experts out there, help me!
Try the StrComp function

If StrComp(String1, String2, vbTextCompare) = 0 Then
        MsgBox "Strings are equal"
End If

On Wed, 2 Jun 1999 20:27:01 +0200, "S.C. Pfender"

Quote:

>VB-Experts out there, help me! :-)

>My question:

>I want to compare strings the way "Option Compare Text" does.
>So, "a"="A" !
>BUT, I just want to enable this in one procedure!


>THANK YOU
>Cu SimonC



Sun, 18 Nov 2001 03:00:00 GMT  
 
 [ 5 post ] 

 Relevant Pages 

1. Need help with time outs

2. university EMR send outs

3. on the outs

4. Learning the ins and outs of Peek and Poke

5. How to handle print outs in VB?

6. Filesystem Time outs

7. Session Variable Time-outs

8. Time-outs

9. Duplicate database fields in report expert, select expert...

10. add a column(expert help)

11. Help Wanted: Access Expert for NYC non-profit

12. Expert Help Required

 

 
Powered by phpBB® Forum Software