929 new features in WINDEV, WEBDEV and WINDEV Mobile 2024

114 N e w f e a t u r e W D W B WM DNS QUERY In version 2024, you can easily run DNS queries with the new DN- SQuery function: • IP associated with a domain name • sub-domains associated with a domain • information on records: A, AAAA, CNAME, PTR... • search on a particular DNS or on the first one found Benefit of this new feature in version 2024 : No need to use APIs 115 N e w f e a t u r e W D W B WM USE ARRAYS FOR PROCEDURES THAT EXPECT MULTIPLE PARAMETERS In version 2024, the parameters of a procedure that expects dif- ferent parameters (and not an array), can be contained in an array that will be analyzed by the ArrayToParameters function to extract the parameters. This greatly simplifies the call to the procedure. Benefit of this new feature in version 2024 : Array analyzed automatically 116 N e w f e a t u r e W D W B WM NEW STRING DELIMITER: ` In addition to double quotes ( " ), the “grave accent” delimiter is now supported. The purpose of this separator is to avoid doubling double quotes, and to ensure that strings with [% can be used regardless of the options defined in a project. sHtmlCode is string = `<p style="color:red;">` Benefit of this new feature in version 2024 : Better readability 117 N e w f e a t u r e W D W B WM %, MODULO The Modulo operator now accepts the % operator as synonym. Benefit of this new feature in version 2024 : Useful for copying formulas from Stack Overflow. 118 N e w f e a t u r e W D W B WM “AND”, “OR” OPERATORS: STANDARD BEHAVIOR You can change the behavior of AND and OR operators to optimize evaluations. If the outcome of the condition can be determined by evaluating the first expression, the second expression will not be evaluated. You can choose this mode in the compilation options. All new projects will implement this behavior by default. Benefit of this new feature in version 2024 : Optimized evaluations 119 N e w f e a t u r e W D W B WM NEW TYPE: SIMPLIFIED NUMERIC FORMATTING A new type for formatting numbers is available: NumericFormat . The properties of this type can be used to specify the number of digits after the decimal point, separators, etc. A code wizard makes the task even easier. Example: PriceFormat is NumericFormat PriceFormat .DigitsAfterPoint = 2 PriceFormat .Prefix = "$" PriceFormat .DecimalSeparator = "." PriceFormat .ThousandSeparator = "," PriceFormat.Sign = nfsMinusIfNegative Price is string Price = NumericToString( 16945201.986 , PriceFormat) // Price contains “$16,945,201.99" Benefit of this new feature in version 2024 : Simplification GO FURTHER WI Continued from page 25 N e w f e a t u r e s i n W I ND E V 2 0 2 4 WE B D E V 2 0 2 4 W I ND E V Mo b i l e 2 0 2 4 28

RkJQdWJsaXNoZXIy NDQ0OA==