TAILIEUCHUNG - Getting Started with Open Office .org 3 part 38

Getting Started with Open Office .org 3 part 38. This Manual Book is for anyone who wants to get up to speed quickly with the latest version . “GETTING STARTED WITH ″ introduces all software programs of the OpenOffice bundle: Writer (word processing), Calc (spreadsheets), Impress (presentations), Draw (vector drawings), Math (equation editor) and Base (database). This book was written by volunteers from the community working through and is distributed under the CreativeCommon Attribution Licence | dispatcher createUnoService rem ------------------------------------------------------------- dim args1 0 as new args1 0 .Name Text args1 0 .Value Andrew Pitonyak document .uno InsertText 0 args1 end sub The macro in Listing 1 is not as complicated as it first appears. Learning a few things helps significantly in understanding the generated macros. The discussion starts with features near the top of the macro listing and describes them. If you like to avoid details then simply change the text Andrew Pitonyak to what you want to insert at the current cursor position. Comments start with REM The keyword REM short for remark starts a macro comment. All text after REM on the same line is ignored. As a short cut the single quote character can also be used to start a comment. StarBasic is not case-sensitive for keywords so REM Rem and rem all start a comment. If you use symbolic constants Tip defined by the API it is safer to assume that the names are case-sensitive symbolic constants are an advanced topic not usually needed by people that use the macro recorder. Defining subroutines with SUB Individual macros are stored in subroutines defined with the keyword SUB. The end of a subroutine is indicated by the words END SUB. The code starts by defining the subroutine named Main which is empty and does nothing. The next subroutine EnterMyName contains the generated code. creates an empty subroutine named Main Tip when it creates a module. There are advanced topics that are beyond the scope of this document but knowing about them might be of interest You can write a macro so that values can be passed to the subroutine. The values are called arguments. Recorded macros do not accept arguments. Chapter 13 Getting Started with Macros 371 Another kind of subroutine is called a function. A function is a subroutine that returns a value. The keyword FUNCTION is used rather .

TỪ KHÓA LIÊN QUAN
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.