krutou Posted December 8, 2024 Posted December 8, 2024 Just wanted to point out that the StringFormat documentation has an example that is completely wrong. Not only does it use PrintFormat, which is not a real AutoIt function, but the order of the parameters in the example is also wrong. The example shows the $var first before the "format control", whereas StringFormat is "format control" first, then $var1, $var2, ... According to the Wayback Machine, the parameter order has been wrong since Feb 20, 2014...
Werty Posted December 8, 2024 Posted December 8, 2024 The PrintFormat() function is at the bottom of the example... https://www.autoitscript.com/autoit3/docs/functions/StringFormat.htm Func PrintFormat($vVar, $sFormat, $sExplan, $iTab = 0) ConsoleWrite('"' & $sFormat & '" on ' & $vVar & @TAB & ' => ' & StringFormat($sFormat, $vVar)) If $iTab Then ConsoleWrite(@TAB) ConsoleWrite(@TAB & " ; " & $sExplan & @CRLF) EndFunc ;==>PrintFormat ..where it uses stringformat with format first. Musashi 1 Some guy's script + some other guy's script = my script!
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now