I am in the process of writing a program for a Taxi Office for Dispatching cars,BUT, my Dbase knowledge is 20 years old and forgot most of it.
The bit that I am getting bogged down on is selecting Road/Street that is in a database called STREETDB to enter into booking screen.
The way I want it to work is to enter 4 letters say "Manr", the first 3 Road/Street name 4th letter R for Road S for Street etc so I can narrow down search, that I have working fine.
When it comes to finding the road/Street etc, I look for the space after the road name and then by adding one to the variable I find the first letter for Road or Street this will then give me a list of Roads begining with "Man" as above, obviously I have to find the number of charaters in the name to find the space, and make sure my database has only one space in the whole name i.e "Tongemoor Road" and not "Tonge Moor Road".
The problem is I was using a "DO WHILE EOF()" but then I have to put an "IF" statement to find and display the correct Road/Street and then another "IF" to tell it that is the correct Road/Street then get out of the "IF's" and get out of the "DO WHILE", but I can't seem to find the correct commands to get out after I have selected the correct Road/Street.
Can anyone point me in the right direction, I can display the code I have if it will help.
Regards John.m
The bit that I am getting bogged down on is selecting Road/Street that is in a database called STREETDB to enter into booking screen.
The way I want it to work is to enter 4 letters say "Manr", the first 3 Road/Street name 4th letter R for Road S for Street etc so I can narrow down search, that I have working fine.
When it comes to finding the road/Street etc, I look for the space after the road name and then by adding one to the variable I find the first letter for Road or Street this will then give me a list of Roads begining with "Man" as above, obviously I have to find the number of charaters in the name to find the space, and make sure my database has only one space in the whole name i.e "Tongemoor Road" and not "Tonge Moor Road".
The problem is I was using a "DO WHILE EOF()" but then I have to put an "IF" statement to find and display the correct Road/Street and then another "IF" to tell it that is the correct Road/Street then get out of the "IF's" and get out of the "DO WHILE", but I can't seem to find the correct commands to get out after I have selected the correct Road/Street.
Can anyone point me in the right direction, I can display the code I have if it will help.
Regards John.m