Database development and training for Birmingham and the midlands
Specialists in Microsoft Access and Visual Foxpro database training and development
I am happy to hear from existing clients but I am taking no new calls.
Visual FoxPro and Visual Basic
The Visual FoxPro and Visual Basic languages are similar in syntax but there are annoying differences between the functions and commands built into each of them.
Help is of course no help at all when you are moving from one language to the other. You may know that FoxPro uses substr() to extract a substring from text but the Access help index doesn't even have an entry for 'substring' and the Answer Wizard only wants to tell you about extracting data to Excel. You could try to look up the Left() function and try your luck with the "See also" links but "Left" isn't in the index either. You need to know that the VBA function is called "Mid" if you're going to get anywhere at all.
Working the other way can be even more frustrating. Many of the Visual FoxPro commands date from the 1980's and some names are short and strange abbreviations. If you are reading a FoxPro program then you need to remember that the first four letters of a command are all that are required. The meaning of the StrTran functionis obvious once you realise that the function performs a 'String Translate' but if you just see the first four letters - STRT - in a program then it's very difficult to guess the meaning.
The information here isn't exhaustive, you'll still need to use Help to discover the difference between Mid() and Mid$() in VBA or between AT(), ATC() and RAT() in VFP. At least it's a starting point for your search.
Language syntax
Program flow control
- If ... Else
- Selecting cases
- Simple loops
- For loops
- Procedures and functions
Handling text
- Delimiters around strings of text.
- Concatenate two strings of text.
- Selecting substrings
- Trim leading and trailing spaces from a string.
- Finding one character inside another string.
- Change case of characters.
- Repeat characters in a string.
- Format data for the user.
- Convert data between text and other types.