Jump to content

Recommended Posts

Posted

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...

Posted

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.

Some guy's script + some other guy's script = my script!

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...