Switching
languages???
Are you a Visual Basic pro wanting to write something in Visual Foxpro?
Are you a Java person needing to cut a few lines of VB code?
Or are you a new programmer who is wondering what's the difference between languages?
This page is a cross reference of some of the common commands.
|
I program in a couple of
languages, and in my old age I sometimes get mucked up when I switch. The syntax is
slightly different for different languages, and I sometimes forget the mundane finer
points. This page is a cross reference of some of the common commands.
This is NOT a newbee page. It assumes you know the basic rules of the road. |
|
Cross
reference table for common commands |
|
|
Cross reference table for common functions |
|
|
Cross
reference table for basic syntax |
|
|
|
General all
languages |
|
|
|
|
|
Java |
|
|
|
|
|
|
Visual Basic |
|
|
|
|
|
|
Visual
Foxpro |
|
|
|
|
|
|
|
|
|
|
|
for example: Let's take the conditional IF command.
|
|
In Visual
Basic, the IF command is |
IF condition
THEN[statements]
[ELSEIF condition-n
THEN[elseifstatements] ...
[ELSE[elsestatements]]
END IF |
in Visual FoxPro (another Microsoft product no less ((but I think a bit better actually))
)
|
|
the Visual
FoxPro IF command is |
IF (Expression)
[THEN optional and not often used]
ELSE
ENDIF |
| while in Java.... |
|
the Java IF command
is |
if (z & xxx)
System.out.println( "z&xxx if" );
else
System.out.println( "z&xxx else"); |
| Slightly different, but enough to slow you down
when you want to get a job done quickly. And on top of it, the way the conditions are
stated is also slightly differen, as are a bunch of other things, like strict typing and
adhering to upper-lower case, etc etc.. |
|
|
|
|
|
|
|
|
So... this is a listing of the basic commands and
cross references them to other languages.
This section will also contain details for cross referencing other programming tasks, such
as:
passing parameters
handling variables
calling methods (procedures, functions, etc.)
naming conventions, and as much more as possible.
|
| This section does NOT get into correct Object
Oriented programming techniques or other simple programming concepts. It's strictly a
cross reference for common functions and commands. |
|
|
|
|
|
|
|
|
Please contribute ideas. I'm
sure I didn't cover some of the more basic things which I take for granted, but someone
switching for the first time might not know.
Like setting up the computer's system variables and search paths for Java. Rather simple
unless you're doing it for the first time. Especially JSP and server stuff. |
|
|
|
|
|
|
|
|
General |
|
|
|
|
|
|
SQL and data |
|
|
|
Java |
|
|
|
|
|
|
|
JDBC |
|
|
|
|
|
Visual basic |
|
|
|
|
|
|
|
|
|
|
|
|
Visual Foxpro |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|