TThomasson Posted June 3, 2015 Share Posted June 3, 2015 (edited) Hi everyone. New guy here. I'm still learning this awesome language and I'm unable to figure this one out from google searches. Heres my problem:I'm working on a small application to help users in my environment connect to wireless projectors. To keep this easily updated with new projectors I'm reading the room names and IP addresses from a csv file and putting them into a 2D array. (MeetingRoom1,xxx.xxx.xxx.xxx)So far I'm able to read the 0 column and display the room names in a combo box. Where I am stuck is how to take the user's room selection from the gui and associate it with an IP address in the array. After that point I've got things prepared to pass the address to the connection application. Any help you all could provide would be greatly appreciated. Edited June 3, 2015 by TThomasson Link to comment Share on other sites More sharing options...
reb Posted June 3, 2015 Share Posted June 3, 2015 put your room name into $YourArray[x][0]put your ip address into $YourArray[x][1]then do an _ArraySearch from the help file:Return ValueSuccess:the index that $vValue was found at. MEASURE TWICE - CUT ONCE Link to comment Share on other sites More sharing options...
TThomasson Posted June 3, 2015 Author Share Posted June 3, 2015 ArraySearch! Yes! Thank you so much. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now