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 261-270 of 300 results.
IDPlCodelangPlGroupPlItemTitleCode 
 
112AndroidGUI, DialogeHinweis-Dialog AlertDialog.Builder builder = new AlertDialog.Builder(this); builder.setMessage("Hinweis") .setTitle("Hinweis-Meldung") .setNeutralButton("OK", new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int which) { dialog.cancel(); } }); AlertDialog alert = builder.create(); alert.show();View Update Delete
113AndroidGUI, DialogeAbfrage-Dialog// siehe auch : http://developer.android.com/guide/topics/ui/dialogs.html AlertDialog.Builder builder = new AlertDialog.Builder(this); builder.setMessage("Are you sure you want to exit?") .setCancelable(false) .setPositiveButton("Yes", new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int id) { WhatHaveYouDoneActivity.this.finish(); } }) .setNegativeButton("No", new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int id) { dialog.cancel(); } }); AlertDialog alert = builder.create(); alert.show();View Update Delete
114AndroidGUI, ComboBoxComboBox füllen public void fillSpn() { String dummyarr[]; Spinner spn1 = (Spinner) findViewById(R.id.spn1); // Dummy Data dummyarr = new String[5]; int i; for (i=0;i<5;i++) { dummyarr[i]=String.valueOf(i); } ArrayAdapter adapter = new ArrayAdapter(this, android.R.layout.simple_spinner_dropdown_item, dummyarr); spn1.setAdapter(adapter); }View Update Delete
89C#KontrollstrukturenSwitch / Case Anweisung int i = 1; switch (i) { case 1: Console.WriteLine("Fall 1"); break; case 2: Console.WriteLine("Fall 2"); break; default: Console.WriteLine("Standard Fall"); break; }View Update Delete
118T-SQLKontrollstrukturenSwitch / Case Anweisung -- http://msdn.microsoft.com/de-de/library/ms181765.aspx USE AdventureWorks2008R2; GO SELECT ProductNumber, Category = CASE ProductLine WHEN 'R' THEN 'Road' WHEN 'M' THEN 'Mountain' WHEN 'T' THEN 'Touring' WHEN 'S' THEN 'Other sale items' ELSE 'Not for sale' END, Name FROM Production.Product ORDER BY ProductNumber; GOView Update Delete
268T-SQLEncoding / DecodingChecksummeSELECT [CHECKSUM_1] = CHECKSUM(Column1, Column2) FROM TableAView Update Delete
125PythonEncoding / DecodingDatei nach Base64 encodierenmyfile = 'myDoc.pdf' ReturnValue = open(myfile).read().encode("base64") # in ReturnValue ist nun der Base64-StringView Update Delete
126C#Encoding / DecodingDatei nach Base64 encodierenmyfile = "myPDF.pdf"; string ReturnValue = ""; if (System.IO.File.Exists(myfile)) { using (FileStream BinaryFile = new FileStream(myfile, FileMode.Open)) { BinaryReader BinRead = new BinaryReader(BinaryFile); byte[] BinBytes = BinRead.ReadBytes(Convert.ToInt32(BinaryFile.Length)); ReturnValue = Convert.ToBase64String(BinBytes); BinaryFile.Close(); } }View Update Delete
191PythonEncoding / Decodingmd5-Hash erzeugen# https://docs.python.org/2/library/hashlib.html import hashlib a = "hello world" b = 0.1 md5str = hashlib.md5(str(b) + a).hexdigest() View Update Delete
127MumpsKonsolenverwaltungEinlesen KonsoleneingabeWRITE !,"What's your name? " READ yournameView Update Delete