Manage PlItems

You may optionally enter a comparison operator (<, <=, >, >=, <> or =) at the beginning of each of your search values to specify how the comparison should be done.

Advanced Search
Displaying 71-80 of 300 results.
IDPlCodelangPlGroupPlItemTitleCode 
 
71DelphiSchleifenFor-Schleifefor i := 0 to 4 do Writeln(i); View Update Delete
72DelphiStringsReplaceprocedure foo() var str1: String; begin str1:=StringReplace('Hello World...','...',[rfReplaceAll, rfIgnoreCase]); // Output of str1 => "Hello World" endView Update Delete
73DelphiWindows - Prompt ErrorlevelErrorlevel setzen//... var errorlevel: Integer; begin if cond1=cond2 then errorlevel:=0; if cond1<>cond2 then errorlevel:=1; halt(errorlevel); end.View Update Delete
74DelphiTypenkonvertierungString in Integer konvertierenMyInt:=StrToInt('125');View Update Delete
77DelphiFilehandlingApplikations-/Script-Verzeichnis ermittelnAppPath:=ExtractFilePath(Application.Exename);View Update Delete
78DelphiAnwendungskonfigurationsdateienINI-Datei lesenuses IniFiles; var iniMem: TMemIniFile; // ini-File (ready only one time) // Load the ini-information once - maybe at startup function TMyForm.LoadIniFile:boolean; var SL : TStringList; return : Boolean; iniFile : String; begin iniFile:='myFormConfig.ini'; return:=true; if not FileExists(ExtractFilePath(Application.Exename)+iniFile) then begin MessageDlg('ini-File not found!', mtError, [mbOK], 0); return:=false; end; if not return then halt; iniMem:=TMemIniFile.Create(''); SL:=TStringList.Create; SL.LoadFromFile(ExtractFilePath(Application.Exename)+iniFile); iniMem.SetStrings(SL); LoadIniFile:=return; end; procedure TMyForm.DoThis; begin ShowMessage(iniMem.ReadString('Section','Attribute','Default-Value')); end;View Update Delete
116DelphiStringsString nach einem Teilstring durchsuchensearchFor:='this'; text:='this is a simple text'; if pos(searchFor,text)>0 then begin ShowMessage('found'); end;View Update Delete
177DelphiFilehandlingPrüfen ob Datei existiertprocedure TForm1.CheckIfFileExists(); var filePath : String; begin filePath:='C:\User\myUser\text.txt'; if FileExists(filePath) then begin ShowMessage('There it is! ;-)'); end else begin ShowMessage('Whow, file is missing at this place :-('); end; end;View Update Delete
221DelphiStringsPosition eines Teilstrings findensearchFor:='simple'; text:='this is a simple text'; ShowMessage(IntToStr(pos(searchFor,text))); // 11View Update Delete
29JavaArrayArray definierenString[] ar = new String[] {"Satz1", "Satz2"};View Update Delete