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 61-70 of 300 results.
IDPlCodelangPlGroupPlItemTitleCode 
 
41JavaStringsString nach einem Teilstring durchsuchenString fullstring = new String("This is my string"); if (fullstring.contains("my")) { // I found it!! } 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
133VB.NETStringsString nach einem Teilstring durchsuchenDim longStr = "This is a long string" Dim searchFor = "long" position = InStr( longStr, searchFor )View Update Delete
138T-SQLDatenbankString nach einem Teilstring durchsuchen-- Find characters which are also special characters for search terms, e.g. % or _ -- see also: http://msdn.microsoft.com/en-us/library/ms179859%28v=sql.105%29.aspx SELECT * FROM table_1 WHERE column_1 LIKE '%!_%' ESCAPE '!' -- Find results which includes the character "_". The escape character is defined as "!"View Update Delete
161PythonStringsString nach einem Teilstring durchsuchen# http://www.tutorialspoint.com/python/string_find.htm # this function is case sensitive fullstring = "This is my string" searchFor = "my" startPosition = fullstring.find(searchFor, 0, len(fullstring)) # startPosition will have 8 if startPosition>=0: print "I found it!" startPosition = fullstring.upper().find(searchFor.upper()) # case insensitiveView Update Delete
229PowerShellStringsString nach einem Teilstring durchsuchen# See also a good hint with explanation between like and contains: # http://windowsitpro.com/blog/powershell-contains $fullstring = "This is my string"; if ($fullstring -like "*my*") { Write-Host "found" -ForegroundColor Green; } else { Write-Host "nope" -ForegroundColor Red; }View Update Delete
237MySQLStringsString nach einem Teilstring durchsuchenSELECT myString ,locate('#',myString,5) AS findPosition -- Result is: 8 ,left(myString,locate('#',myString,2)-1) AS ExtractedString -- Result is: abc ,left(myString,locate('#',myString,5)) AS ExtractedString -- Result is: abc#def# FROM ( SELECT 'abc#def#ghj' AS myString ) dummyStringView Update Delete
42PHPHTTP Form SubmitPOST Werte abfragenif ($_POST["submitName"]=="submitValue") { echo "Button submitValue gedrückt"; }View Update Delete
43Bash ScriptSonstigesKopfzeile sh-Datei#!/bin/sh # Einfaches Beispiel ... View Update Delete
44DelphiFilehandlingDatei auf dem Betriebssystem ausführenprocedure TForm1.MenuDummy1Click(Sender: TObject); var ExeName : array[0..255] of char; myFile : String; begin myFile:='winword.exe'; Showmessage('Starte: ' + myFile); StrPCopy(ExeName, myFile); ShellExecute(MainForm.Handle, 'open', ExeName, nil, nil, SW_SHOWNORMAL); // Drucken geht dann so (siehe auch Dateitypen im Windows Explorer): ShellExecute(MainForm.Handle, 'print', ExeName, nil, nil, SW_SHOWNORMAL); end;View Update Delete