Language Reference 110502.Book

Total Page:16

File Type:pdf, Size:1020Kb

Language Reference 110502.Book dBL Language Reference VERSION 7.5 release 2.6 for Windows® 98, 2000, NT ME and XP dataBased Intelligence, Inc. Vestal, NY http://www.dbase.com news://news.dbase.com dataBased Intelligence, Inc. or Borland International may have patents and/or pending patent applications covering subject matter in this document. The furnishing of this document does not give you any license to these patents. COPYRIGHT © 2005 dataBased Intelligence, Inc. All rights reserved. All dBASE product names are trademarks or registered trademarks of dataBased Intelligence, Inc. All Borland product names are trademarks or registered trademarks of Borland International, Inc. Other brand and product names are trademarks or registered trademarks of their respective holders. Printed in the U.S.A. Contents Chapter 1 Chapter 4 Introduction 1 Operators and symbols 19 How this book is organized . 1 Operator precedence . 20 Typographical conventions . 2 Assignment operators. 20 Using the online version . 2 + (“plus”) operator . 21 - (“minus”) operator . 22 Chapter 2 Numeric operators . 22 Language definition 3 Logical operators . 23 Basic attributes. 3 Comparison operators. 24 Data types . 4 Object operators . 25 Simple data types. 4 NEW operator . 25 String data . 4 Index operator . 26 Numeric data . 4 Dot operator . 26 Logical data. 5 Scope resolution operator . 26 Date data . 5 Call, indirection, grouping operator . 27 Null values . 5 Alias operator . 27 Database-specific data types . 5 Macro operator . 28 Memo data . 5 Non-operational symbols . 30 Binary and OLE data . 6 String delimiters. 30 Programming data types . 6 Name/database delimiters . 30 Operators and symbols. 6 Comment symbols. 30 Names . 6 Statement separator, line continuation . 31 Expressions . 7 Codeblock, literal date, literal array symbol . 31 Basic expressions. 7 Preprocessor directive symbol . 32 Variables . 7 Assigning variables . 7 Chapter 5 Using variables and field names in expressions 7 Core language 33 Type conversion . 8 class Designer. 33 Automatic type conversion . 8 class Exception . 34 Explicit type conversion . 8 class Object . 35 Arrays . 8 ARGCOUNT( ) . 36 Literal arrays . 8 ARGVECTOR( ) . 36 Complex expressions. 9 baseClassName . 37 Statements . 9 CASE . 37 Basic statements . 9 CATCH . 37 Control statements . 10 CLASS . 37 Functions and codeblocks . 10 className. 38 Function pointers . 11 CLEAR MEMORY . 38 Codeblocks . 11 CLEAR PROGRAM . 39 Codeblocks vs. functions . 12 CLOSE PROCEDURE . 39 Objects and classes . 12 DEFINE. 40 Dynamic subclassing . 12 DO . 41 Methods . 13 DO CASE . 42 A simple class . 13 DO WHILE . 43 Programs . 13 DO...UNTIL . 44 Program files . 13 ELSE . 45 Program execution . 14 ELSEIF . 45 Functions and classes . 14 EMPTY( ). 45 Comments . 14 ENUMERATE( ) . 46 Preprocessor directives. 15 EXIT . 47 A simple program . 15 FINALLY . 47 FINDINSTANCE( ). 47 Chapter 3 FOR...ENDFOR . 48 Syntax conventions 16 FUNCTION. 49 Syntax notation . 16 IF . 50 Syntax example . 17 IIF( ) . 51 Capitalization guidelines. 17 isInherited( ) . 51 SET command defaults . 18 LOCAL . 52 i LOOP . 52 rightTrim( ) . 88 OTHERWISE . 53 RTRIM( ) . 88 PARAMETERS . 53 setByte( ) . 88 parent . 56 SOUNDEX( ) . 89 PCOUNT( ) . 56 SPACE( ) . 90 PRIVATE. 56 space( ) . 90 PROCEDURE . 57 STR( ) . 90 PUBLIC . 57 STUFF( ) . 91 QUIT . 58 stuff( ) . 92 REDEFINE . 58 SUBSTR( ) . 92 REFCOUNT( ). 59 substring( ) . 92 RELEASE . 59 toLowerCase( ) . 93 RELEASE OBJECT . 60 toProperCase( ). 93 RESTORE . 60 toUpperCase( ) . 93 RETURN . 61 TRANSFORM( ) . 93 SAVE . 61 TRIM( ) . 94 SET LIBRARY . 61 UPPER( ) . 94 SET PROCEDURE . 62 VAL( ) . 95 SET( ) . 63 SETTO( ) . 64 Chapter 7 STATIC . 64 Math / Money 96 STORE . 65 abs( ) . 96 THROW . 66 acos( ). 96 TRY . 66 asin( ) . 96 TYPE( ) . 69 atan( ) . 97 WITH . 71 atan2( ) . 97 ceil( ) . ..
Recommended publications
  • Xbase++ Language Concepts for Newbies Geek Gatherings Roger Donnay
    Xbase++ Language Concepts for Newbies Geek Gatherings Roger Donnay Introduction Xbase++ has extended the capabilities of the language beyond what is available in FoxPro and Clipper. For FoxPro developers and Clipper developers who are new to Xbase++, there are new variable types and language concepts that can enhance the programmer's ability to create more powerful and more supportable applications. The flexibility of the Xbase++ language is what makes it possible to create libraries of functions that can be used dynamically across multiple applications. The preprocessor, code blocks, ragged arrays and objects combine to give the programmer the ability to create their own language of commands and functions and all the advantages of a 4th generation language. This session will also show how these language concepts can be employed to create 3rd party add-on products to Xbase++ that will integrate seamlessly into Xbase++ applications. The Xbase++ language in incredibly robust and it could take years to understand most of its capabilities, however when migrating Clipper and FoxPro applications, it is not necessary to know all of this. I have aided many Clipper and FoxPro developers with the migration process over the years and I have found that only a basic introduction to the following concepts are necessary to get off to a great start: * The Xbase++ Project. Creation of EXEs and DLLs. * The compiler, linker and project builder . * Console mode for quick migration of Clipper and Fox 2.6 apps. * INIT and EXIT procedures, DBESYS, APPSYS and MAIN. * The DBE (Database engine) * LOCALS, STATICS, PRIVATE and PUBLIC variables. * STATIC functions.
    [Show full text]
  • Dbase Plus 1 Table Designer Behavior
    User’s Guide VERSION 7.5 release 2.61 for Windows® 98, 2000, NT ME and XP dataBased Intelligence, Inc. Vestal, NY http://www.dbase.com news://news.dbase.com dataBased Intelligence, Inc. or Borland International may have patents and/or pending patent applications covering subject matter in this document. The furnishing of this document does not give you any license to these patents. COPYRIGHT © 2006 dataBased Intelligence, Inc. All rights reserved. All dBASE product names are trademarks or registered trademarks of dataBased Intelligence, Inc. All Borland product names are trademarks or registered trademarks of Borland International, Inc. Other brand and product names are trademarks or registered trademarks of their respective holders. Printed in the U.S.A. Contents Chapter 1 Source Editor behavior . .10 Introduction to dBASE Plus 1 Table Designer behavior . .11 Optimized ReportViewer . .11 Welcome to dBASE Plus !. 1 Overview of dBASE Plus version 2.5. .11 What is dBASE Plus? . 1 Mouse events . .11 dBASE Newsgroups . 2 Grid Class . .11 The dBASE Plus Knowledgebase: . 2 Project Explorer . .11 Changes from earlier versions . 2 TreeView. .12 Visual dBase 5.x through Visual dBase 7.0 . 2 Array Class . .12 Report objects and the integrated Report designer . 3 Report . .12 Project Explorer . 3 Inspector . .12 Data objects. 3 _app Object . .12 Visual designers . 3 _app.frameWin . .12 ActiveX integration. 4 Procedure files . .12 The Inspector . 4 Report Designer . .12 Full-featured Source editor . 4 Error Handling. .12 SQL designer . 4 CHOOSEPRINTER( ) and choosePrinter( ) . .13 BDE Administrator and database support . 4 Overview of dBASE Plus version 2.6 . .13 DBF7 file format features .
    [Show full text]
  • Quick Recovery for Dbase
    QUICK RECOVERY FOR DBASE QUICK RECOVERY FOR DBASE Operation steps Who Suffers most Features 100% data recovery is possible if Recovery Modes Frequently asked Questions © Unistal Systems Pvt. Ltd., New Delhi Quick Recovery for Dbase Quick Recovery for Dbase recovers corrupted Dbase (Database) files which get corrupted due to unexpected software crash, unexpected system shutdown, virus attacks or error reading media where documents are stored. It is a professional file repair tool to repair corrupt FoxPro databases, dBase database file. During repairing process a complete scan of the damaged database is performed to locate and extract the recoverable information from the database. After complete scanning, the database contents which are recoverable are shown in the preview window. You can then easily save the recovered results as a working dbf database file. Its unique Guided File Excavation Technology (GFETch) helps in locating files and folders lost behind overwritten partitions too. FEATURES Quick and Automated Analysis with Simple & Well guided steps to recover & repair DBF files Recovers deleted DBF files from crashed & formatted HDD Repairs Corrupt DBF table Repair .DBF files with memo or binary data fields stored in DBT files. Support for batch repairing of DBF files All recovery cases possible that have been experienced by Unistal have been incorporated All recovery cases possible that have been experienced by Unistal have been incorporated Unique Guided File Excavation Technology (GFETch) used 100% data recovery and repair is possible if; Files are accidentally deleted. Header or footer is corrupted File summary, user or track information is corrupted internal links are Intact © Unistal Systems Pvt.
    [Show full text]
  • Introduction to MS-DOS
    1.Introduction to MS-DOS : MS-DOS (Microsoft Disk Operating System) was the Microsoft-marketed version of the first widely-installed operating system in personal computers. It was essentially the same operating system that (Bill Gates's) young company developed for IBM as Personal Computer - Disk Operating System in 1981. Most users of either DOS system simply referred to their system as Disk Operating System. Like PC-DOS, MS-DOS was (and still is) a non-graphical line-oriented command- driven operating system, with a relatively simple interface but not overly "friendly" user interface. Its prompt to enter a command looks like this: C:\> MS-DOS does not care about anything called an icon, wallpaper or screen saver. Rather than being considered as a Graphical User Interface (GUI) MS-DOS is what is known as a command-line interface. You type commands on what is called the command line. MS-DOS is a single-user, single-tasking computer operating system. In spite of its very small size and relative simplicity, it is one of the most successful operating systems that has been developed to date. In DOS, a file name consists of eight character followed by a 3 character file extension. The size of a file is restricted to a 4 byte file descriptor, which limits a file’s maximum size to approximately 4 billion characters. The first release of DOS could not read or write to disk drives so users could only read and write to a floppy disc. DOS was not a state of the art operating system, even for its time.
    [Show full text]
  • Compatible with the World
    EN DE FR NL IT PsiWin 2 Supported Applications Windows compatibility? No need to worry. PsiWin 2 ensures that your Series 5 handheld computer integrates seamlessly with leading Windows programs. See the chart below, for details. compatible with the world Synchronizes with Psion Series 5 Agenda, and Data (for contacts) Office 97 Word 97 (8.0) SmartSuite Organizer 97 WordPerfect WordPerfect 8.0 Excel 97 (8.0) 97 Suite 8 Quattro Pro 8.0 Outlook 97 Office 95 / Word 95 (7.0) SmartSuite Organizer 2.1 Office WordPerfect 7.0 Pro Excel 95 (7.0) 96 / Professional 7 Quattro Pro 7.0 Schedule+ 7/7a NotesSuite / WordPerfect (.WB3) Access 95 (Pro 96 Suite 7 version) Office 4.2 / Word 6.0 SmartSuite Organizer 2.1 Office for WordPerfect 7.0 4.3 (Pro) Excel 5.0 4.0 Windows NT Quattro Pro 7.0 FoxPro 2.6 (Pro Server 4.0 (.WB3) version) Office 3.0 Word 2.0 SmartSuite Ami Pro 3.0 WordPerfect WordPerfect 6.1 Excel 4.0 3.0 / 3.1 Organizer 2.1 Suite / Office Quattro Pro 6.0 (3.1 version) Professional / (.WB2) Windows 3.1x Client Software Other Works 3.0 (word Other 1-2-3 WK1 Other WordPerfect 5.1 Applications processor) Applications 1-2-3 WK3 Applications WordPerfect 5.2 Works 4.0 (word 1-2-3 WK4 WordPerfect processor) 6.0a FoxPro 2.0, 2.5, 2.6 Quattro Pro 5.0 (.WB1) Text Rich Text Format(RTF) Database Borland Int. dBASE III, IV, 5.0 Text for Windows Comma Separated Values MS Text for MS DOS DOS Pictures Series 5 Sketch to/from Windows Sound Series 5 Record (uncompressed) BMP to/from Windows WAV Synchronizes with Psion Series 5 Agenda, and Data (for contacts) Two way exchange Word If you have Lotus SmartSuite 97 you can open and save previous Sheet versions of SmartSuite applications' files, which are Psion compatible.
    [Show full text]
  • R&R Report Writer Version 9.0, Xbase & SQL Editions New Release
    R&R Report Writer Version 9.0, xBase & SQL Editions New Release Enhancements and New Capabilities Liveware Publishing is pleased to announce an exciting set of enhancements to R&R Report Writer!! This is the first MAJOR update to R&R in almost five years, but Liveware has made up for lost time with substantial improvements for every R&R user. Developers building reports for their applications, end-users creating their own ad-hoc and production reports, and even casual R&R runtime users will all find something in this release to streamline their reporting activities. For those who have purchased and implemented every update, and particularly Liveware’s Version 8.1 release licensees, you will be rewarded for your loyalty with a reduced upgrade price and a wide range of capabilities that will make R&R even more indispensable. For others who waited, this is the upgrade to buy since it contains so many unique and compelling ideas about reporting -- and ones you can use right away!! Version 9.0 includes 5 new “modules” -- what we consider significant extensions of R&R capabilities -- and many convenience and usability improvements to open reporting to database users at all levels. The 5 new modules are (with page number in parenthesis): Email Report Bursting & Distribution (2) Report Librariantm (4) ParameteRRtm Field Prompting (9) FlexLinktm Indexing-on-the-fly (11) Rapid Runnertm Runtime Control (16) Among the other improvements, the most significant are: Pervasive Band Color-coding (18) Page X of Y Functions (20) Redesigned Table Join Dialog (21) Print Preview Band Identification (23) Drill-down in Result Set Browser (24) Visual dBase 7 Support (25) This document will summarize each of these modules and improvements and describe how they expand R&R’s capabilities to an ever-wider range of reporting needs.
    [Show full text]
  • Microsoft Plays Hardball: Use of Exclusionary Pricing and Technical
    Antitrust Bulletin, XL:2, Summer 1995, 265-315 MICROSOFT PLAYS HARDBALL: The Use of Exclusionary Pricing and Technical Incompatibility to Maintain Monopoly Power in Markets for Operating System Software† by KENNETH C. BASEMAN* FREDERICK R. WARREN-BOULTON* and GLENN A. WOROCH** May 1995 ___________________ * Principals, MiCRA: Microeconomic Consulting and Research Associates, Inc., Washington, DC. ** University of California, Berkeley. † Forthcoming, Antitrust Bulletin, June 1995. We would like to express our appreciation for helpful comments and other assistance to Sturge Sobin, Linnet Harlan, Paul Dennis and the participants at the Columbia Business School's Institute for Tele-Information's Seminar on Sustaining Competition in Network Industries through Regulating and Pricing Access, especially Janusz Ordover and Bobby Willig. TABLE OF CONTENTS I. INTRODUCTION AND SUMMARY ................................... 1 II. BACKGROUND .................................................... 3 A. THE MARKET FOR PERSONAL COMPUTER OPERATING SYSTEMS ............................................................ 3 TABLE: NEW SHIPMENTS OF PERSONAL COMPUTER OPERATING SYSTEMS .............................................. 8 B. MICROSOFT'S PRACTICES ..................................... 9 III. FIRST-DEGREE PRICE DISCRIMINATION vs. INEFFICIENT SUBSTITUTION ................................................... 15 A. FIRST-DEGREE PRICE DISCRIMINATION ........................ 16 B. INEFFICIENT SUBSTITUTION ................................. 20 IV. ANTIFRAUD AND ANTIPIRACY
    [Show full text]
  • What Is It and Why Should VFP Developers Care?
    The X-Sharp Project What is it and why should VFP developers care? X# Vendor Session October 2019 X#: a new incarnation of an old development language X# Vendor Session October 2019 Agenda • A bit of history • Why X# • What is X# • X# and Visual FoxPro • New Features • Where can I get it X# Vendor Session October 2019 xBase languages, a bit of History -1 • Started at JPL with a project called Vulcan, by Wayne Ratliff (PTDOS, Later CP/M) (1978) • Ashton Tate bought it and released it under the name dBASE II for Apple II and DOS (1980) • An improved version dBASE III in 1984 • In the 80’s several competitors appeared on the market: Clipper, FoxBASE, DBXL, QuickSilver, Arago, Force, FlagShip and many more. Together these products were called “xBase”. The share the programming language and many functions and working with DBF files • Some were faster, others allowed to sell royalty free compiled versions of apps • Then Microsoft launched Windows in 1990 X# Vendor Session October 2019 xBase languages, a bit of History -2 • The move to Windows resulted in several product changes, also products were sold and resold: • dBase (AT) -> (Borland, Inprise, Borland) • QuickSilver -> Borland, then vanished • FlagShip -> MultiSoft (Various Unix versions, Windows) • Clipper (Nantucket)-> Visual Objects (Computer Associates) • FoxBASE (Fox Software) -> FoxPro (Microsoft) • Some products “died” • New products appeared, especially as successors of Clipper • (x) Harbour (open source, also for unix) • Xbase++ X# Vendor Session October 2019 xBase languages, a bit of History -3 • Now in the 2010’s most of these products are ‘dead’, no longer developed for various reasons.
    [Show full text]
  • BORLAND Objectvision™ Reference
    BORLAND ObjectVision™ Reference BORLAND INTERNATIONAL, INC. 1800 GREEN HILLS ROAD P.O. BOX 660001, SCOTTS VALLEY, CA 95067-0001 Copyright © 1991 by Borland International, Inc. All Rights Reserved. Borland and ObjectVision are trademarks of Borland International. Microsoft and MS are trademarks of Microsoft Corporation. Windows, as used in the manual, refers to Microsoft's implementation of a windows system. PRINTED IN THE U.S.A. R2 10 9 8 7 6 5 4 3 2 c o N T E N T s Part 1 ObjectVision features Optional equipment . .. 22 Installing ObjectVision . .. 23 Introduction 3 U sing the Paradox Engine . .. 26 What's in this manual .................. 3 Moving the ObjectVision icon ......... 26 Typography and naming conventions ... 4 Using a mouse to move the icon ..... 27 Late-breaking news ................... 5 Using keys to move the icon ......... 27 How to contact Borland . .. 5 Starting ObjectVision ................. 28 Chapter 1 ObjectVision: An overview 7 From the Windows desktop ......... 28 ObjectVision concepts ............... 7 From the DOS prompt . .. 28 Users .............................. 8 Modifying your WIN.INI file .......... 29 Forms ............................... 8 The load and run statements ........ 29 Tools .............................. 9 Using Windows ..................... 29 Distribution ....................... 10 Application windows ............... 30 Using forms . .. 10 Control-menu box ............... 30 Fields .............................. 11 Title bar ........................ 31 Highlighting different fields . .. 11
    [Show full text]
  • Objectpal Reference Manual
    ObjectPAL™ Reference Guide Copyright © 1999 COREL CORPORATION and COREL CORPORATION LIMITED. All rights reserved. For more complete copyright information please refer to the About section in the Help menu of the software. TABLE OF CONTENTS Introduction..........1 Chapter 2: What’s in the Paradox 9 ObjectPAL Reference Guide ....1 ObjectPAL Level................1 Object type reference .....39 Syntax notation ...............2 ActionEvent type ..............39 ObjectPAL prototypes ..............2 User-defined constants .............40 Required elements ...............2 actionClass method ..............40 Informational elements .............3 id method .................41 Alternate syntax ...............3 setId method ................41 Using ObjectPAL in calculated fields .........4 AddinForm type ..............42 AnyType type ...............43 Example of using conditional logic and ObjectPAL methods blank method/procedure ............44 5 dataType method ...............45 Derived methods ...............6 fromHex procedure ..............45 isAssigned method ..............46 isBlank method ...............47 Chapter 1: isFixedType method ..............47 Basic language elements ....7 toHex procedure ...............48 ; { } (comments) keyword ............7 unAssign method ...............48 = (Assignment/Comparison operator) keyword .....8 view method ................49 const keyword ................9 Application type ..............49 disableDefault keyword .............10 Array type ................50 doDefault keyword ..............10 addLast
    [Show full text]
  • Corel® Wordperfect® Office 2020 Handbook
    Handbook Part One: Introduction 3 getting started Part Two: WordPerfect 15 creating professional-looking documents Part Three: Quattro Pro 133 managing data with spreadsheets Part Four: Presentations 183 making visual impact with slide shows Part Five: Utilities 241 using WordPerfect Lightning, Address Book, and more Part Six: Writing Tools 259 checking your spelling, grammar, and vocabulary Part Seven: Macros 273 streamlining and automating tasks Part Eight: Web Resources 283 finding even more information on the Internet Handbook highlights What’s included? . 3 What’s new in WordPerfect Office 2020 . 11 Installation . 11 Help resources. 5 Documentation conventions . 6 WordPerfect basics . 17 Quattro Pro basics. 135 Presentations basics . 185 WordPerfect Lightning . 243 Index. 285 Part One: Introduction Welcome to the Corel® WordPerfect® Office 2020 Handbook! More than just a reference manual, this handbook is filled with valuable tips and insights on a wide variety of tasks and projects. The following chapters in this introductory section are key to getting started with the software: • What’s new in WordPerfect Office 2020 on page 11 • Installation on page 11 • Using the Help files on page 6 If you’re ready to explore specific components of the software in greater detail, see the subsequent sections in this handbook. For an A-to-Z look at the topics covered in this manual, see the index on page 285. What’s included? WordPerfect Office includes the following programs: • Corel® WordPerfect® — for creating professional-looking documents. See Part Two: WordPerfect on page 15. • Corel® Quattro Pro® — for managing, analyzing, reporting, and sharing data. See Part Three: Quattro Pro on page 133.
    [Show full text]
  • Slickedit Plug-In for Eclipse V3.2 User Guide
    SlickEdit® Plug-In v3.3 for Eclipse™ SlickEdit® Plug-In v3.3 for Eclipse™ Information in this documentation is subject to change without notice and does not represent a commitment on the part of SlickEdit Inc. The software described in this document is protected by U.S. and international copyright laws and by other applicable laws, and may be used or copied only in accordance with the terms of the license or nondisclosure agreement that accompanies the software. It is against the law to copy the software on any medium except as specifically allowed in the license or nondisclosure agreement. The licensee may make one copy of the software for backup purposes. No part of this documentation may be reproduced or trans- mitted in any form or by any means, electronic or mechanical, including photocopying, recording, or information storage and retrieval systems, for any purpose other than the licensee's personal use, without the express written permission of SlickEdit Inc. Copyright 1988-2007 SlickEdit Inc. SlickEdit, Visual SlickEdit, Clipboard Inheritance, DIFFzilla, SmartPaste, Context Tagging, and Slick-C are registered trademarks of SlickEdit Inc. Code Quick | Think Slick is a trademark of SlickEdit Inc. All other products or company names are used for identifica- tion purposes only and may be trademarks of their respective owners. Protected by U.S. Patent 5,710,926. Table of Contents 1. Introduction ................................................................................................................... 1 How to Get the Most out
    [Show full text]