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 251-260 of 300 results.
IDPlCodelangPlGroupPlItemTitleCode 
 
33MumpsStringsString nach Delimenter zerlegenmyString="A;B;C;D;E" Write !,$Piece(myString,";",3) // gibt C ausView Update Delete
124PL/pgSQLStringsString nach Delimenter zerlegenSELECT split_part('A;B;C;D;E',';',2) -- Result: BView Update Delete
144JavaScriptStringsString nach Delimenter zerlegenmyTestString = "abc;def;ghj/1"; splittedString = myTestString.split(";"); elementTwo = splittedString[1]; // => defView Update Delete
186PythonStringsString nach Delimenter zerlegenmyString = "A;B;C;D;E" myPieces = myString.split(";") # erzeugt ein Arrey mit den einzelnen Zeichen print myPieces[2] # gibt C ausView Update Delete
236MySQLStringsString nach Delimenter zerlegen-- Not a real solution, but a workaround if you have rights to create a function -- see: http://blog.fedecarg.com/2009/02/22/mysql-split-string-function/ -- same problem with MSSQL. CREATE FUNCTION SPLIT_STR( StringToBeSplitted VARCHAR(255), delimiter VARCHAR(12), position INT ) RETURNS VARCHAR(255) RETURN REPLACE(SUBSTRING(SUBSTRING_INDEX(StringToBeSplitted, delimiter, position), LENGTH(SUBSTRING_INDEX(StringToBeSplitted, delimiter, position -1)) + 1), delimiter, ''); SELECT SPLIT_STR(string, delimiter, position);View Update Delete
30JavaZahlen/RechnenNachkommastellenimport java.text.*; // mindestens 1 Vorkommastelle, genau 2 Nachkommastellen DecimalFormat f = new DecimalFormat("#0.00"); double d1 = 1234.4843; double d2 = 0.2; System.out.println(f.format(d1)); System.out.println(f.format(d2)); // Ausgabe d1=1234,4843 <--- man beachte das Komma! // Ausgabe d2=0,2View Update Delete
28DelphiProzeduren, Funktionen, MethodenVerarbeitung gezielt beendenprocedure TForm1.Proz(Sender: TObject); begin If 1<>2 Then exit; ShowMessage('Test'); end;View Update Delete
258PowerShellExceptionsTry Catch Except$DirectoryName = "C:\Temp\rename_test_new" Try { $newDirectoryName = $DirectoryName -replace "_new", "_old" Rename-Item -path $DirectoryName -newName $newDirectoryName } Catch { Write-host "Error. Exit!" Write-Error $_.Exception.Message exit # Wenn das Script hart beendet werden soll, dann kann exit verwendet werden } View Update Delete
26DelphiExceptionsTry Catch Excepttry // Code except // Handle the exception here... end; View Update Delete
160PythonExceptionsTry Catch Excepttry: print 1/0 except Exception as e: print traceback.extract_stack() else: print "this is the else block" finally: print "finally clean up or something"View Update Delete