Generates a random "Lorem ipsum" text to temporarily populate a control with text, for example. This text does not contain any accents.
// Fill an edit control with a 200-word "Lorem ipsum" text
// that will be displayed in the back cover of a book
// Generate the 200-word text
sCoverText is string = GenerateLorem(200)
// Display text in the Edit control
EDT_cover = sCoverText
Syntax
<Result> = GenerateLorem(<Number of words> [, <Seed>])
<Result>: Character string
- Generated text.
- Empty string ("") if the number of words specified is 0.
<Number of words>: Integer
Number of words to generate. If this number is 0, the text returned will be an empty string ("").
<Seed>: Integer
Used to change the generated text.
For each value of this parameter, a unique text is generated.
If this parameter is not specified, the generated text will be different each time the function is called.