RoboHelp 6 now comes with the ability to create and use variables. What are variables and how can they help you? Variables can contain information that occurs frequently in your project, such as a product name, company name or copyright notice.
After creating the variable, you can insert it into any RoboHelp project or onto a template by dragging and dropping.
Let’s say you want to have your company name appear throughout the project. You could accomplish the task the old-fashioned way by typing the company name over and over again. Or you can create a variable called CompanyName, whose definition is your actual company name. After creating the variable, it’s a simple matter of dragging the CompanyName variable into any topic.
Now here’s the cool part. Assume your company name now appears throughout your project, and now you want to change it. Without the variable, you would have to use RoboHelp’s Multi-File Find and Replace tool to update the company name. Thanks to variables, all you actually need to do is update the definition of the CompanyName variable and you will change the displayed company name project-wide in just a few seconds. Sweet!
Create a User Defined Variable
- On the Project pane, right-click the User defined Variables folder and select New Variable
- Type a name into the Variable Name area
- Type a value into the Variable Value area
- Click OK
Insert and Edit a User Defined Variable
- Drag the variable from the User defined Variables folder into any topic(s) in your project.
When you drag the variable into a topic, the Variable Value appears. Should you update the variable at any time, it will update all instances of itself throughout the project.
- On the Project pane, open the User defined Variables folder
- Double-click the variable to open it for editing
- Change the Variable Value
- Click OK