Hi guys,
I can't seem to figure out any solution to the this exercise where I have to search a text file for a string entered at the front panel which denotes a "property name" and then returns an associated "property value". Basically I have already populated an array in memory full of names and property values.
When this new project is executed it is supposed to find this file in memory and compare the property name column with the name search control. If it finds a match it outputs its corresponding property value. The program isn't fully conceptualized and there are probably more problems than the one I am trying to fix so please bear with me. The property name is in the first row first column so I go to a for loop where I use the array subset function to look in the ith row and first column and create a sub array based on this.
Only trouble I have now is this is a sub array and not a string. I can't enter the value into the equality comparator and into the case statement to then print out the associated property value unless both inputs to the comparator are strings. At first I assumed the sub array would work like a string and be able to be compared with strings but when I put it into the case statement it tells me the sink and the source are 2 different types of data.
Any tips appreciated,
Simon.