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:

Beginner's Corner

Dynamic RB, Part 1

Using RBScript for interactive action

Issue: 5.5 (July/August 2007)
Author: Marc Zeedar editor-at-rbdeveloper.com
Article Description: No description available.
Article Length (in bytes): 15,165
Starting Page Number: 34
RBD Number: 5511
Resource File(s):

Download Icon 5511.zip Updated: Monday, July 16, 2007 at 12:20 PM

Related Link(s): None
Known Limitations: None

Excerpt of article text...

My first computer programming experience was with BASIC, the interpreted kind with line numbers and funny syntax like A$. This was back in the old days, when every computer came with some kind of BASIC (it was practically the operating system). BASIC was great for learning because you could just type in some code -- like PRINT 45*10 -- and see a result immediately. But did you know you can have that same kind of interaction with REALbasic?

It's easily overlooked, but one of REALbasic's coolest features is something called RBScript. RBScript is basically a way to let your compiled, running application run raw REALbasic code. Your application will compile and run the code while your app is running.

Why would you want to do such a thing? There are many reasons. Any time you have a need to be able to modify the way an application behaves without having to build a new version of the app, you should consider RBScripting.

For example, a common use for RBScripting is to build a plugin or filter system for your application. If you document how your plugin/filter system works, third parties can even write their own -- a terrific way for your user base to help each other and it saves you from writing that code yourself.

...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