bjfrary
05-18-2004, 01:08 PM
This allows the user to save a value read from a file.
The user specifies a File name and a search string (b). Optionally the user can specify a second search string (a), a prefix and a terminator that is contained on the line with the value that should be eleiminated.
For Example
<paramName>Variable1</paramName>
<paramValue>Value1</paramValue>
In the IDE I would set
Filename = filename
SearchString A = Variable1
SearchStringB = <paramValue>
prefix = <paramValue>
terminator = </paramValue>
The code searches the specified filename for SearchStringA if it is not the empty string. When it finds it or if it's empty it starts looking for searchStringB at that point in the file. When it finds search string b it removes the prefix and the terminator and stores the rest of the line in the value property
Barbara
The user specifies a File name and a search string (b). Optionally the user can specify a second search string (a), a prefix and a terminator that is contained on the line with the value that should be eleiminated.
For Example
<paramName>Variable1</paramName>
<paramValue>Value1</paramValue>
In the IDE I would set
Filename = filename
SearchString A = Variable1
SearchStringB = <paramValue>
prefix = <paramValue>
terminator = </paramValue>
The code searches the specified filename for SearchStringA if it is not the empty string. When it finds it or if it's empty it starts looking for searchStringB at that point in the file. When it finds search string b it removes the prefix and the terminator and stores the rest of the line in the value property
Barbara