Flagship Manual
Total Page:16
File Type:pdf, Size:1020Kb
The whole FlagShip 8 manual consist of following sections: Section Content General information: License agreement & warranty, installation GEN and de-installation, registration and support FlagShip language: Specification, database, files, language LNG elements, multiuser, multitasking, FlagShip extensions and differences Compiler & Tools: Compiling, linking, libraries, make, run-time FSC requirements, debugging, tools and utilities Commands and statements: Alphabetical reference of FlagShip CMD commands, declarators and statements FUN Standard functions: Alphabetical reference of FlagShip functions Objects and classes: Standard classes for Get, Tbrowse, Error, OBJ Application, GUI, as well as other standard classes RDD Replaceable Database Drivers C-API: FlagShip connection to the C language, Extend C EXT System, Inline C programs, Open C API, Modifying the intermediate C code FS2 Alphabetical reference of FS2 Toolbox functions Quick reference: Overview of commands, functions and QRF environment PRE Preprocessor, includes, directives System info, porting: System differences to DOS, porting hints, SYS data transfer, terminals and mapping, distributable files Release notes: Operating system dependent information, REL predefined terminals Appendix: Inkey values, control keys, ASCII-ISO table, error APP codes, dBase and FoxPro notes, forms IDX Index of all sections The on-line manual “fsman” contains all above sections, search fsman function, and additionally last changes and extensions multisoft Datentechnik, Germany Copyright (c) 1992..2017 All rights reserved Object Oriented Database Development System, Cross-Compatible to Unix, Linux and MS-Windows Section LNG Manual release: 8.1 For the current program release see your Activation Card, or check on-line by issuing FlagShip -version Note: the on-line manual is updated more frequently. Copyright Copyright © 1992..2017 by multisoft Datentechnik, D-84036 Landshut, Germany. All rights reserved worldwide. Manual authors: Jan V. Balek, Ibrahim Tannir, Sven Koester No part of this publication may be copied or distributed, transmitted, transcripted, stored in a retrieval system, or translated into any human or computer language, in any form or by any means, electronic, mechanical, magnetic, manual, or otherwise; or disclosed to third parties without the express written permission of multisoft Datentechnik. Please see also "License Agreement", section GEN.2 Made in Germany. Printed in Germany. Trademarks FlagShip™ is trademark of multisoft Datentechnik. Other trademarks: dBASE is trademark of Borland/Ashton-Tate, Clipper of CA/Nantucket, FoxBase of Microsoft, Unix of AT&T/USL/ SCO, AIX of IBM, MS-DOS and MS-Windows of Microsoft. Other products named herein may be trademarks of their respective manufacturers. Headquarter Address multisoft Datentechnik E-mail: [email protected] Schönaustr. 7 [email protected] 84036 Landshut [email protected] Germany Phone: (+49) 0871-3300237 Web: http://www.fship.com LNG: Introduction to FlagShip LNG: Introduction to FlagShip .................................................................................................. 1 1. Introduction to FlagShip ........................................................................................................ 5 1.1 What FlagShip is ............................................................................................................. 5 1.2 Mode of operation ........................................................................................................... 6 1.3 System differences .......................................................................................................... 7 2. Basis of the FlagShip Language ........................................................................................... 9 2.1 Language Specification ................................................................................................... 9 2.2 Structure of a FlagShip Program ...................................................................................... 12 2.2.1 Language Syntax ....................................................................................................... 12 2.2.2 Statements ................................................................................................................. 12 2.2.3 Comments .................................................................................................................. 13 2.3 Program Files and Modules .............................................................................................. 14 2.3.1 Main Program ............................................................................................................. 14 2.3.2 Procedures and Functions ......................................................................................... 15 2.3.3 Code Blocks ............................................................................................................... 18 Macro-evaluated Code Block: ............................................................................................. 20 2.4 Commands ........................................................................................................................ 21 2.5 Control Structures ............................................................................................................. 22 2.5.1 Choice constructs ....................................................................................................... 22 2.5.2 Iteration constructs ..................................................................................................... 24 2.5.3 Interrupting Program Flow, Exceptions ...................................................................... 24 2.6 Variables ........................................................................................................................... 26 2.6.1 Variable Classes ........................................................................................................ 26 2.6.2 Initialization and Declaration ...................................................................................... 27 2.6.3 Variable Scope, Visibility and Lifetime ....................................................................... 28 2.6.4 Type of Variables ....................................................................................................... 29 Numeric Variable ................................................................................................................. 29 Character Variable (string) .................................................................................................. 31 Date Variable ....................................................................................................................... 33 Logical (boolean) Variable................................................................................................... 33 Arrays .................................................................................................................................. 34 Screen Variable ................................................................................................................... 37 Code Block Variable ............................................................................................................ 38 Object Variable .................................................................................................................... 38 NIL Variable ......................................................................................................................... 38 2.6.5 Binary 0 Characters in Strings ................................................................................... 39 2.6.6 Variable Type Declaration .......................................................................................... 40 2.7 Literal Constants ............................................................................................................... 41 Numeric constant ................................................................................................................ 41 Character constant .............................................................................................................. 41 Date constant ...................................................................................................................... 43 Logical constant .................................................................................................................. 43 NIL constant ........................................................................................................................ 44 Array constant ..................................................................................................................... 44 2.8 Expressions ...................................................................................................................... 45 LNG 1 Expression List .................................................................................................................... 45 2.9 Operators .......................................................................................................................... 46 Assignments ........................................................................................................................ 46 Mathematical Operators ...................................................................................................... 47 Relational Operators ..........................................................................................................