程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
 程式師世界 >> 數據庫知識 >> SyBase數據庫 >> SyBase綜合文章 >> PowerBuilder with Word ‘97

PowerBuilder with Word ‘97

編輯:SyBase綜合文章
SUMMARY: This document revIEws how to find the correct Visual Basic for Application syntax needed in Word and how to convert it into the correct PowerBuilder syntax.
Includes:
- Code examples to see the PowerBuilder syntax for Word 8 OLE automation.
- Incomplete list of VisulaBasic constants and their values for PowerBuilder Document ID: 47980 Last Revised: 10/28/99 Topic: App Development Document Type: TechNote Product: PowerBuilder Version: 7.0; 6.0; 5 Platform: PC Operating System: Windows 95, Windows NT, Windows 98

Document:

  1. How to find the correct Visual Basic for Applications (VBA) syntax needed in Word and how to convert it into the correct PowerBuilder syntax

  With Word 8 / Office 97, Microsoft changed the way applications communicate with Word via OLE. Old WordBasic syntax may not work properly and converting them to VBA equivalents may be required.

  1.1 Use the Word Macro Editor

  An easy way to determine the VBA functions and their syntax by using the macro editor which is integrated in Word. To obtain the VBA functions turn on the macro recording in Word, perform the tasks you wish the Macro to perform (IE. Highlight some text), and then turn off the recording. With ALT + F11 you are able to open the Macro editor and see the syntax used by Word.

  To get a complete description of a function and to see the complete syntax you can use the help file VBAWRD8.HLP which is available through a custom installation of Word (you must specify to install this help file during the installation process, it is not installed by default). Here you will find information regarding the functions you can use in Word and their VBA and WordBasic syntax. Furthermore you will be instructed which functions you can use with Word 8.

  1.2 Convert VB Syntax to the PowerBuilder Syntax

  1. 上一頁:
  2. 下一頁:
Copyright © 程式師世界 All Rights Reserved