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 11-20 of 300 results.
IDPlCodelangPlGroupPlItemTitleCode 
 
292Yii2Yii2-InternalPrüfen ob aktueller User ein Gast istuse Yii; if (! \Yii::$app->user->isGuest) { $result = "User is logged in. User is no guest" }View Update Delete
302Yii2SessionsWerte in Session speichern und lesen\Yii::$app->session->set('user.attribute',$value); \Yii::$app->session->get('user.some_attribute');View Update Delete
266MS Access VBAArrayDictionary Basics' empty dict Dim myDict As Dictionary Set myDict = New Dictionary ' some static values myDict.Add "key1", "value1" myDict.Add "key2", "valueY" myDict.Add "keyX", "value98" ' update a key programmatically myDict.Remove "key1" myDict.Add "key1", "new value" ' iterate Dim strKey As Variant Dim current_key As String Dim strValue As String For Each strKey In myDict.Keys() current_key = strKey strValue = myDict.Keys(strKey) Next ' Exists If myDict.Exists(strKey) Then Debug.Print "yes" End If ' get an specific item Dim subdict As String subdict = myDict.Keys("key2") # valueYView Update Delete
262MS Access SQLDatenbankCTAS-- Sollte die Zieltabelle (myDestinationTable) bereits vorhanden sein -- wird diese überschrieben (neue Strukturen werden übernommen) SELECT * INTO myDestinationTable FROM mySourceTableView Update Delete
272MS Access SQLDatenbankNULL Wert eines Feldes übersteuernSELECT FieldA ,Nz([FieldB,"This field is null") As FieldB_Nz FROM TableAView Update Delete
256PowerShellTextdateienTextDatei auslesen$myFilename = "file.txt" $fileContent = (Get-Content $myFilename)View Update Delete
257PowerShellSchleifenFor-Schleife$elements ="A;B;C" $elements.Split(";") | ForEach-Object { write-host $_ } Write-Host " - Next example -" $elements ="D;E;F" ForEach ($element in $elements.Split(";")) { Write-Host $element }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
259PowerShellStringsMultiline String Variable# In PowerShell such variables are called: Here-Strings $mySQLString = @" SELECT 1 FROM dbo.TestTable WHERE 1=1 "@ View Update Delete
267PowerShellArrayDictionary Basics# empty Hashtable $myDict = @{} # some static values $myDict.Add("key1", "value1") $myDict.Add("key2", "valueY") $myDict.Add("keyX", "value98") # update a key programmatically $myDict.Remove("key1") $myDict.Add("key1", "new value") # iterate Foreach ($key in $myDict.keys) { $strKey = $key $strValue = $Parameter[$key] } # Exists If ($myDict.ContainsKey("key1") -eq $true) { write-host "yes" } # get an specific item $subdict = $myDict("key2") # valueYView Update Delete