Basic Programming Programmers Have Been Looking for a Visual Basic Clone for Linux for Quite a While Now

Total Page:16

File Type:pdf, Size:1020Kb

Basic Programming Programmers Have Been Looking for a Visual Basic Clone for Linux for Quite a While Now LINUX USER Gambas Gambas Basic Programming Programmers have been looking for a Visual Basic clone for Linux for quite a while now. Gambas is well on the way to closing this gap. BY FRANK WIEDUWILT or many Linux converts losing a Now change to the directory you just simple programming language like created, gambas-0.38, (cd gambas-0.38)), FBasic, which is extremely useful for and type the following commands in the straightforward programming tasks, was following order: ./configure, make, and a hard blow. Gambas [1], which means ensuring that you are root, make install. “Gambas Almost Means BASic”, offers a This completes the installation of the developer environment that is similar to program, which you can now launch by Visual Basic. Gambas’ author, Benoît typing gambas & in a shell. Minisini, has created a program that allows you to create graphic interfaces Initial Launch with just a few mouse clicks, and it After launching the program, you are comes complete with a convenient editor prompted to choose between creating a for writing source code. new project or openening an existing one. If you select New Project, Gambas will Installation prompt you to enter the directory where You will find Gambas on this issue’s you will be storing the project files before subscription CD. To compile Gambas you opening a number of windows where you Figure 2: Form Designer and Toolbox will need both the sources, and a QT can edit your project files (see Figure 1). version > 3.0.2. Users of SuSE Linux The left panel then shows an overview A Question of Forms version 8.0 should use Gambas 0.37, of the current project in a tree structure. A GUI tool is available for creating which is also included on the subscription The top panel on the right contains a forms. You can use the Form Designer CD, as Gambas 0.38 will not compile on selection of GUI elements that you can just like a drawing tool to position your distribution. add to the program interface – the individual elements on the background Type the following command in your properties of the selected element are of the programming environment (see favourite shell to expand the gambas- displayed on the right. To start Figure 2). 0.38.tar.gz archive: programming, simply draw one or A full selection of components multiple windows – Gambas refers to typically required for GUI programming, tar -zxvf gambas-0.38.tar.gz them as forms. such as a buttons, text boxes, combo Figure 1: Gambas Figure 3:The Component Explorer 84 Dec 02 / Jan 03 www.linux-magazine.com Gambas LINUX USER button in the editor window. The drop- down menu that appears contains a full selection of commands for source code editing. The editor also allows you to define breakpoints and select variables for debugger traces. More support for keyboard shortcuts would be useful – to avoid having to continually switch between keyboard and mouse while coding. However, the fact that the editor automatically capitalizes Basic keywords, highlights commands and remarks is quite useful. You can customize the editor to suit Figure 4:The Menu Editor your requirements by choosing colors for Figure 5:The Source Code Editor the text background, and for syntax boxes, tree and table view, and picture highlighting. Unfortunately, Gambas boxes, is available. will not allow you to integrate your Now select the required element in the favorite editor, such as Kate or Emacs, toolbox, and drag it to the required size for example. in the form window. You can use the However, the forms and classes are Properties window to edit the element’s stored in text format, which would allow properties. A grid is available to ensure you to use another editor for any source exact positioning of the elements. code authoring before you compile it Use the Properties window to specify with Gambas. the name and appearance of the ele- ment. Double clicking an element will Bug Hunting open the source code editor where you Debugging source code can often turn can type directives to define the various out to be quite a challenge. Gambas events that the element will react to. provides the developer with a debugger Each GUI element has a number of that allows you to trace variables at run properties, such as color, size, and time and define breakpoints (Figure 6). Figure 6:The Debugger position, for example, and also a number of methods. Linking Gambas Language Encyclopaedia, which To determine the options available for Gambas provides a compiler, that will also contains a few sample programs. a specific element, simply launch the translate your Basic source code into an The file is available both as a PDF and in Component Explorer (see Figure 3). executable. You press the [F7] key to StarOffice 5.2 format. Select an object in the left panel to launch the compilation process. If display its properties and methods in the everything works out ok, the executable, Conclusion right panel. A convenient Menu Editor is which will be named after your project, Gambas is an interesting project. Even at available to help you create menus – just appears in the project directory. You will this early stage it will allow you to create right click in a form to open the editor need to have Qt installed on your system small programs, and it was stable during (see Figure 4). to run your program. our tests. Program development is quick and Editing Source Code Help! painless due to the various GUI The source code editor may look The Gambas home page and the tools, and the footprint of the somewhat spartan at first glance (Figure subscription CD both include a executables Gambas creates is sur- 5). But try clicking the right mouse substantial language directory, the prisingly small. Future versions promise an enhanced debugger and a database GLOSSARY access component. ■ GUI: Graphical User Interface:This means the visual elements of a program, as the user sees them on screen. Syntax Highlighting: The editor uses colors to highlight commands,remarks,and variables, INFO allowing the developer to keep track more easily and recognize typos at a glance. Compiler: A compiler is a program that converts the source code authored by a developer into a [1] Project home page:http://gambas. machine-readable and executable format. sourceforge.net www.linux-magazine.com Dec 02 / Jan 03 85.
Recommended publications
  • Manualgambas.Pdf
    Introducción Este míni-manual esta pensado y orientado para los asistentes al taller de Gambas. Dado que, a priori, esperamos la asistencia de gente sin conocimientos previos de programación este texto va a ser escueto y muy elemental. Además de dar una formación teórica básica tiene el propósito de servir como chuleta para poder consultar las sintaxis más elementales como por ejemplo de las condicionales, bucles, etc. Nuestra herramienta: GAMBAS Vamos a usar Gambas, un lenguaje de programación visual similar al Visual Basic de Microsoft. Gambas dispone de su propio IDE. Un IDE, por sus siglas en inglés, es un entorno de desarrollo integrado. Gambas es lo que se conoce como un lenguaje de programación interpretado y como ocurre con GNU que es un acrónimo recurrente (Gnu No es Unix) Gambas significa Gambas Almost Means BASic, que traducido al castellano es Gambas Casi es BASic. Los IDE's son unos programas que aglutinan todo lo que necesitamos para programar. Tenemos un editor para picar (vamos a ir introduciéndonos en la jerga del programador) código, con resaltado por colores, autocompletado para ayudarnos en la edición, señalización de errores, etc. Un depurador para poder controlar la ejecución del programa y evaluar su comportamiento con sus inspectores de variables, objetos, etc. Un compilador para generar los binarios, bytecodes, ejecutables, etc. Un empaquetador para crear los instaladores. Además disponen de otras herramientas como gestores de servicios SVC para el control de versiones como GIT o similares. Editores de conexión a bases de datos, etc. Lo primero que vemos al ejecutar Gambas la ventana de bienvenida y nos da varias opciones, abrir un proyecto existente, crear uno nuevo o abrir recientes.
    [Show full text]
  • BASIC CODE 2010 Edition by the League of Minnesota Cities Duke Addicks, Special Counsel Rachel Carlson, Staff Attorney
    THE MINNESOTA BASIC CODE 2010 Edition By The League of Minnesota Cities Duke Addicks, Special Counsel Rachel Carlson, Staff Attorney Published by American Legal Publishing Corporation 432 Walnut Street, 12th Floor Cincinnati, Ohio 45202 Tel: (800) 445-5588 Fax: (513) 763-3562 E-Mail: [email protected] Internet: http://www.amlegal.com PREFACE TO THE MINNESOTA BASIC CODE, 2010 EDITION The Minnesota Basic Code This League of Minnesota Cities/American Legal Publishing (LMC/ALP) Minnesota Basic Code (MBC) is an effort to provide a modern and comprehensive code of ordinances for smaller Minnesota cities without the expense of a customized code of ordinances. Its provisions are also useful to all Minnesota cities that wish to have models for the basic city ordinances on the subjects contained in the code. The code reflects current state statutes, case law and rules through January, 2010. The MBC will be supplemented periodically to reflect legislative enactments and new case law and rules. The supplements will consist of new pages which will replace or be in addition to the pages contained in this edition. In addition, the supplements will contain new model ordinances that will be included into the MBC unless the city decides not to incorporate them into their code. Authors and Editors This Minnesota Basic Code is partly based on the Model Ordinance Code for Minnesota Cities, Revised Edition 1980, prepared by Orville C. Peterson, former Executive Director of the League of Minnesota Cities, and the 1989 Model Ordinance Code prepared by Thomas L. Grundhoefer, then Staff Attorney and now General Counsel for the League.
    [Show full text]
  • Lindoo2019 Miami Xojo Presentation
    Back to the Basics, in an Two Effort to Improve Student distinct retention in Intro to schools Programming Classes CS Dr. Ed Lindoo Associate Professor Computer Information Systems (CC&IS) 3 year average CS and CIS Drop/Fail rate • 3 year average • 50+ percent drop/fail rate in intro to programming class Two CIS classes taught by CS • Specifically CC&IS students were failing at a 62% rate! • Big problem! • If they fail this course, they don’t continue in the program • Represents a huge loss of revenue to the school • Intro to programming class taught by CS department • I was asked by our Dean to “Fix it” • Computer Science students and Information Systems students • Performed extensive research on why students fail. (business students) took the class together. • After sifting through all the research, I decided to go back to • Business students don’t have the strong technical skills to the basics, BASIC programing that is. jump into a Java or C++ course • I started thinking back to my days of BASIC and QBASIC • Certainly not as an intro class • Remember BASIC? • But that’s what was happening • Well that wasn’t going to cut it! • Further research found a common theme • Visual Programming Environments • Easier to understand languages. DON’T START WITH C++ • I thought long and hard about it • Re-wrote the entire course, Intro to Programming based on Xojo • Even though I had done a lot of work in VB.net, I felt like that was too heavy for this course • Ahh, but there’s a catch…………………isn’t there always? • Then I remembered back to my days of using Real Basic, so I • Must pass a Java course once they pass this class.
    [Show full text]
  • Programming Manual Version 2.0
    www.tinybasic.de programming manual version 2.0 TinyBasic Programming Manual Version 2.0 April 2008 altenburg © 2006-2008 by U. Altenburg CHAPTER 1 Introduction.....................................................8 EDITOR, COMPILER, DOWNLOAD, CONSOLE, SCOPE CHAPTER 2 Preprocessor……….........................................12 #TARGET, #INCLUDE, #DEFINE, #UNDEF, #IFDEF, #IFNDEF, #ELSE, #ENDIF CHAPTER 3 Variables and Types.......................................14 CHAR, BYTE, WORD, INTEGER, LONG, FLOAT, DATA, READ, RESTORE, LOAD, STORE, INC, DEC CHAPTER 4 Maths and Expressions..................................19 +, -, *, /, <, >, <=, >=, <>, <<, >>, (), [], NOT, AND, OR, XOR, MOD CHAPTER 5 Control Flow...................................................22 IF, THEN, ELSE, ELSIF, ENDIF, DO, LOOP, FOR, NEXT, WHILE, WEND, EXIT, ON, GOTO, GOSUB, RETURN, WAIT, PAUSE TinyBasic Programming www.tinybasic.de 5 CHAPTER 6 Functions.......................................................28 LO, HI, MIN, MAX, LEN, POS, VAL, PI, SIN, COS, TAN, ATN, DEG, RAD, SQR, EXP, LOG, POW, ABS, INT, ROUND, POINT, PEEK, EOF CHAPTER 7 Input and Output...........................................33 PUT, GET, PRINT, INPUT, OPEN, CLOSE, FLUSH, FIND, INITGSM, SENDSMS, RECVSMS, ERR, CR, NL, CHR, HEX, SPC, TAB, USING CHAPTER 8 Date and Time................................................40 SETCLOCK, DATE, TIME, HOUR, MINUTE, SECOND, DAY, MONTH, YEAR CHAPTER 9 Displays and Graphics...................................42 SETDISPLAY, SETSYMBOL, CLS, FONT, COLOR, PLOT, MOVE, DRAW, FRAME,
    [Show full text]
  • Microsoft Small Basic
    Microsoft Small Basic An introduction to Programming Chapter 1 An Introduction Small Basic and Programming Computer Programming is defined as the process of creating computer software using programming languages. Just like we speak and understand English or Spanish or French, computers can understand programs written in certain languages. These are called programming languages. In the beginning there were just a few programming languages and they were really easy to learn and comprehend. But as computers and software became more and more sophisticated, programming languages evolved fast, gathering more complex concepts along the way. As a result most modern programming languages and their concepts are pretty challenging to grasp by a beginner. This fact has started discouraging people from learning or attempting computer programming. Small Basic is a programming language that is designed to make programming extremely easy, approachable and fun for beginners. Small Basic’s intention is to bring down the barrier and serve as a stepping stone to the amazing world of computer programming. The Small Basic Environment Let us start with a quick introduction to the Small Basic Environment. When you first launch SmallBasic, you will see a window that looks like the following figure. Figure 1 - The Small Basic Environment This is the Small Basic Environment, where we’ll write and run our Small Basic programs. This environment has several distinct elements which are identified by numbers. The Editor, identified by [1] is where we will write our Small Basic programs. When you open a sample program or a previously saved program, it will show up on this editor.
    [Show full text]
  • BASIC Session
    BASIC Session Chairman: Thomas Cheatham Speaker: Thomas E. Kurtz PAPER: BASIC Thomas E. Kurtz Darthmouth College 1. Background 1.1. Dartmouth College Dartmouth College is a small university dating from 1769, and dedicated "for the educa- tion and instruction of Youth of the Indian Tribes in this Land in reading, writing and all parts of learning . and also of English Youth and any others" (Wheelock, 1769). The undergraduate student body (now nearly 4000) outnumbers all graduate students by more than 5 to 1, and majors predominantly in the Social Sciences and the Humanities (over 75%). In 1940 a milestone event, not well remembered until recently (Loveday, 1977), took place at Dartmouth. Dr. George Stibitz of the Bell Telephone Laboratories demonstrated publicly for the first time, at the annual meeting of the American Mathematical Society, the remote use of a computer over a communications line. The computer was a relay cal- culator designed to carry out arithmetic on complex numbers. The terminal was a Model 26 Teletype. Another milestone event occurred in the summer of 1956 when John McCarthy orga- nized at Dartmouth a summer research project on "artificial intelligence" (the first known use of this phrase). The computer scientists attending decided a new language was needed; thus was born LISP. [See the paper by McCarthy, pp. 173-185 in this volume. Ed.] 1.2. Dartmouth Comes to Computing After several brief encounters, Dartmouth's liaison with computing became permanent and continuing in 1956 through the New England Regional Computer Center at MIT, HISTORY OF PROGRAMMING LANGUAGES 515 Copyright © 1981 by the Association for Computing Machinery, Inc.
    [Show full text]
  • Full Form of Basic in Computer Language
    Full Form Of Basic In Computer Language Arrased and intransitive Obadiah resit: which Rockwell is soused enough? Prentiss safeguards her nitromethane yesternight, she posed it drastically. How rustling is Morley when comelier and canescent Ned depolarize some banana? Learning pascal are usually, the extern modifier is defined in basic computer full language of sense 3 Popular Types of Computer Language eduCBA. Instead of using machine code it uses a programming language. Programming in one natural language say taken full scope set the English language. BASIC was to early programming language that is still despise the simplest and most popular of programming languages BASIC stands for Beginner's. It is practically impossible to teach good programming to students that have had one prior exposure to BASIC In its classic form BASIC also. Computer Related Full Form PDF For BoardCompetitive Examination BAL Basic Assembly Language BER Bit less Rate BFD Binary File. Included in computer language of computers can be covered in. All Full Forms for Computer Subjectpdf Domain Name. The basics of BASIC the programming language of the 190s. Learn then to program drawings animations and games using JavaScript ProcessingJS or learn how these create webpages with HTML CSS You implement share. Basic Computer Terms. Important Full Forms Related to Programming Languages. BASIC Commands Dartmouth College. An html tags that time and that you are defined rules, compilers convert the habit to create a language of in basic form computer full control. What both RAM & ROM Mean their Business Chroncom. PHP Full Form GeeksforGeeks. What is C The Basics of C Programming HowStuffWorks.
    [Show full text]
  • Introduction to Programming with Xojo, Will Motivate You to Learn More About Xojo Or Any Other Programming Language
    Page 1 of 291 Introduction CONTENTS 1. Foreword 2. Acknowledgments 3. Conventions 4. Copyright & License Page 2 of 291 Foreword When you finish this book, you won’t be an expert developer, but you should have a solid grasp on the basic building blocks of writing your own apps. Our hope is that reading Introduction to Programming with Xojo, will motivate you to learn more about Xojo or any other programming language. The hardest programming language to learn is the first one. This book focuses on Xojo - because it’s easier to learn than many other languages. Once you’ve learned one language, the others become easier, because you’ve already learned the basic concepts involved. For example, once you know to write code in Xojo, learning Java becomes much easier, not only because the languages are similar and you already know about arrays, loops, variables, classes, debugging, and more. After all, a loop is a loop in any language. So while this book does focus on Xojo, the concepts that are introduced are applicable to many iii different programming languages. Where possible, some commonalities and differences are pointed out in notes. Before you get started, you’ll need to download and install Xojo to your computer. To do so, visit http://www.xojo.com and click on the download link. Xojo works on Windows, macOS and Linux. It is free to download, develop and test - you only need to buy a license if you want to compile your apps. Page 3 of 291 Acknowledgements Special thanks go out to Brad Rhine who wrote the original versions of this book with help from Geoff Perlman (CEO of Xojo, Inc).
    [Show full text]
  • B4X Booklets
    B4X Booklets B4X Getting started Copyright: © 2018 Anywhere Software Edition 1.4 Last update : 2018.11.28 Table of contents 2 B4X Getting started 1 B4X .............................................................................................................................................. 5 2 Getting started B4A..................................................................................................................... 6 2.1 B4A Trial version ................................................................................................................. 7 2.2 Installing B4A and Android SDK ........................................................................................ 8 2.2.1 Installing Java JDK .......................................................................................................... 8 2.2.2 Installing Android SDK ................................................................................................... 9 2.2.3 Installing B4A .................................................................................................................. 9 2.3 B4A Configure Paths in the IDE ........................................................................................ 11 2.4 Installation problem ........................................................................................................... 12 2.5 B4A Choice of the language .............................................................................................. 12 2.6 B4A Connecting a real device...........................................................................................
    [Show full text]
  • A Suitable Asset for Shrimp Aquaculture ?
    * *** * * * * *** * EUROPEAN COMMISSION Contract 99/362 - B7/6200 Environmental sustainability of brackishwater aquaculture in the Mekong delta - Vietnam GAMBAS Volume 1 - Summary report June 2004 Institute of ·-~. ...,..,. , Oceanography Nha Trang EUROPEAN COMMISSION Con tract 99/362 - B7 /6200 Environmental sustainability of brackishwater aquaculture in the Mekong delta - Vietnam GAMBAS Volume 1 - Sutnmary report 1 June 2004 Editors: Jacques Populos (1), Pascal Raux (2), Jean-Louis Martin (3), Yves Auda (4) (1) IFREMER, BP70, 29280 PLOUZANE, France (2) CEDEM, UBO, Rue de Kergoat, BREST (3) IFREMER/CREMA, BP5, 17137 L'HOUMEAU, France (4) CESBIO, BPI 2801,31401 Toulouse Cedex 4- France IFREMER, BREST GAMBAS Partnership lfœmer Inslltut Français de lnstitute of Institut de Université de Université Paul Research in Institute of Recherche pour Oceanography of Recherche pour le Bretagne Sabatier, LET Aquaculture Nb2 Fisheries l'Exploitation de la Nha Trang, Développement Occidentale, (Laboratoire (R/A2- Ho Chi Economies and Mer Vietnam CEDEM (Centre d'Ecologie MmhCity) Planning (IFEP de Droit et Terrestre) -Hanoi} d'Economie de la Mer) Preface Jacques Populus, Coordinator - This Gambas report contains two parts. The summary report (Volume 1) gives an account of the project intervention from May 2000 to Decembcr 2003, and a digest of the project's results and deliverables. The comprehensive report (Volume 2) contains the details of the scientific research and the technical results brought about by the project. Besides, a CD/ROM containing ali the technical reports, publications and maps generated in the frame of Gambas is available from the coordinator. _ Many people have contributed to this work. We did our best to mention their names where they contributed to the work and report, at the head of each chapter.
    [Show full text]
  • Windows Api Examples
    Windows Api Examples Petur J. Skulason. <mailto:[email protected]?subject=Windows Api Examples> http://www.est.is/~pjs/RealBasic/ http://u225.nett.is/~pjs/ All this is free to use in any application (commercial - shareware - freeware). Also to extract examples and post as examples from other websites. (I do not take any responsibility for how good this is, I dont call for any credit mony or anythink else ... ) These are few examples that I have found on lists, and by experimenting with Windows API calls and browsing MSDN website (http://msdn.microsoft.com/ ). Many text’s are copyed from MSDN website in this document are from MSDN website. Examples are tested on Win98 system, HP OmniBook XE2, compiled on PowerBook G3, PPC7300, LC475. Some of examples are working correctly. Most of examples are working, but some are not working, possible that i’am doing somthing wrong, but they are there. Comments, bugs, other samples welcome. Even requests for more samples. I might try to look at it and see if its possible. PS: In this document I have put some links to MSDN webpage’s. If you are running Internet Explorer then you might need to ‘disconnect java script’ couse then ie might show only part of page. Either run ie with *.js ‘OFF’ or use an other browser, like iCab or Netscape. (As of aug 30, 2000 then pages are displayed correct... problem might be solved... ) When declaring functions/subs then one is calling library, like user32.dll . Can omitt the name extension, use like Lib “user32” instead of Lib “user32.dll”.
    [Show full text]
  • Porting VB Applications to Linux and Mac OS X
    Porting VB Applications to Linux and Mac OS X A how-to guide for Visual Basic developers by Hank Marquis Hank Marquis has been using Visual Basic since version 1.0. He is author of A Visual Basic Programmer's Toolkit (APress), The Visual Basic 6.0 Bible (IDG) and over 35 articles published in CTO/BackOffice, Visual Basic Programmer's Journal (VBPJ), Visual Studio Magazine (VSM) and Microsoft MSDN. He is currently CTO of SlayFire Software Co., creating optimization and performance tools for REALbasic. Reach him at [email protected] or www.slayfiresoftware.com. Table of Contents Porting Options Beginning Assumptions Porting Considerations Language Keywords Code Syntax Data Types Language Structure User Interface Project Structure Platform APIs Other Considerations Visual Basic Project Converter Additional Resources Table 1. Porting Considerations Table 2. Visual Basic and REALbasic Datatypes Table 3. Getting Ready: The Step by Step Process Preparing Your Code to Use VB Project Converter © 2004 REAL Software, Inc. and Hank Marquis. All rights reserved. Page 1 of 17 Porting Visual Basic applications to Linux and Mac OS X A how-to guide for Visual Basic developers In this white paper, I'll show how you can preserve your investment in Visual Basic by porting your code to Linux and/or Macintosh using REAL Software's REALbasic. I'll provide some examples, share some experience and give you a roadmap for how to port—and how not to port—your Visual Basic apps cross- platform. My intent is to save you some time and pain. For porting our VB projects, we will use REALbasic 5.5.3 for Windows, a modern software development environment that is quite similar to Microsoft Visual Basic® in terms of the GUI and syntax.
    [Show full text]