ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / Windows functions / Miscellaneous WINDEV functions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
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 2024
Android This function is now available for Android applications.
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.
Component: wd290std.dll
Minimum version required
  • Version 26
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/19/2023

Send a report | Local help