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.
-- See also: http://msdn.microsoft.com/de-de/library/ms175976(v=sql.105).aspx
-- !!
-- TRY-CATCH cannot be used for all operations/situations in T-SQL.
-- Be careful and refer to the link above for details
-- !!
BEGIN TRY
SELECT 1/0;
END TRY
BEGIN CATCH
SELECT
ERROR_NUMBER() AS ErrorNumber
,ERROR_SEVERITY() AS ErrorSeverity
,ERROR_STATE() AS ErrorState
,ERROR_PROCEDURE() AS ErrorProcedure
,ERROR_LINE() AS ErrorLine
,ERROR_MESSAGE() AS ErrorMessage;
END CATCH;
' Die Datenbank-Tabelle enthält die Felder titel und id
Dim dt As Data.DataTable = myDataTable ' Die DataTable wurde bereits gefüllt aus der Datenbank...
comboBox1.DataSource = dt
comboBox1.DisplayMember = "titel" ' Der angezeigte Wert für den Benutzer
comboBox1.ValueMember = "id" ' Der Wert, den der Benutzer auswählt (id)
Dim ausgewaehlteIdAusComboBox As String
ausgewaehlteIdAusComboBox=comboBox1.SelectedValue.ToString ' enthält die ausgewählte id
22
VB.NET
GUI, Tabelle
Tabellenselektion
' DataGridView
' Man bekommt den Index der Column und der Row
Dim counter As Integer
For counter = 0 To (DataGridView1.SelectedCells.Count - 1)
MessageBox.Show(DataGridView1.SelectedCells(counter).ColumnIndex.ToString & vbCr & DataGridView1.SelectedCells(counter).RowIndex.ToString)
Next
20
PHP
Variablen
Var-Dump einer Variable
echo "<pre>";
var_dump($test);
echo "</pre>";
21
Mumps
Variablen
Var-Dump einer Variable
ZW test
S A(1,2)="Inhalt"
ZWrite A
Set ^GLOBAL1("sub1","sub2")="content"
ZW ^GLOBAL1
19
Caché
Caché-Spezifisch, Namespaces
Prüfen ob ein Namespace existiert
If $ZUtil(90,10,"SAMPLES")
{
ZNSpace "SAMPLES"
}
18
Caché
Textdateien
Textdatei zeilenweise auslesen
Set stream=##class(%FileCharacterStream).%New()
Set stream.Filename="c:\myfile.txt"
While 'stream.AtEnd
{
Set line=stream.ReadLine()
; Process the line here
}
15
PHP
Variablen
Existenz der Varible abfragen
$status=isset($test);
if ($status) echo "Variable existiert: $test";
if (!isset($test2)) echo "Variable test2 existiert nicht!";