-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgetID.bas
More file actions
30 lines (25 loc) · 755 Bytes
/
getID.bas
File metadata and controls
30 lines (25 loc) · 755 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Attribute VB_Name = "getID"
Option Explicit
Public gSID As String
Public gUID As String
Public gTXID As String
Public gActiveID As String
Public Sub getNSSH()
sql = "select uid from customer where email = '" & Login.vkTextBox1.Text & "' "
Set rs = bridge.Execute(sql)
gSID = rs.Fields("uid").Value
End Sub
Public Sub getActiveIDSSH()
sql = "select item_id from ssh_item_menu where ssh_server = '" & PaketSSH.Combo1.Text & "' "
Set rs = bridge.Execute(sql)
gActiveID = rs.Fields("item_id").Value
End Sub
Public Sub getUID()
sql = "select MAX(uid) from customer"
Set rs = bridge.Execute(sql)
End Sub
Public Sub getTXID()
sql = "select tx_id from trx order by tx_id desc limit 1"
'sql = "select MAX(tx_id) from trx"
Set rs = bridge.Execute(sql)
End Sub