Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions

  




 

 

OpenOffice Writer User Guide
Previous Page Home Next Page

Create the variable

To create your variable, click Insert > Fields > Other. You can use choices found on the DocInformation, Variables, and Database tabs.

DocInformation fields

“Using document properties to hold information that changes†on page 341 described how to set up a user-defined document property. You can use that document property as the variable in your condition statement, or you can create another document property field specifically for conditions.

User-defined variable field

To set up a variable or user field:

  1. Place the cursor where you want the field to be inserted.

  2. On the Fields dialog box, select the Variables tab (Figure 369).

  3. Select Set variable in the Type list and Text in the Format list. Type a name for the variable in the Name box, and a value in the Value box. I have chosen “ProLite†for the name (to remind me that this variable is related to the two product versions), and I set the value as “Lite†because I can remember “If it is the Lite version, then this text should be hidden.â€

  4. Select Invisible so the field does not show in the document. Click Insert, then click Close.

Frame1410

  1. A small gray mark should be visible where you inserted the field. Hover the mouse pointer over this mark and you will see the field formula ProLite = Lite. We will come back to this field later.

TIPS

Because the gray mark is so small, you may have trouble finding it again, especially if you have other fields in the document. You may prefer to leave the variable field visible while you work, and change it to invisible just before you create final copy.

At any time, you can place the insertion point just before the field and click Edit > Fields or right-click the field, and then click Fields on the pop-up menu. On the Edit Fields dialog box (Figure 373), select or deselect the Invisible checkbox.

OpenOffice Writer User Guide
Previous Page Home Next Page

 
 
  Published under the terms of the Open Publication License Design by Interspire