P pcbtmr Member Licensed User Longtime User Nov 1, 2011 #1 Have a listview that gets selected. Once Item is Clicked (Value is set) compiler balks at if Value.contains("*") on the word contains though it is part of the core keywords. Any ideas? Thanks.
Have a listview that gets selected. Once Item is Clicked (Value is set) compiler balks at if Value.contains("*") on the word contains though it is part of the core keywords. Any ideas? Thanks.
margret Well-Known Member Licensed User Longtime User Nov 1, 2011 #2 Compiler Error pcbtmr said: Have a listview that gets selected. Once Item is Clicked (Value is set) compiler balks at if Value.contains("*") on the word contains though it is part of the core keywords. Any ideas? Thanks. Click to expand... Value is a Keyword and should not be used as a variable. Seems the object is missing, maybe something like: ListView1.Value.Contains("*") Thanks, Margret Upvote 0
Compiler Error pcbtmr said: Have a listview that gets selected. Once Item is Clicked (Value is set) compiler balks at if Value.contains("*") on the word contains though it is part of the core keywords. Any ideas? Thanks. Click to expand... Value is a Keyword and should not be used as a variable. Seems the object is missing, maybe something like: ListView1.Value.Contains("*") Thanks, Margret
P pcbtmr Member Licensed User Longtime User Nov 1, 2011 #3 Thanks for the reply. Unfortunately, now it is flagging Value as unknown member. Upvote 0
klaus Expert Licensed User Longtime User Nov 1, 2011 #4 In your ListView1_ItemClick routine you should define a variable as a String, or you could define it in Sub Globals or Sub Process_Globals. Code: Copy Dim Item as String Item = Value If Item.Contains("*") then . . This works. Best regards. Upvote 0
In your ListView1_ItemClick routine you should define a variable as a String, or you could define it in Sub Globals or Sub Process_Globals. Code: Copy Dim Item as String Item = Value If Item.Contains("*") then . . This works. Best regards.