Revision as of 05:14, 19 March 2006 editVslashg (talk | contribs)Extended confirmed users841 edits rv non-consensus, non-sourced post← Previous edit |
Latest revision as of 20:52, 10 March 2017 edit undoChristian75 (talk | contribs)Extended confirmed users, New page reviewers, Pending changes reviewers, Rollbackers114,765 edits {{redr}} is deprecated - converting to {{Redirect category shell|}} using AWB |
(528 intermediate revisions by more than 100 users not shown) |
Line 1: |
Line 1: |
|
|
#REDIRECT ] |
|
{{Infobox Software | |
|
|
|
|
|
name = REALbasic |
|
|
|
{{Redirect category shell| |
|
| logo = ] |
|
|
|
{{R from former name}} |
|
| screenshot = ] |
|
|
|
{{R from merge}} |
|
| caption = The REALbasic 2005 IDE running on Mac OS X |
|
|
| developer = REAL Software, Inc. |
|
|
| latest_release_version = 2006 R1 |
|
|
| latest_release_date = ]th, ] |
|
|
| operating_system = ], ], ] |
|
|
| genre = ] |
|
|
| license = ] |
|
|
| website = |
|
|
}} |
|
}} |
|
|
|
|
'''REALbasic''' ('''RB''') is an ] dialect of the ] developed and commercially marketed by REAL Software, Inc in ] for ], ], and ]. Created by Andrew Barry, who has since moved on to creating ExtremeBasic, it was originally called CrossBasic due to its ability to compile the same programming code for Mac OS and Windows (although the ] was Mac only). It was then redubbed REALbasic by REAL Software when they took over development in ]. The IDE is now available for all three supported platforms (with exception, as of February 2006, of ] ]). |
|
|
|
|
|
== Language features == |
|
|
RB is a strongly typed language with minimal automatic type conversion, that supports single ] and multiple ], ] ] and ] properties, ] (similar to ]), definition of customized arithmetic operators (similar to ]). It has a complete feature set supporting ], ], real-time ], sound, ] parsing and generation (even through ]), full ] support, ] calls to compiled ] libraries on all supported platforms, ] datatypes compatibility, ], ], ], ] sockets, ], ], ], ], ], ] support through ], ], ], ], ], ] and ]. |
|
|
|
|
|
== File Format == |
|
|
The source file format contains window and control placement data and is proprietary; however, ] import and export and ] import functionality is included. All source code can be contained in one project file, but it is also possible to have classes/modules in separate files in the same way as most other languages or dialects can. REALbasic compiles directly to ] for each platform that it supports (Mac OS X, MS Windows, Linux). |
|
|
|
|
|
== Current Editions of IDE == |
|
|
] |
|
|
There are two versions of the ]: |
|
|
* The professional edition can compile programs for ], ] and ] (plus ]) from the same ] file; it can also access ]s (], ], ] etc.) including the built-in single-user REAL SQL Database engine based on ]; it compiles 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 allow access to ] other than the built-in REAL SQL Database. |
|
|
|
|
|
Both versions of the IDE permit building the application ] by dragging the controls from a palette to their parent window. Layout of the controls is helped by the IDE that permits aligning them (both horizontally and vertically), and which gives informations about the distance between controls, or between a control and the window borders. |
|
|
|
|
|
RB IDE can use ] that extend the language with ] or ] and which permit to develop ] code more easily. |
|
|
|
|
|
== More screenshots == |
|
|
{| |
|
|
| ] |
|
|
| ] |
|
|
|- |
|
|
| ] |
|
|
|} |
|
|
|
|
|
== Example code == |
|
|
Here's some sample code that computes the ] of a given ] (using both the MD5() function and the MD5Digest class), and then shows both values in a ]: |
|
|
|
|
|
<pre> |
|
|
Dim Hash As String |
|
|
Dim Digest As New MD5Digest |
|
|
Hash = MD5("Source String") |
|
|
MsgBox(Hash) |
|
|
Digest.Process("Source") |
|
|
Digest.Process(" String") |
|
|
MsgBox(Digest.Value) |
|
|
</pre> |
|
|
|
|
|
This is an example of ] for a hypothetical Complex ] which permits to sum a ] to a ], and to sum two complex numbers: |
|
|
|
|
|
<pre> |
|
|
Function Operator_Add(rhs as Simple) As Complex |
|
|
Dim ret As New Complex |
|
|
ret.R = Self.R + rhs |
|
|
ret.I = Self.I |
|
|
Return ret |
|
|
End Function |
|
|
|
|
|
Function Operator_Add(rhs as Complex) As Complex |
|
|
Dim ret As New Complex |
|
|
ret.R = Self.R + rhs.R |
|
|
ret.I = Self.I + rhs.I |
|
|
Return ret |
|
|
End Function |
|
|
</pre> |
|
|
|
|
|
The same function can be defined to accept ] ] values. |
|
|
This code shows how to use the Complex ] to sum a ] with a ]: |
|
|
|
|
|
<pre> |
|
|
Dim First As New Complex(0, 1) |
|
|
Dim Second As New Complex(1, 1) |
|
|
Dim Sum As Complex |
|
|
Sum = First + 5.0 + Second |
|
|
// Sum will be (6, 2) |
|
|
</pre> |
|
|
|
|
|
==External links== |
|
|
*, makers of REALbasic. |
|
|
* |
|
|
* |
|
|
* |
|
|
* |
|
|
*, REALbasic learning at the speed of now. |
|
|
*, home of the online version of the book "I Declare: Calling External Functions in REALbasic" |
|
|
*, a wiki powered developer community and code repository |
|
|
* |
|
|
*, a wiki dedicated to REALBasic documentation |
|
|
*, a REALbasic resource site |
|
|
* |
|
|
* |
|
|
* |
|
|
* |
|
|
*, getting started with REALbasic (beginner to intermediate) |
|
|
* |
|
|
*, understand how it works |
|
|
|
|
|
== See also == |
|
|
*] |
|
|
*] |
|
|
*] |
|
|
*] |
|
|
*] |
|
|
*] |
|
|
*] |
|
|
|
|
|
] |
|
|
] |
|
|
] |
|
|
] |
|
|
|
|
|
] |
|
|
] |
|
|
] |
|