![]() Elements can be accessed by numeric index as well. A hash can be examined, sorted, saved and loaded. Values are added or assigned to existing elements. A Hash array is dynamic and is not dimensioned prior to its use. The array can be of any type, Int/String/Date/etc. The Hash is a one dimensional array whose index is of type string. The array can be sorted using quick sort or shell sort. The Enum keyword is used to define a sequence of constants whose values are incremented by one.Īrrays elements can be inserted and deleted. A constant is defined using the Const keyword. Variables declared without specifying a type explicitly are a Variant data type by default.Ī constant is a variable whose value is fixed at compile-time, and cannot change during program execution (hence, it remains constant). New data types are Large (64-bit), Date, Currency, Variant, Object, Pointer and Handle. Using a GOSUB to perform a repetitive task is almost always faster then performing a call to a Sub or Function, since there is no overhead in setting up a stack frame for a GoSub. A subroutine can contain more than one Return statement, but the first Return statement encountered causes the flow of execution to branch back to the statement immediately following the most recently executed GoSub statement. More than 100 special Gfa_ Xxx functions and statements provide access to manipulating the environment.īesides the well-known Sub, Procedure, and Function subroutines, you can now also use GoSub and Return anywhere in a procedure, but GoSub and the corresponding Return statement must be in the same procedure. ![]() The Integrated Development Environment can be extended through the use of add-ins, called editor extensions. Keyboard macros for repetitive action keystrokes can be recorded and played back. Procedures can have optional parameters and the code is automatically indented and formatted. Subs and functions can be folded of course. The colon character (:) can be used to separate multiple statements on a single (logical) line of source code. The effect of using a line continuation character is for "visual" appearance only - the compiler itself treats lines split this way as only one contiguous line of code. The underscore character must be preceded by at least one white space character. To create modular programs part of the code can be compiled in a library file (.lg32) and included into the project file.Īn odd number of parenthesis in a code line are auto-completed to match all required parenthesis.The underscore character ( _ ) can be used to split "logical" lines of source code across physical lines in the source code file. Code, forms (windows and dialog boxes), data, resource info are all contained in one file the. GFA-BASIC 32 files are single project files. When porting application from 16-bits GFA-BASIC, GFA-BASIC 32 will automatically convert 16-bit code to the new 32-bit syntax. ![]() ![]() Other incompatibilities are due to the 32 bits operating system an integer is now 32-bits wide rather than the 16-bits in GFA-BASIC 16-bit, for instance. Much of the functionality of the 16-bit version is retained, but due to an entirely new concept of creating and handling of windows and dialog boxes, GFA-BASIC 32 is also quite different and much more compatible to VB in that area. The command library of GFA-BASIC 32 is partly compatible to Visual Basic and 16-bit GFA-BASIC. The compiler is optimized for producing fast machine code, so that GFA-BASIC 32 programs execute at high speed. When run from the IDE the code is first compiled to machine code and then executed. ![]() GFA-BASIC 32 is no longer divided in an interpreter and a stand-alone compiler. Then GFA-BASIC was developed for for the Intel processors: GFA-BASIC for MSDOS, GFA-BASIC for Windows 3.1, and the most recent GFA-BASIC 32 for Windows 95 and later. The first version was released in 1985 for the Atari ST, followed by a version for the Amiga. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |