Jump to content

User:Balek/sandbox

From Wikipedia, the free encyclopedia

FlagShip compiler & development

[edit]
FlagShip logo by multisoft
FlagShip app execution including debugger

FlagShip [1] is a programming and development tool from multisoft[2]. Like all other compilers, it is primarily designed for professional software development. However, thanks to its simple interface, it is also often used by semi-professional and experienced users who want to create a database program with minimal effort. Due to its full Clipper (programming language) compatibility, FlagShip is also ideally suited for porting existing DOS applications to Unix, Linux, or the MS Windows operating systems.

There's no learning curve if you're familiar with xBase dialects such as dBase, FoxBase, FoxPro, Clipper and Visual Objects. This is the case for millions of trained software developers who have been using one of these 4GL languages for years; they can all switch directly to FlagShip. If you have no previous knowledge of xBase but have experience in programming of C, C++, Java, Pascal, Delphi, Basic, etc., the learning curve is very flat you can create your first program in less than 10 commands.

Visual FlagShip automatically creates a GUI-oriented and/or textual program from the same source code. Of course, the appearance can be freely modified, both using the OOP classes and the corresponding functions. The execution mode (GUI, textual, or stream for the web) is automatically determined by the environment in a heterogeneous application, or can be specified by input parameters during compilation or program execution.

For example, with these few program lines, saved in the text file address.prg

 USE address ALIAS adr SHARED NEW
 SET COLOR TO "W+/B,GR+/R,W/B,W/B,GR+/BG"
 SET GUICOLOR OFF
 cls
 @  1, 0 SAY "Id No. " GET adr->IdNum   PICT "999999" VALID IdNum > 0
 @  3, 0 SAY "Company" GET adr->Company
 @  3,35 SAY "Branch"  GET adr->Branch  WHEN  !empty(adr->Company)
 @  4, 0 SAY "Name   " GET adr->Name    VALID !empty(adr->Name)
 @  4,35 SAY "First "  GET adr->First
 @  6, 0 SAY "Country" GET adr->Country PICTURE "!" + repli("x",24)
 @  8, 0 SAY "Zip    " GET adr->Zip     PICT "@!" VALID !empty(adr->Zip)
 @  9, 0 SAY "City   " GET adr->City
 @ 10, 0 SAY "Street " GET adr->Street
   
 @  6,35,11.4,47 GET adr->Type RADIOGROUP {"Male","Female","Company","None"}
 @  7,50   GET  adr->Interest  CHECKBOX  CAPTION "Interested party"
 @  8,50   GET  adr->Customer  CHECKBOX  CAPTION "Customer"
 @  9,50   GET  adr->Reseller  CHECKBOX  CAPTION "Reseller"
 @ 10,50   GET  adr->Distrib   CHECKBOX  CAPTION "Distributor"
 READ 
Executed in GUI mode as
"address.exe" or "./address"
Executed in terminal mode
as "address.exe -io=t"

... and invoking

 FlagShip address.prg -o address

... is the program compiled into an executable (here address.exe in the Windows environment or ./address in Linux). Execute by name like any other application.

Additional examples and screenshots are available via web links (below).

[edit]

Reference

[edit]