Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VB2Java

Status
Not open for further replies.

Newbie2

MIS
Sep 13, 2001
10
GB
As an established VB programmer, I am upskilling to Java and would appreciate a pointer to any VB2Java conversion information.

My search on the internet has come across a number of products designed to convert existing VB projects to Java.
I have been to a number of Java courses which has grounded me in the syntax, but I miss the finesse I had with VB.

Something as simple as the IsNull() function in VB I cannot find its equal in Java. I am absolutely sure others have gone through this before me and would really appreciate some help.

Would love to hear from others who have or are going throught a similar thing and any websites or forums available.
 
I can't really help you with conversion tools, I tend not to trust these anyways. You would be converting from a non-Object Oriented language to an Object Oriented Language, how good could the outputed code actually be?

As far as making the transition, just give it time. I would recommend taking a small project that you wrote in VB and trying to rewrite it in Java. That would give you a much better feel of the language and its strengths.

On the more practical note, to check for null in Java is extremely easy. Assume the reference you would like to check for null is called widget, the code would be:
Code:
if (widget == null) {
  /* widget is null */
}
else {
  /* widget is not null */
}
Wushutwist
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top