Just found out about the SysUtils.FindCmdLineSwitch Function
Posted by jpluimers on 2019/04/17
I learn new things every day. So today I learned about [WayBack] SysUtils.FindCmdLineSwitch Function, which was introduced in Delphi 4, but I was still messing with ParamCount/ParamStr loops.
It as not changed over time. The above docs are Delphi 2007, and these are some of the newer:
- [WayBack] SysUtils.FindCmdLineSwitch Function – Delphi 2009
- [Archive.is] SysUtils.FindCmdLineSwitch – XE API Documentation added a new overload
function FindCmdLineSwitch(const Switch: string; var Value: string; IgnoreCase: Boolean = True; const SwitchTypes: TCmdLineSwitchTypes = [clstValueNextParam, clstValueAppended]): Boolean; overload;
- [WayBack] System.SysUtils.FindCmdLineSwitch – RAD Studio API Documentation – Tokyo
–jeroen






Leave a comment