Special

Special Print Closeout!

We're clearing out the remainder of our print issues at fire sale prices -- as much as 75% off! Quantities are extremely limited and only available while supplies last. Hurry to take advantage of this one-time offer.

RBD Magazines

Once these printed back issues are gone, they are gone!

Article Preview


Buy Now

Print:
PDF:

Visual Basic and REALbasic

Comparing Syntaxes and Structures

Get comfortable coding in REALbasic

Issue: 2.4 (March/April 2004)
Author: Owen Yamauchi
Author Bio: Owen Yamauchi is a freelance programmer who has been programming REALbasic since version F4. He is the Lead Programmer for Domain Softworx, a company that produces developer tools for REALbasic.
Article Description: No description available.
Article Length (in bytes): 7,495
Starting Page Number: 35
RBD Number: 2416
Resource File(s): None
Related Web Link(s):

http://www.domainsoftworx.com/
http://www.planet-source-code.com/

Known Limitations: None

Excerpt of article text...

Last issue, we introduced this column with an overview of the similarities and differences between Microsoft Visual Basic (VB) and REAL Software's REALbasic (RB), concentrating mainly on their interfaces. In this installment, we'll concentrate on the back end: the code you use to make your programs work. I'll assume that you're already familiar with the interface of RB, and that you have at least a basic knowledge of VB's interface.

You'll find that overall, RB's implementation of BASIC is more strict in terms of syntax than VB. When I first started learning VB, I always religiously declared my variables (with "DIM" statements at the beginning of a block of code). VB users may be a bit concerned when they find that all variables must be declared. In recent versions of RB (after 5.0), the declarations do not have to be at the beginning of the code block, whereas they did previously. In turn, RB users who are looking into VB might find it strange that you do not have to declare variables in VB. There is a way to enforce declaration of variables in VB: put the line Option Explicit in the global declarations of the code for a form or module. However, this need not concern us here. The bottom line: in RB, always declare your variables!

...End of Excerpt. Please purchase the magazine to read the full article.

Article copyrighted by REALbasic Developer magazine. All rights reserved.


 


|

 


Weblog Commenting and Trackback by HaloScan.com