PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN

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.
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: wd270std.dll
Minimum version required
  • Version 26
This page is also available for…
Comments
Click [Add] to post a comment