Source language: Translate to:

Multiple help files for one F1 key

Questions about using NeoBook's scripting language

Moderator: Neosoft Support

Multiple help files for one F1 key

Postby Dorjee » Sat Oct 02, 2010 1:13 am

I wondered how to display multiple help files (.chm) with only F1 function key as it is implemented in NB. Imagine you make a pub with two or three or more language options and each time it is necessary to select a help file in the appropriate language. The trick is:

In book properties/General in "Help File" field enter a variable, say: "[HelpFileName]"

Then you give a value to this variable according to the language, something like:

Code: Select all
If "Language" "=" "EN"
SetVar "[HelpFileName]" "Help-EN.chm"

If "Language" "=" "FR"
SetVar "[HelpFileName]" "Help-FR.chm"

If "Language" "=" "ES"
SetVar "[HelpFileName]" "Help-ES.chm"

and so on ...

Easy, isn't it?
Dorjee the Neobooker
Posts: 27
Joined: Thu Nov 17, 2005 12:15 am

Postby Neosoft Support » Mon Oct 04, 2010 10:55 am

Thanks for the useful tip!
NeoSoft Support
Neosoft Support
NeoSoft Team
Posts: 5621
Joined: Thu Mar 31, 2005 10:48 pm
Location: Oregon, USA

Return to NeoBook Action Commands

Who is online

Users browsing this forum: No registered users and 2 guests