ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Standard functions / Windows functions / Miscellaneous WINDEV functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
GenerateLorem (Function)
In french: GénèreLorem
Generates a random "Lorem ipsum" text to temporarily populate a control with text, for example. This text does not contain any accents.
New in version 2025
WEBDEV - Browser code This function is now available in browser code.
Example
// 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.
New in version 2025
WEBDEV - Browser code This parameter is not supported. The text generated is different each time the function is called.
Component: wd300std.dll
Minimum version required
  • Version 26
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 10/23/2024

Send a report | Local help