Let your Delphi program support external parameters

xiaoxiao2021-03-06  20

Procedure TFORM1.FormCreate (Sender: TOBJECT);

VARI: Integer; for i: = 1 to Paramcount Dobeginif Lowercase (paramstr (i)) = 'Beep' Thenbeepelse IF LowerCase (paramstr (i)) = 'exit' theApplication.terminate; end; end;

转载请注明原文地址:https://www.9cbs.com/read-39697.html

New Post(0)