mirror of
https://github.com/KeymonSoft/AdditionalLibs.git
synced 2026-04-19 04:09:19 +00:00
Commit inicial
This commit is contained in:
8
B4A/Snippets/beginTransaction.txt
Normal file
8
B4A/Snippets/beginTransaction.txt
Normal file
@@ -0,0 +1,8 @@
|
||||
Starter.skmt.BeginTransaction
|
||||
For Each records() As Object In $result$.Rows
|
||||
Log($"COL: ${$result$($result$.Columns.Get("$dbCol$"))}, VALUE: ${records($result$.Columns.Get("$dbCol$"))}"$)
|
||||
Dim $dbCol$ As String = $result$($result$.Columns.Get("$dbCol$"))
|
||||
Starter.skmt.ExecNonQuery2($"$sql_statement$"$)
|
||||
Next
|
||||
Starter.skmt.TransactionSuccessful 'Si no se pone TransactionSuccessful no se escribe NADA!!
|
||||
Starter.skmt.EndTransaction
|
||||
8
B4A/Snippets/case.txt
Normal file
8
B4A/Snippets/case.txt
Normal file
@@ -0,0 +1,8 @@
|
||||
Select $var$
|
||||
Case $val1$
|
||||
$do_something1$
|
||||
Case $val2$
|
||||
$do_something2$
|
||||
Case Else
|
||||
$do_something3$
|
||||
End Select
|
||||
1
B4A/Snippets/createMap.txt
Normal file
1
B4A/Snippets/createMap.txt
Normal file
@@ -0,0 +1 @@
|
||||
Private $var$ As Map = CreateMap("$par1$":$val1$, "$par2$":$val2$)
|
||||
3
B4A/Snippets/csBuilder.txt
Normal file
3
B4A/Snippets/csBuilder.txt
Normal file
@@ -0,0 +1,3 @@
|
||||
Dim cs As CSBuilder
|
||||
cs.Initialize
|
||||
$var$ = cs.Color(Colors.red).append(elTexto).Popall
|
||||
1
B4A/Snippets/execNonQuery.txt
Normal file
1
B4A/Snippets/execNonQuery.txt
Normal file
@@ -0,0 +1 @@
|
||||
Starter.skmt.ExecNonQuery($"$sql_sattement$"$)
|
||||
1
B4A/Snippets/execQuery.txt
Normal file
1
B4A/Snippets/execQuery.txt
Normal file
@@ -0,0 +1 @@
|
||||
$cursor$ = Starter.skmt.ExecQuery("$sql_statement$")
|
||||
4
B4A/Snippets/for.txt
Normal file
4
B4A/Snippets/for.txt
Normal file
@@ -0,0 +1,4 @@
|
||||
'Iterates with respect to keys in a map.
|
||||
For Each $varName$ As String In $mapName$.Keys
|
||||
$end$
|
||||
Next
|
||||
6
B4A/Snippets/logJobDone.txt
Normal file
6
B4A/Snippets/logJobDone.txt
Normal file
@@ -0,0 +1,6 @@
|
||||
For Each records() As Object In $resultado$.Rows
|
||||
LogColor($"====== ${$resultado$.Tag} - REGISTROS = ${$resultado$.Rows.Size}"$, Colors.RGB(215,37,0))
|
||||
For Each k As String In $resultado$.Columns.Keys
|
||||
LogColor(k & " = " & records($resultado$.Columns.Get(k)), Colors.RGB(215,37,0))
|
||||
Next
|
||||
Next
|
||||
8
B4A/Snippets/select.txt
Normal file
8
B4A/Snippets/select.txt
Normal file
@@ -0,0 +1,8 @@
|
||||
Select $var$
|
||||
Case $val1$
|
||||
$do_something1$
|
||||
Case $val2$
|
||||
$do_something2$
|
||||
Case Else
|
||||
$do_something3$
|
||||
End Select
|
||||
3
B4A/Snippets/while.txt
Normal file
3
B4A/Snippets/while.txt
Normal file
@@ -0,0 +1,3 @@
|
||||
Do While $condicion$
|
||||
$end$
|
||||
Loop
|
||||
Reference in New Issue
Block a user