Special

Clearance Sale!

We've been publishing for over five years now and it's time to clear out our inventory of back issues, so we're slashing prices!

RBD Magazines

Check out this amazing clearance sale of all our past issues. Missing some issues? This is a great time to complete your RBD collection. Save up to 40% off the regular price of our printed back issue packages. These prices are only good until the end of the year May 2008 and supplies are limited, so place your order today.

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