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
1
vote
1 answer

GAE - JDO Query fails while using Enum field and 'contains' operator to filter data

I am using an Enum field in Datastore entity class. public enum MyEnum{ A(0x9001L), B(0x9002L), C(0x9003L), D(0x9004L), private long value; private MyEnum(long value) { this.value = value; } }; ENTITY @PersistenceCapable public…
1
vote
1 answer

Java - List of objects. Find object(s) with a certain value in a field

I have two lists of objects. The objects in each list are different subclasses of the same class. I want to look at objects in list One, check the value of a particular field, and then see if there is/are any objects in list Two that have the same…
zymycz
  • 11
  • 1
  • 2
1
vote
1 answer

Cursor within bounds of a control

public void TapeMeasure(object sender, EventArgs e) { if (TrussManager.Truss != null) { Point containerPoint = trussEditor.PointToClient(Cursor.Position); if…
jth41
  • 3,808
  • 9
  • 59
  • 109
1
vote
3 answers

boolean Contains does not support conversion to SQL

I got error boolean Contains does not support conversion to SQL I have array of the rooms id which should be removed I want to remove with this query but I can't succeed. How may I do this? var rooms = from rooms in entity.Rooms where…
efe demir
  • 55
  • 1
  • 7
1
vote
1 answer

Particular JQuery function (used with GreaseMonkey) not updating until interacted with

EDIT: Solution at bottom of post. I've got a custom GreaseMonkey script I made that uses JQuery to filter out and modify certain feed items in my Facebook news feed. It's been working great, but this particular one isn't working…
vertigoelectric
  • 1,307
  • 4
  • 17
  • 37
1
vote
5 answers

How to check if a word contains a character within a string?

I'm trying to create a program that reads this text file with a list of domains but it also has a lot of other unnecessary things such as the title, the header of each domain, etc. All I want is the domains. Now, the one thing in common is that all…
Hexo
  • 215
  • 4
  • 11
1
vote
4 answers

jQuery product filter using checkboxes and :contains() show/hide

I'm attempting to put together a simple jQuery product filter for a store that lists all products of a category on one page. This can't be achieved through AJAX because of the way the store is set up. Simply put, all products of the category are on…
James
  • 3,233
  • 3
  • 40
  • 57
1
vote
2 answers

php check if string contains some letters/numbers

I have some string in which I would like to check if contains some letters or numbers. Those letters are from a-z, A-Z and all numbers. So this is the example: $goodstring = "abcdefg%$#%&asdqwe"; $badstring = "%$#&%#/&/#$%!#-."; check if $goodstring…
user1257255
  • 1,161
  • 8
  • 26
  • 55
1
vote
6 answers

C# If string contains

I'm working in C# and I have 2 textboxes. If the user enters text in the first box and presses a button the text copy's into text box 2. I've now made another text box and I'm wanting it to show all the strings that contain @ if the user has entered…
user1300788
  • 181
  • 2
  • 17
1
vote
1 answer

Why doesn't List.Contains work with my code?

I'm using List.Contains to tell whether a variable is inside the list or not, but it keeps on returning that it isn't when it is. I've looked up MSDN and I've noticed that I have to inherit from IEquatable and implement my own .Equals method. The…
vguzmanp
  • 785
  • 1
  • 10
  • 31
1
vote
1 answer

Wildcard for WHERE?

I want to setup code that does this: (* is wildcard) SELECT * FROM * WHERE * CONTAINS '$search-query'; What MYSQL code can I use to acheive this.
Sam Clark
  • 429
  • 3
  • 7
  • 12
1
vote
2 answers

dictionary ContainsKey method

Please explain why dictionary's 'getAt' method fails List infoKeys = new List(infoDict.Keys); if (infoKeys.Contains(TorrentFileKeyWords.FILES_KEY) == true) //"files" { List multiFiles =…
pulancheck1988
  • 2,024
  • 3
  • 28
  • 46
0
votes
1 answer

LINQ query including an array of long type data

I have a Ling query and in this query I want to fetch data according to data in an array (PrdIdArr). In the 6th line u.START_PRD_ID should be matched with data in the array (PrdIdArr) but I could not var mainQuery = (from o in db.OPERATIONs …
kdrkvk
  • 1
  • 4
0
votes
3 answers

jQuery: Finding and hiding single parent link in nested list menu within Div - using contains();

I have a site that's CMS has very limited menu control. As such I'm trying to work around these problems with jQuery to display the menu how I want. I know it will still be in the HTML but as long as it's displaying the way I want it will be fine…
James
  • 3,233
  • 3
  • 40
  • 57
0
votes
2 answers

Need advice on using xsl choose with contains and substring

I think I have this working but I need advice. I'd like to know if this is a good setup for the requirement that I have. I've got a requirement to apply different transformation rules to an element based on what is contained in that element. I've…
dmittakarin8
  • 143
  • 1
  • 8
1 2 3
99
100