Click here to load reader

Actuate Basic Reference

  • View
    4.874

  • Download
    0

Embed Size (px)

Text of Actuate Basic Reference

Actuate Basic Language Reference

Information in this document is subject to change without notice. Examples provided are fictitious. No part of this document may be reproduced or transmitted in any form, or by any means, electronic or mechanical, for any purpose, in whole or in part, without the express written permission of Actuate Corporation. 1995 - 2003 by Actuate Corporation. All rights reserved. Printed in the United States of America. Contains information proprietary to: Actuate Corporation 701 Gateway Boulevard South San Francisco, CA 94080 http://www.actuate.com The software described in this manual is provided by Actuate Corporation under an Actuate License agreement. The software may be used only in accordance with the terms of the agreement. Actuate Corporation trademarks and registered trademarks: Actuate, the Actuate logo, e.Analysis, e.Report, e.Reporting, e.Spreadsheet, Formula One, Internet Spreadsheet, Live Report Document, ReportCast, Report Encyclopedia, ReportingEngines, the ReportingEngines logo, Reportlet, Spreadsheets Everywhere, Tidestone Technologies, and XML reports. Third party trademarks or registered trademarks of their respective owners, companies, or organizations: Apache Software Foundation (http://www.apache.org/): Crimson, Tomcat, Xalan, and Xerces. Apple Computer, Inc.: TrueType. BEA Systems, Inc.: BEA WebLogic Server. Bits Per Second, Ltd. and Graphics Server Technologies, L.P.: Graphics Server. Borland Software Corporation: JBuilder. Bristol Technology, Inc.: XPrinter. Bruno Lowagie and Paulo Soares: iText, licensed under the Mozilla Public License (MPL). Component One, LLC.: VSFlexGrid Pro. Fred L. Drake, Jr. (http://sourceforge.net/ projects/expat): Expat XML parser, created by James Clark, licensed under the MIT License. Hewlett-Packard Company: HP-UX. IBM Corporation: 1-2-3 , AIX, DB2, Informix-ESQL/C, ICU, Lotus, and WebSphere. Indiana University Extreme! Lab (http://www.extreme.indiana.edu): XML Pull Parser and XPP. InstallShield Corporation: InstallShield. InterNetivity Inc.: Databeacon. JDBM Project (http://jdbm.sourceforge.net): JDBM. LEAD Technologies, Inc.: LEADTOOLS. Linus Torvalds: Linux. Microsoft Corporation: ActiveX, Microsoft, MS-DOS, MSN, Windows, Windows NT. Netscape Communications Corporation, Inc.: Netscape, Netscape Communications, Netscape Communicator, Netscape Enterprise Server, and Netscape Navigator. Oracle Corporation: Oracle Call Interface. Progress Software Corporation: Progress. Quadralay Corporation: WebWorks. Rogue Wave Software, Inc.: NobleNet RPC and Rogue Wave SourcePro. SAP AG: SAP. Sun Microsystems, Inc.: 100% Pure Java, iPlanet, J2EE, Java and all Java-based marks, JavaServer Pages, ONC, Solaris, SPARC, Sun, Sun Microsystems, and Sun ONE. Sybase, Inc.: CT-Library. Symantec Corporation: Visual Cafe. Unicode, Inc.: Unicode. World Wide Web Consortium (W3C): HTML Tidy and tidy.c. X/Open Company, Ltd.: UNIX. Zero G Software, Inc.: InstallAnywhere. Zope Corporation: Digital Creations and DCLC.All other brand or product names are trademarks or registered trademarks of their respective owners, companies or organizations. Document No. 030430-2-130331 April 21, 2003

ContentsIntroduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .ixUnderstanding Actuate 7 . . . . . . . . . . . . . . . . . . . . . . . Addressing diverse customer profiles . . . . . . . . . . . . . . Addressing customer requirements . . . . . . . . . . . . . . . Supporting international information delivery requirements . Providing a scalable, high performance server . . . . . . . . . Providing a complete information delivery solution . . . . . . Introducing the Actuate 7 and ReportingEngines product suite . About Actuate e.Report Designer Professional product . . . . . . About the Actuate Basic Language Reference . . . . . . . . . . . . . Online documentation. . . . . . . . . . . . . . . . . . . . . . . . . Using online manuals . . . . . . . . . . . . . . . . . . . . . . . Using online help . . . . . . . . . . . . . . . . . . . . . . . . . . Using context-sensitive online help . . . . . . . . . . . . . . Using the Actuate online help system. . . . . . . . . . . . . Using report-specific online help . . . . . . . . . . . . . . . Typographical conventions . . . . . . . . . . . . . . . . . . . . . . Syntax conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ix . . x . . x . . x . . x . . xi . xii . xv . xvii xviii xviii xviii . xix . xix . xxi . xxi . xxii

Chapter 1

Language summary. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1Arrays . . . . . . . . . . . Classes and instances . . . Controlling program flow. Converting . . . . . . . . . Date and time . . . . . . . Environment . . . . . . . . Error trapping . . . . . . . File input and output . . . Finances . . . . . . . . . . Graphics and printing . . Math . . . . . . . . . . . . Operators . . . . . . . . . . Procedures . . . . . . . . . Strings . . . . . . . . . . . Variables and constants . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 2 2 3 3 4 5 5 6 6 7 7 7 8 9

i

Chapter 2

Statements and functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11Using the code examples . . . . . Abs function . . . . . . . . . . . . AddValueIndex function . . . . . Asc function. . . . . . . . . . . . . AscW function . . . . . . . . . . . Assert statement . . . . . . . . . . Atn function. . . . . . . . . . . . . Beep statement . . . . . . . . . . . Call statement. . . . . . . . . . . . CCur function. . . . . . . . . . . . CDate function . . . . . . . . . . . CDbl function . . . . . . . . . . . . ChDir statement . . . . . . . . . . ChDrive statement . . . . . . . . . Chr, Chr$ functions . . . . . . . . ChrW, ChrW$ functions . . . . . . CInt function . . . . . . . . . . . . Class statement . . . . . . . . . . . ClearClipboard function . . . . . . CLng function. . . . . . . . . . . . Close statement . . . . . . . . . . . Command, Command$ functions Const statement. . . . . . . . . . . ConvertBFileToString function . . ConvertStringToBFile function . . CopyInstance statement . . . . . . Cos function. . . . . . . . . . . . . CreateJavaClassHandle function . CreateJavaObject function . . . . . CreateObject function . . . . . . . CSng function . . . . . . . . . . . . CStr function . . . . . . . . . . . . CurDir, CurDir$ functions. . . . . CVar function . . . . . . . . . . . . CVDate function . . . . . . . . . . Date, Date$ functions . . . . . . . DateAdd function . . . . . . . . . DateDiff function . . . . . . . . . . DatePart function. . . . . . . . . . DateSerial function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .