From 043c7264bf222ff720d5959a155e77a99c4bdf04 Mon Sep 17 00:00:00 2001 From: Trowbridge Date: Tue, 25 Feb 2020 10:56:18 -0500 Subject: [PATCH] various changes --- changes.frm | 27 ++++---- changes.frx | Bin 3096 -> 3096 bytes fpvt.frx | Bin 21016 -> 21016 bytes handler.bas | 191 ++++++++++++++++++++++++++-------------------------- months.cls | 24 +++---- 5 files changed, 123 insertions(+), 119 deletions(-) diff --git a/changes.frm b/changes.frm index 6bd11e3..0c8f477 100644 --- a/changes.frm +++ b/changes.frm @@ -4,7 +4,7 @@ Begin {C62A69F0-16DC-11CE-9E98-00AA00574A4F} changes ClientHeight = 7785 ClientLeft = 120 ClientTop = 465 - ClientWidth = 17145 + ClientWidth = 16710 OleObjectBlob = "changes.frx":0000 StartUpPosition = 1 'CenterOwner End @@ -13,7 +13,7 @@ Attribute VB_GlobalNameSpace = False Attribute VB_Creatable = False Attribute VB_PredeclaredId = True Attribute VB_Exposed = False -Private x As Variant +Private X As Variant Private Sub cbCancel_Click() @@ -23,9 +23,6 @@ End Sub Private Sub cbUndo_Click() - If Not MsgBox("Permanently delete these changes?", vbOKCancel) Then - Exit Sub - End If Call Me.delete_selected @@ -37,7 +34,7 @@ Private Sub lbHist_Change() For i = 0 To Me.lbHist.ListCount - 1 If Me.lbHist.Selected(i) Then - Me.tbPrint.value = x(i, 7) + Me.tbPrint.value = X(i, 7) Exit Sub End If Next i @@ -52,9 +49,6 @@ Private Sub lbHist_KeyUp(ByVal KeyCode As MSForms.ReturnInteger, ByVal Shift As Select Case KeyCode Case 46 - If Not MsgBox("Permanently delete these changes?", vbOKCancel) Then - Exit Sub - End If Call Me.delete_selected Case 27 Call Me.Hide @@ -62,17 +56,24 @@ Private Sub lbHist_KeyUp(ByVal KeyCode As MSForms.ReturnInteger, ByVal Shift As End Sub + + +Private Sub tbPrint_Change() + +End Sub + + Private Sub UserForm_Activate() Dim fail As Boolean 'x = handler.list_changes("{""user"":""" & Application.UserName & """}", fail) - x = handler.list_changes("{""quota_rep_descr"":""" & Sheets("data").Cells(2, 5) & """}", fail) + X = handler.list_changes("{""quota_rep_descr"":""" & Sheets("data").Cells(2, 5) & """}", fail) If fail Then Me.Hide Exit Sub End If - Me.lbHist.list = x + Me.lbHist.list = X End Sub @@ -83,14 +84,14 @@ Sub delete_selected() Dim fail As Boolean Dim proceed As Boolean - If Not MsgBox("Permanently delete these changes?", vbOKCancel) Then + If MsgBox("Permanently delete these changes?", vbOKCancel) = vbCancel Then Exit Sub End If For i = 0 To Me.lbHist.ListCount - 1 If Me.lbHist.Selected(i) Then - Call handler.undo_changes(x(i, 6), fail) + Call handler.undo_changes(X(i, 6), fail) If fail Then MsgBox ("undo did not work") Exit Sub diff --git a/changes.frx b/changes.frx index bb4204b4154941cb870b5fb8e92b81c45c263c25..2297af74342e6f396d2c35b58280abd0930103c3 100644 GIT binary patch delta 96 zcmbOsF+)Pg$BBc1frkMO%$zm~6|t}_n7HQh=hvINSXMDJDHl&R@}3q~dehRxhuyi5QiRTU8c delta 97 zcmbOsF+)Pg$BBc1frkMOUOI0SDq>+1xVzNM|M})FmQ~D5N@bJHIBXa>CKq$4NHZ`n rNiZlfGBkj6NP9G_VFJ=Q@(c`Crjw&M^j15FtyNhqrB0efo!TBg6dvMeT-9*^S@Z8&2ArJSS|2g-3{Lb&3 z|GjdJU%AHDj|lnT%Lc+?R74r(L>3=KoY?0Ln)2>w5H`(;0r@(nqc*I{D6%;P-^&C^ z8~Q9M&T!0fdOu^#!|rg#1Y?&aXw|uSxH? z?myP+*4f+Z2F2ZL(mU?^|Ks?t=KfwcC8oZoSiM~fMoa};2|tG13si99 z1@`#IybVuw5MRZIu%!;__u>UEE4g{BPrPgtq2#`EDHq89gt(96a2}u&C zwUiGrWf*J8_e6XJBkE1syC2oNva+<)1?j`r$2DAyoHW7g05@}+KH+FY8ZFmShj2@a zQ}pK1kZ4tj(>X_&HJHgHIhahET?}9?oh7oik|TJScF@V1IZlDaOh8s!MSVF_H&gzu z<+^F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