Click here to Skip to main content
15,926,385 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: navigation Pin
Anonymous2-Sep-04 21:16
Anonymous2-Sep-04 21:16 
GeneralRe: navigation Pin
ralphz5-Sep-04 17:29
ralphz5-Sep-04 17:29 
GeneralNeed simple help with oleDbDataAdapter exception Pin
sagmam2-Sep-04 11:16
sagmam2-Sep-04 11:16 
GeneralRe: Need simple help with oleDbDataAdapter exception Pin
Dave Kreskowiak2-Sep-04 11:52
mveDave Kreskowiak2-Sep-04 11:52 
GeneralRe: Need simple help with oleDbDataAdapter exception Pin
sagmam2-Sep-04 19:26
sagmam2-Sep-04 19:26 
GeneralRe: Need simple help with oleDbDataAdapter exception Pin
sagmam2-Sep-04 19:41
sagmam2-Sep-04 19:41 
GeneralLike Statement Variables Pin
Dicescuz2-Sep-04 10:19
Dicescuz2-Sep-04 10:19 
GeneralRe: Like Statement Variables Pin
Dave Kreskowiak2-Sep-04 11:44
mveDave Kreskowiak2-Sep-04 11:44 
That's because Like is an operator and works on 2 String operands.
Result = <String> Like <String>

It's no different than if you used Result = 34 + 23.


Dicescuz wrote:
Dim strFind as String = "*" & UCase(txtFind.text) & "*"
blnCheck = "TEDDY" Like "strFind"


This code will compare the String TEDDY to the String strFind and, of course, the result will be False.

I think your looking for
blnCheck = "TEDDY" Like strFind

Here, strFind evaluates to a String, *whatevertext*. In your previous statement, since you enclosed strFind in quotes, it evaluated to the String strFind, not the contents of strFind.




RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

GeneralRe: Like Statement Variables Pin
Dicescuz2-Sep-04 18:04
Dicescuz2-Sep-04 18:04 
Generalvb.net Excel file to SQL table Pin
partt2-Sep-04 7:45
partt2-Sep-04 7:45 
GeneralRe: vb.net Excel file to SQL table Pin
Dave Kreskowiak2-Sep-04 9:35
mveDave Kreskowiak2-Sep-04 9:35 
GeneralRe: vb.net Excel file to SQL table Pin
partt2-Sep-04 9:58
partt2-Sep-04 9:58 
GeneralRe: vb.net Excel file to SQL table Pin
Purple Monk2-Sep-04 22:33
Purple Monk2-Sep-04 22:33 
GeneralRe: vb.net Excel file to SQL table Pin
partt3-Sep-04 3:28
partt3-Sep-04 3:28 
GeneralRe: vb.net Excel file to SQL table Pin
partt3-Sep-04 8:34
partt3-Sep-04 8:34 
General2 Component questions Pin
RoyRose782-Sep-04 6:57
RoyRose782-Sep-04 6:57 
GeneralRe: 2 Component questions Pin
Dave Kreskowiak2-Sep-04 9:48
mveDave Kreskowiak2-Sep-04 9:48 
GeneralQuestion on comparing data Pin
albert20042-Sep-04 6:36
albert20042-Sep-04 6:36 
GeneralVB.NET DDE project Pin
valdo772-Sep-04 2:32
valdo772-Sep-04 2:32 
GeneralRe: VB.NET DDE project Pin
Dave Kreskowiak2-Sep-04 5:19
mveDave Kreskowiak2-Sep-04 5:19 
GeneralhanksTreeView Pin
Member 12256032-Sep-04 0:59
Member 12256032-Sep-04 0:59 
GeneralRe: hanksTreeView Pin
Dave Kreskowiak2-Sep-04 4:58
mveDave Kreskowiak2-Sep-04 4:58 
GeneralBuild Failures Pin
beowulfagate2-Sep-04 0:26
beowulfagate2-Sep-04 0:26 
GeneralRe: Build Failures Pin
Chris Quick2-Sep-04 2:28
Chris Quick2-Sep-04 2:28 
GeneralRe: Build Failures Pin
Jim Matthews2-Sep-04 2:46
Jim Matthews2-Sep-04 2:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.