927 new features of WINDEV 27, WEBDEV 27 and WINDEV Mobile 27

107 N e w f e a t u r e W D W B WM NEW /= AND *= OPERATORS The /= and *= operators are introduced in this version. Just like the += and -= operators, they simplify source code. PROCEDURE Promo ( Price is currency, Discount is real) //Apply discount Price *= Discount RETURN Price Benefit provided by this new feature of version 27: More concise code 108 N e w f e a t u r e W D W B WM COMMENTS IN THE MIDDLE OF A LINE OF CODE: BETWEEN /* AND */ A new way to comment code is now available. /* indicates the beginning of the comment, and */ indicates the end of the comment, which can span over multiple lines. This syntax also allows you to comment out a section of code in the middle of a line! IF Customer . Email <> <C3>""</>C3> /* _and_ customer.VIP = true */ THEN Benefit provided by this new feature of version 27: Practical feature 109 N e w f e a t u r e W D W B WM MULTILINE STRINGS DEFINED BY QUOTATION MARKS " " Version 27 supports the " (quote) syntax, to make entering multiline strings easier. SubscriptionInfo is string = " Thank your for your susbscription. A confirmation email has been sent to your email address. If you haven't received it yet, click the following link: '%1'. " Benefit provided by this new feature of version 27: Write as many lines as needed... 110 N e w f e a t u r e W D W B WM LAMBDA CALLS, GETTER AND SETTER: OPTIMIZATIONS In version 27, lambda calls, property getters and setters are faster. Benefit provided by this new feature of version 27: Faster is definitively better 111 N e w f e a t u r e W D W B WM N++ AND ++N , N-- AND --N You already know the difference between the ++ operators placed before or after the variable. N++ increments the value after evaluating the expression, whereas ++N does it before. That changes everything! In version 27, both syntaxes are available: ++ and -- Benefit provided by this new feature of version 27: Yes, they are actually available 112 N e w f e a t u r e W D W B WM REGULAR EXPRESSIONS: FIND AND REPLACE Regular expressions are a very powerful concept, and allow for very concise code. In version 27, regular expressions are even more powerful. You can search for and even replace a string in another string, using a regular expression! All in one line of code. Two new WLangage functions are also introduced: Regex- Search and RegexReplace . Benefit provided by this new feature of version 27: More concise code 113 N e w f e a t u r e W D W B WM LUHN ALGORITHM: VERIFY OR CALCULATE THE CHECK DIGIT The Luhn algorithm is used to calculate the check digit of a credit card number, and to detect false numbers. Two WLanguage functions are introduced in version 27 to calculate and verify this check digit: LuhnCalculate and LuhnCheck . Benefit provided by this new feature of version 27: A widespread, reliable algorithm 114 N e w f e a t u r e W D W B WM PASSWORD SECURITY: PBKDF2 HASHING PBKDF2 is a very powerful hashing algorithm. Its main purpose is to securely hash data, especially pass- words. This type of hashing is also used to obtain a series of derived keys (passwords) from a password. The HashString and HashFile functions now accept the new PBKDF2 constant, which expects the salt, number of iter- ations and key size as parameters. Benefit provided by this new feature of version 27: Continues page 28... WINDEV 27 WEBDEV 27 WINDEV Mobile 27 New features 26

RkJQdWJsaXNoZXIy NDQ0OA==