473,395 Members | 1,613 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Using the Text property of an Arraylist

How can I use the text property of a created arraylist

I need it to pop up that messagebox if the textin the tempValues
arraylist is equal to ..
ElseIf tmpValues.ToString = ".." Then
MessageBox.Show(" This is not an accepted value", "Not
a value...")
Feb 29 '08 #1
3 960
"cmdolcet69" <co************@hotmail.comschrieb:
How can I use the text property of a created arraylist

I need it to pop up that messagebox if the textin the tempValues
arraylist is equal to ..
ElseIf tmpValues.ToString = ".." Then
MessageBox.Show(" This is not an accepted value", "Not
a value...")
'If Not tmpValues.Contains(...) Then MsgBox("This is not an accepted
value!")'.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Mar 1 '08 #2
On Feb 29, 10:43*pm, "Herfried K. Wagner [MVP]" <hirf-spam-me-
h...@gmx.atwrote:
"cmdolcet69" <colin_dolce...@hotmail.comschrieb:
How can I use thetextpropertyof a createdarraylist
I need it to pop up that messagebox if the textin the tempValues
arraylistis equal to ..
* * * * * *ElseIf tmpValues.ToString = ".." Then
* * * * * * * *MessageBox.Show(" This is not an acceptedvalue", "Not
a value...")

'If Not tmpValues.Contains(...) Then MsgBox("This is not an accepted
value!")'.

--
*M S * Herfried K. Wagner
M V P *<URL:http://dotnet.mvps.org/>
*V B * <URL:http://dotnet.mvps.org/dotnet/faqs/>
Ok if a take away the
'If tmpValues.Contains(...) Then MsgBox("This is not an accepted
value!")'.

It still wont pick up if i have a number ..3 for example.
Mar 3 '08 #3
On Feb 29, 10:43 pm, "Herfried K. Wagner [MVP]" <hirf-spam-me-
h...@gmx.atwrote:
"cmdolcet69" <colin_dolce...@hotmail.comschrieb:
How can I use thetextpropertyof a createdarraylist
I need it to pop up that messagebox if the textin the tempValues
arraylistis equal to ..
ElseIf tmpValues.ToString = ".." Then
MessageBox.Show(" This is not an accepted value", "Not
a value...")

'If Not tmpValues.Contains(...) Then MsgBox("This is not an accepted
value!")'.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
It seems as if I have a value 0..3 it will not pick it up. When I use
your above state it will only trigger the warning message if the value
doesn;t have ".."
Mar 5 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: kyma via .NET 247 | last post by:
Hi, I haveto use VB to create a form that reads an exisiting XML fileand then allows updates via the VB form. My problem is that I was able to get VB to read a simple XML file(people.XML), but...
7
by: charliewest | last post by:
Using .Net CF, i have created a 2 dimension ArrayList, and "binded" this list to a ComboBox control using the "DataSource" property. I have set the DisplaySource and ValueMember properties as well....
1
by: Barry | last post by:
Hi, I have dropdownlist that I'm trying to bind to an arraylist. The items in the array get populated correctly, but I can't seem to detect the SelectedItem.Text property when selecting an item....
1
by: ratnakarp | last post by:
Hi, I have a search text box. The user enters the value in the text box and click on enter button. In code behind on button click i'm writing the code to get the values from the database and...
7
by: Raymond Lewallen | last post by:
Want to know if/how to get a list of properties that are available in a class and store the properties names in an arraylist. TIA, Raymond Lewallen
16
by: Dennis | last post by:
I have a class named "myclass" and an arraylist containing elements of type "MyClass". I want to get the value of a property of "MyClass" (a string type) for one of the arraylist elements. I...
8
by: Jeffrey Spoon | last post by:
Hello, according to the docs you can update a DataGrid with an ArrayList. I have created an ArrayList and I add these objects: Dim patient1 As New Person patient1.Reading = 1...
0
by: richardkreidl | last post by:
I have the following hash script that I use to compare two text files. 'Class Public Class FileComparison Public Class FileComparisonException Public Enum ExceptionType U 'Unknown A 'Add...
0
by: Eugene Anthony | last post by:
The problem with my coding is that despite removing the records stored in the array list, the rptPages repeater control is still visible. The rptPages repeater control displayes the navigation...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.