Changeset 119 for trunk/NewView/CmdLineParameterUnit.pas
- Timestamp:
- Apr 26, 2007, 1:55:46 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/NewView/CmdLineParameterUnit.pas
r109 r119 55 55 56 56 FUNCTION handleSwitchWithValue(const aSwitchString : String; const aSwitch : String; var aValue : String) : Boolean; 57 PROCEDURE parseSwitch( aSwitchString : String);57 PROCEDURE parseSwitch(const aSwitchString : String); 58 58 PROPERTY getParsedFileNames : AnsiString read parsedFileNames; 59 59 PROPERTY getParsedSearchText : AnsiString read parsedSearchText; … … 83 83 // returns a string containing the whole 84 84 // command line parametes 85 // this as function has a problem with returning an AnsiString 86 // ! you have to provide an AnsiString (normaly an empty one) 87 PROCEDURE nativeOS2GetCmdLineParameter(aResult : AnsiString); 85 FUNCTION nativeOS2GetCmdLineParameter : AnsiString; 88 86 89 87 … … 523 521 524 522 525 Procedure TCmdLineParameters.parseSwitch( aSwitchString : String);523 Procedure TCmdLineParameters.parseSwitch(const aSwitchString : String); 526 524 var 527 525 tmpCurrentChar : char; … … 620 618 621 619 622 PROCEDURE nativeOS2GetCmdLineParameter(aResult : AnsiString);620 FUNCTION nativeOS2GetCmdLineParameter : AnsiString; 623 621 VAR 624 622 tmpPtib : PTIB; // thread information block … … 638 636 tmpParams := tmpCmd + StrLen(tmpCmd) + 1; 639 637 640 AnsiSetString(aResult, tmpParams, StrLen(tmpParams)); 638 result := ''; 639 AnsiSetString(result, tmpParams, StrLen(tmpParams)); 641 640 END; 642 641 END.
Note:
See TracChangeset
for help on using the changeset viewer.