ebook img

Using ActiveX with Caché - InterSystems Documentation PDF

62 Pages·2012·0.25 MB·English
by  
Save to my drive
Quick download
Download
Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.

Preview Using ActiveX with Caché - InterSystems Documentation

Using ActiveX with Caché Version 2012.2 13 September 2017 InterSystems Corporation 1 Memorial Drive Cambridge MA 02142 www.intersystems.com Using ActiveX with Caché Caché Version 2012.2 13 September 2017 Copyright © 2017 InterSystems Corporation All rights reserved. InterSystems, InterSystems Caché, InterSystems Ensemble, InterSystems HealthShare, HealthShare, InterSystems TrakCare, TrakCare, InterSystems DeepSee, and DeepSee are registered trademarks of InterSystems Corporation. InterSystems iKnow, Zen, and Caché Server Pages are trademarks of InterSystems Corporation. All other brand or product names used herein are trademarks or registered trademarks of their respective companies or organizations. This document contains trade secret and confidential information which is the property of InterSystems Corporation, One Memorial Drive, Cambridge, MA 02142, or its affiliates, and is furnished for the sole purpose of the operation and maintenance of the products of InterSystems Corporation. No part of this publication is to be used for any other purpose, and this publication is not to be reproduced, copied, disclosed, transmitted, stored in a retrieval system or translated into any human or computer language, in any form, by any means, in whole or in part, without the express prior written consent of InterSystems Corporation. The copying, use and disposition of this document and the software programs described herein is prohibited except to the limited extent set forth in the standard software license agreement(s) of InterSystems Corporation covering such programs and related documentation. InterSystems Corporation makes no representations and warranties concerning such software programs other than those set forth in such standard software license agreement(s). In addition, the liability of InterSystems Corporation for any losses or damages relating to or arising out of the use of such software programs is limited in the manner set forth in such standard software license agreement(s). THE FOREGOING IS A GENERAL SUMMARY OF THE RESTRICTIONS AND LIMITATIONS IMPOSED BY INTERSYSTEMS CORPORATION ON THE USE OF, AND LIABILITY ARISING FROM, ITS COMPUTER SOFTWARE. FOR COMPLETE INFORMATION REFERENCE SHOULD BE MADE TO THE STANDARD SOFTWARE LICENSE AGREEMENT(S) OF INTERSYSTEMS CORPORATION, COPIES OF WHICH WILL BE MADE AVAILABLE UPON REQUEST. InterSystems Corporation disclaims responsibility for errors which may appear in this document, and it reserves the right, in its sole discretion and without notice, to make substitutions and modifications in the products and practices described in this document. For Support questions about any InterSystems products, contact: InterSystems Worldwide Response Center (WRC) Tel: +1-617-621-0700 Tel: +44 (0) 844 854 2917 Email: [email protected] Table of Contents About This Book....................................................................................................................................1 1 Introduction ........................................................................................................................................ 3 2 The Elements of the ActiveX Interface.............................................................................................5 2.1 The Caché Object Server for ActiveX......................................................................................53 2.2 Upgrading from CacheObject.dll...............................................................................................6 3 Configuring a Visual Basic Project...................................................................................................7 4 The Parts of a Caché Objects/Visual Basic Application..................................................................9 4.1 Connecting to a Server...............................................................................................................9 4.1.1 Defining a Connection String ........................................................................................10 4.2 Creating a New Object Instance...............................................................................................11 4.3 Saving an Object......................................................................................................................12 4.4 Opening an Existing Object.....................................................................................................12 4.5 Using Caché Objects in Visual Basic.......................................................................................13 4.6 Using Callback Functionality in Visual Basic..........................................................................13 4.7 Running a Query in Visual Basic.............................................................................................13 4.8 Using Streams in Visual Basic.................................................................................................14 4.9 Using Lists in Visual Basic.......................................................................................................14 4.10 Error Trapping in Visual Basic...............................................................................................15 5 Caché ActiveX API Reference.........................................................................................................17 5.1 The Objinstance Class..............................................................................................................17 5.2 The Factory Class.....................................................................................................................18 5.2.1 Connect()........................................................................................................................18 5.2.2 ConnectDlg()..................................................................................................................19 5.2.3 Disconnect()...................................................................................................................19 5.2.4 DynamicSQL()...............................................................................................................20 5.2.5 GetClassName().............................................................................................................21 5.2.6 GetConnectionList().......................................................................................................21 5.2.7 GetErrorText()................................................................................................................21 5.2.8 GetId()............................................................................................................................22 5.2.9 GetLastErrorCount() ...................................................................................................... 22 5.2.10 GetLastErrorNumber().................................................................................................23 5.2.11 GetLastErrorParam()....................................................................................................23 5.2.12 GetLastErrorParamCount()..........................................................................................24 5.2.13 IsConnected()...............................................................................................................24 5.2.14 IsMultibyte() ................................................................................................................ 24 5.2.15 New()............................................................................................................................25 5.2.16 Open() .......................................................................................................................... 25 5.2.17 OpenId().......................................................................................................................26 5.2.18 ResultSet()....................................................................................................................26 5.2.19 SetOutput()...................................................................................................................27 5.2.20 Static()..........................................................................................................................27 5.2.21 TransactionCommit() ................................................................................................... 28 5.2.22 TransactionLevel() ....................................................................................................... 28 5.2.23 TransactionRollBack() ................................................................................................. 28 5.2.24 TransactionStart().........................................................................................................29 Using ActiveX with Caché                                                                                                                                                      iii 5.3 The ResultSet Class..................................................................................................................29 5.3.1 Close()............................................................................................................................30 5.3.2 ContainsID()...................................................................................................................30 5.3.3 Execute() ........................................................................................................................ 31 5.3.4 Get() ............................................................................................................................... 31 5.3.5 GetColumnCount().........................................................................................................31 5.3.6 GetColumnHeader().......................................................................................................32 5.3.7 GetColumnName().........................................................................................................32 5.3.8 GetData()........................................................................................................................33 5.3.9 GetDataAsString() ......................................................................................................... 33 5.3.10 GetDataByName() ....................................................................................................... 34 5.3.11 GetParamCount() ......................................................................................................... 34 5.3.12 GetParamName()..........................................................................................................35 5.3.13 IsDataNull() ................................................................................................................. 35 5.3.14 Next() ........................................................................................................................... 36 5.3.15 Prepare().......................................................................................................................36 5.3.16 SetParam()....................................................................................................................36 5.3.17 SetRunTimeMode()......................................................................................................37 5.4 The SysList Class.....................................................................................................................37 5.4.1 Count Property...............................................................................................................38 5.4.2 IsMultibyte Property......................................................................................................39 5.4.3 Item Property..................................................................................................................39 5.4.4 ItemList Property ........................................................................................................... 40 5.4.5 Add() .............................................................................................................................. 40 5.4.6 Clear() ............................................................................................................................ 41 5.4.7 Get() ............................................................................................................................... 41 5.4.8 Remove()........................................................................................................................41 5.4.9 Set()................................................................................................................................42 5.5 BinaryStream Class..................................................................................................................42 5.5.1 Data Property ................................................................................................................. 43 5.5.2 Clear() ............................................................................................................................ 43 5.5.3 DeleteAttribute() ............................................................................................................ 43 5.5.4 FileRead().......................................................................................................................44 5.5.5 FileWrite()......................................................................................................................44 5.5.6 GetAttribute().................................................................................................................44 5.5.7 GetPicture()....................................................................................................................45 5.5.8 IsDefinedAttrib ute().......................................................................................................45 5.5.9 NextAttribute()...............................................................................................................45 5.5.10 Read()...........................................................................................................................46 5.5.11 Rewind().......................................................................................................................47 5.5.12 SetAttribute()................................................................................................................47 5.5.13 SetPicture()...................................................................................................................47 5.5.14 Write()..........................................................................................................................47 5.6 CharStream Class.....................................................................................................................48 5.6.1 Data Property ................................................................................................................. 48 5.6.2 Clear() ............................................................................................................................ 49 5.6.3 DeleteAttribute() ............................................................................................................ 49 5.6.4 FileRead().......................................................................................................................49 5.6.5 FileWrite()......................................................................................................................50 5.6.6 GetAttribute().................................................................................................................50 5.6.7 IsDefinedAttrib ute().......................................................................................................50 iv                                                                                                                                                      Using ActiveX with Caché 5.6.8 NextAttribute()...............................................................................................................51 5.6.9 Read().............................................................................................................................51 5.6.10 Rewind().......................................................................................................................52 5.6.11 SetAttribute()................................................................................................................52 5.6.12 Write()..........................................................................................................................52 Using ActiveX with Caché                                                                                                                                                       v List of Figures Figure 1–1: Caché Object Server for ActiveX.........................................................................................3 Figure 3–1: Automatic Continuation in Visual Basic Code.....................................................................7 Figure 3–2: Pop-Up Help Window in Visual Basic.................................................................................7 vi                                                                                                                                                      Using ActiveX with Caché List of Tables Table 4–1: ActiveX Error Codes............................................................................................................15 Using ActiveX with Caché                                                                                                                                                     vii About This Book The Caché ActiveX binding provides access to Caché from any application that supports ActiveX objects. This book contains the following sections: • Introduction • The Elements of the ActiveX Interface • Configuring a Visual Basic Project • The Parts of a Caché Objects/Visual Basic Application • Caché ActiveX API Reference There is also a detailed Table of Contents. For general information, see Using InterSystems Documentation. Using ActiveX with Caché                                                                                                                                                       1

Description:
Aug 31, 2012 2.1 The Caché Object Server for ActiveX . 4 The Parts of a Caché Objects/ Visual Basic Application 9.
See more

The list of books you might like

Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.