Tuto WEBDEV 25
434 Part 13: The WLanguage basics You also have the ability to assign a string variable with the content of a control handling strings. The following code is used to assign a string variable with the content of an edit control: LastName is string // Assign a string variable // with the content of EDT_LastName edit control LastName = EDT_LastName In addition to the main comparison operators, several powerful operators are used to manage the extractions and concatenations in advanced mode. Some examples: • " + ": To concatenate strings • " ~= ": To check the flexible equality Specific WLanguage functions are used to perform various operations: search, extraction, size, switch to uppercase characters, ... Examples: str is string str = "WEBDEV is a great tool" // Extract a sub-string from left Info(Left(str,6)) // Displays "WEBDEV" // Extract a sub-string from right Info(Right(str,4)) // Displays "tool" Remark The different WLanguage functions can be nested. A WLanguage function can be used as parameter of another WLanguage function. For example: Info(Middle(Left(str,13),8,2)) // Displays "is" See the help about the character strings and about the functions for handling character strings for more details.
Made with FlippingBook
RkJQdWJsaXNoZXIy NDQ0OA==