Jump to content

Realbasic

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by 66.82.9.85 (talk) at 07:42, 1 October 2005 (External links). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

REALbasic, or "RB", is an object-oriented dialect of the BASIC programming language commercially marketed by the Austin, Texas based REAL Software, Inc.

REALbasic is a strongly typed language with minimal automatic type conversion. The file format contains window and control placement data and is proprietary, however, XML import and export and Visual Basic import functionality is provided. All source can be contained in one file, but it is also possible to have classes/modules in separate files in the same way as most other languages or dialects (C programming language, Java, Visual Basic). REALbasic compiles directly to machine language for each platform that it supports. Reference counting is used to provide for automatic memory management.

The IDE for the current version ('2005', released on June 14,2005) runs on Mac OS X, Linux and Microsoft Windows. The professional edition can compile programs for all these platforms (plus Mac OS) from the same source file. It can also access databases (Oracle, PostgreSQL, MySQL etc.) including the built-in single-user REAL SQL Database engine. It can also compile console applications and has numerous other features.

The standard edition only compiles programs for the platform that the IDE is running on (either Windows, Linux or Mac), and does not access databases other than the built-in REAL Database. Academic licenses are available for all editions.

REALbasic has a complete feature set supporting hash tables, QuickTime, serial, TCP/IP sockets (including implementations of HTTP, POP3, SMTP, and SOAP), Apple Events, ActiveX, OLE, real-time 3D graphics, XML parsing and generation, full Unicode support, and API calls to compiled C libraries on all supported platforms. The language blends VB-like syntax with modern OOP semantics. Classes in REALbasic support single inheritance and multiple interfaces, similar to Java.

Here's some sample code that takes the string value of two editfields (called firstfield and secondfield), concatenates them and puts them into a third editfield (thirdfield).

thirdField.Text = firstField.Text + secondField.Text

The following code would download a HTML document via HTTP which is returned as a string which is then in turn displayed in a dialog box:

Dim theSocket As New HttpSocket
MsgBox(theSocket.Get("http://www.google.com/", 80))