Questions tagged [contains]

The "contains" operator/method is used to determine if an entity collection contains an element with a particular property.

The contains operator/method is used to determine whether one (or more) of the entities in an entity collection has a particular property.

3008 questions
0
votes
2 answers

how to check if the item [name & subItem's text] is already exists in another listView?

i making a file transfer (server-client) application .. i have two listviewS to explore Local PC and Remote PC .. before send/receive the items.. i need to check if there's another file or folder has the same name at the destination path.. when i…
Murhaf Sousli
  • 12,622
  • 20
  • 119
  • 185
0
votes
2 answers

How do I use jQuery to select an element that directly contains some specified text?

The jQuery selector :contains(text) selects an element if the matching text appears directly within the selected element, in any of that element's descendants, or a combination thereof. I want to select an element if and only if the matching text…
user110
  • 315
  • 1
  • 11
0
votes
1 answer

In struts tag have to test whether the string1 contains string2

Hi i want to check the string in struts tag.. How to check whether the string1 conatins the string2 value? for eg: string1 = strutstag string2 = tag i want to do some logic if string1 contains string2 value help me to do this... thanks in…
Shakthi
  • 37
  • 1
  • 5
  • 17
0
votes
3 answers

Scheme - Manipulating strings

I'm just starting with Scheme. I'm trying to use some procedures from String Library. Here's what I need: input: "ccaAaAaAa" function: generate all strings substituting all possible aAa to aBa, one substitution only output: "ccaBaAaAa" and…
eric17859
  • 418
  • 1
  • 5
  • 17
0
votes
1 answer

java: arraylist.contains & remove not working

I have an ArrayList in Java, which contains Objects, these Objects are made of a string name and a number. I want to check if any of the Objects is twice in the list and then update the number of one of them, afterwards delete the other one, so it…
user1203092
  • 41
  • 1
  • 7
0
votes
1 answer

c# substring not found although the substring exists

I have strings which look like string1 = "~01301~^~DATA1,DATA2 DATA3~^15.87^717^0.85^81.11^2.11^0.06^0" string2 = "~01341~^~DATA3,DATA2 DATA1 DATA4~^15.87^717^0.85^81.11^2.11^0.06^0" string3 = "~01347~^~DATA1…
mco
  • 422
  • 1
  • 4
  • 17
0
votes
2 answers

Flash AS3: ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller

I'm trying to create a slideshow style presentation, where each slide/page is a movieclip and they transition via a sliding animation. The problem I have is that I don't want all the movieclips on stage at once to prevent lag issues, an example of…
user1172903
  • 101
  • 1
  • 11
0
votes
3 answers

Powershell: Trying To Match a Variable Against an Array using Get-Content

I am retrieving the hosts file on a server with 5 DNS entries: C:\Windows\System32\drivers\etc\hosts Mine looks like this after the comments: 127.0.0.1 infspcpd8tx8e.rtmphost.com 127.0.0.1 infspkbpef39p.rtmphost.com 127.0.0.1…
Matt Wall
  • 475
  • 2
  • 7
  • 15
0
votes
2 answers

Joining tables on values that don't match

I have two tables like this: Summary Table ID int CityName Varchar(200) PopulationCount int Data Table ID int CityName Varchar(200) PopulationCount int Longitude float Latitude float The summary table has 800 rows and the DataTable has 800,000…
Bagsy
  • 23
  • 5
0
votes
3 answers

jQuery if, .addClass()

Im trying to add a class to another element if an element contains text. So let's say I have a classified as vCSS_breadcrumb_td. How can I check is the contains a word, and if it does contain that word, add a class to an classified is…
henryaaron
  • 6,042
  • 20
  • 61
  • 80
0
votes
1 answer

Using Contains to do an IN statement within and LINQ clause using the Entity Framework

I'm trying to dynamically build a LINQ where statement but I'm having problems trying to write a IN statement using the contains method on a list. Here is my code: IQueryable customers = (from cus in objectCustomer …
user1131661
  • 229
  • 3
  • 8
  • 19
0
votes
4 answers

C# textfile parsing error

I´ve got a textfile, where every line is separated with \n an every value in a row is separated by \t. StreamReader sr = new StreamReader(dlg.FileName); String ganzes = sr.ReadToEnd(); String[] allezeilen = ganzes.Split('\n'); string[] ssa =…
user896692
  • 2,351
  • 7
  • 36
  • 57
0
votes
6 answers

Does a List Contains a property of T?

I got this List : private static List _AbstractTypes = new List(); and later in my project I got a string that corresponds to a Type.FullName. The thing is that I'd like to check if my string is contained in my List but I don't manage…
Guillaume Slashy
  • 3,554
  • 8
  • 43
  • 68
0
votes
4 answers

C# Group with conditional

how can i grouping a data with conditional if bill < 10 ? i have table: meetingId | bill ------------------ a | 6 b | 7 c | 1 a | 5 a | 3 b | 4 g | 2 expected…
user609511
  • 4,091
  • 12
  • 54
  • 86
0
votes
4 answers

if list data contains

I have got the following issue $('a.so').live("click", function () { var filter = $(this).attr("title"); if (filter) { …
DCHP
  • 1,111
  • 6
  • 29
  • 53
1 2 3
99
100