Please answer immediately
Posted on 1998-11-11
Guys I have this project in my university and I am totally stack: The program loads the (rectangular) grid of characters to be searched from a text file and places one character per cell within a string grid. There is no requirement for the search area to be square (the number of columns may differ from the number of rows) but each row must contain the same number of characters (columns). The actual number of columns is set by the first line of the file; if a line with a different number of columns is subsequently encountered as the file is loaded, an error message is displayed and the string grid is cleared. As the file is loaded, each character is converted to its lower-case equivalent.
· User entry of the search string is via an edit box; searching is initiated either by pressing the return key within this edit box or by clicking the 'Search' button. Prior to searching, the search string is converted to lower-case.
· The location of the search string within the grid is indicated by:
changing it to upper-case;
· If the search string is not found within the grid, an appropriate error message is displayed.
· The search string within the edit box is selected after each search, enabling the user to make rapid entries with the minimum of keystrokes.