Using the Text property of an Arraylist

C

cmdolcet69

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...")
 
H

Herfried K. Wagner [MVP]

cmdolcet69 said:
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!")'.
 
C

cmdolcet69

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

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.
 
C

cmdolcet69

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

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 ".."
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top