Regnus 5.5

The Random Text Scripting Language

The Regnus Parser For VB6

About

The Regnus Parser for VB6 is a VB6 module which will allow you to generate text from Regnus scripts from within applications written in VB6.

To discuss this parser, or to make feature requests or bug reports, please visit its forum.

Note: due to limitations in VB6's character display support, it is recommended that Regnus scripts parsed using this parser use the local Windows code page for character mapping rather than UTF-8, as scripts using extended unicode characters may not display correctly.

Information & Download

Parser Version
v1.3.2
Regnus Specification
v5.5
Download

Using The Regnus Parser For VB6

To use the Regnus Parser For VB6 in your programs, you will need to first download and unzip the module file, and include it in your project.

Once your project contains the module, producing text from a Regnus script is very simple. The main function parser is RegnusGenerate, which returns a string containing the generated text. For example, to generate text from a Regnus script and store it in YourString$:

YourString$ = RegnusGenerate(YourScript, YourLabel, [Information])

YourScript should be the full relative path and file name of the script from which you would like to generate text, and YourLabel should be the label from which you would like to generate text. For example, to generate text from the "RANDOM PICK" label of the script Something Completely Different, in the working directory of the program:

YourString$ = RegnusGenerate("Something Completely Different.rsf", "RANDOM PICK")

The optional Information argument causes the parser to instead output meta-information about the script, such as the script's Title or Blurb. For example, to get the script's Title:

YourString$ = RegnusGenerate("", "", "title")

And to return the script's blurb, of course:

YourString$ = RegnusGenerate("", "", "blurb")

Version History

v1.3.2

v1.3.1

v1.3.0

v1.2.5

v1.2.4

v1.2.3

v1.2.2

v1.2.1

v1.2.0

v1.1.0

v1.0.0