Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to file's entry

Status
Not open for further replies.

Crusader2

Technical User
Dec 29, 2002
11
EE
I have a file, there're some numbers separated with "," example: 1, 5, 6, 8, 10. I have an integer it's equals 8 (int = 8). How to check if the int equals at least any number in that file?

P.S.
Sorry about my english
 

Look into ".Split" used with string variables, that will send each value into an element of the specified array.

Then you can loop through the array to check for matches.

Kris
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top