Debian Codegraph @

tests/inputs/JetCar.cls

raw
1 ' https://github.com/badcodes/vb6.git NextPage/JetCar.cls
2
3 VERSION 1.0 CLASS
4 BEGIN
5 MultiUse = -1 'True
6 Persistable = 0 'NotPersistable
7 DataBindingBehavior = 0 'vbNone
8 DataSourceBehavior = 0 'vbNone
9 MTSTransactionMode = 0 'NotAnMTSObject
10 END
11 Attribute VB_Name = "JetCar"
12 Attribute VB_GlobalNameSpace = False
13 Attribute VB_Creatable = True
14 Attribute VB_PredeclaredId = False
15 Attribute VB_Exposed = True
16
17 Option Explicit
18
19 Public Sub AddUrlList(params)
20 Dim l As Long
21 Dim pCount As Long
22
23 Dim fTmp As String
24
25 Do
26 fTmp = BuildPath(Environ$("temp"), "NextPage." & Int(Rnd(Time) * 1000 + 1))
27 Loop While PathExists(fTmp)
28
29 If PathExists(fTmp) Then Kill fTmp
30
31 Open fTmp For Output As #10
32
33 pCount = UBound(params)
34
35 For l = 0 To pCount
36 Print #10, params(l)
37 Next
38
39 Close #10
40
41 Shell BuildPath(App.Path, "NextPage.exe") & " " & fTmp, vbNormalFocus
42
43
44 'JetCarCatch.AddUrlList params
45 End Sub
46
47 Public Sub AddUrl(URL)
48
49
50 Dim fTmp As String
51 Do
52 fTmp = BuildPath(Environ$("temp"), "NextPage." & Int(Rnd(Time) * 1000 + 1))
53 Loop While PathExists(fTmp)
54 If PathExists(fTmp) Then Kill fTmp
55
56 Open fTmp For Output As #10
57 Print #10, URL
58 Close #10
59
60 Shell BuildPath(App.Path, "NextPage.exe") & " " & fTmp, vbNormalFocus
61
62 End Sub