From 019c83c34f51b67854e8176ac736c2852826568b Mon Sep 17 00:00:00 2001 From: Trowbridge Date: Thu, 14 Mar 2019 14:42:10 -0400 Subject: [PATCH] export v0.5 content --- TheBigOne.cls | 10 +++++ fpvt.frx | Bin 19992 -> 19992 bytes openf.frx | Bin 3096 -> 3096 bytes pivot.cls | 107 ++++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 117 insertions(+) create mode 100644 pivot.cls diff --git a/TheBigOne.cls b/TheBigOne.cls index eb2f194..3b8b86e 100644 --- a/TheBigOne.cls +++ b/TheBigOne.cls @@ -1,3 +1,12 @@ +VERSION 1.0 CLASS +BEGIN + MultiUse = -1 'True +END +Attribute VB_Name = "TheBigOne" +Attribute VB_GlobalNameSpace = False +Attribute VB_Creatable = False +Attribute VB_PredeclaredId = False +Attribute VB_Exposed = False Option Explicit Private ADOo_con() As ADODB.Connection @@ -2364,3 +2373,4 @@ Public Function ARRAYp_get_range_string(ByRef r As range) As String() End Function + diff --git a/fpvt.frx b/fpvt.frx index 7b4c7f56c9aecde8a71fe840ab697fe5345164b7..222c151140b7d2d212c35aa743d112cecf162d47 100644 GIT binary patch delta 889 zcmZuuT}YEr7(VBG>u0FbNkh~6+FF=1T;JAyzD?bxF@H9frcQAbZ0bVkvspHc==2<2 zm}hhg9#AgGHr-UZWMOyGD^E6nJSoN1gnau}8%Q($H0TQiu}* zUgu$WRQZ}Y6lgas(E*-c)u=+DPIHIQhJDY>rYx?SKMQ?FMj{mlfQDOMi7W}A- zz-)avY})GKyX^$H0|_{zDup%s9hM|K=15bhmhev2Qx_CUVs=WBM4k0NMr8PQx?xw> z=0UwEX47U5z?!Q|K*u1tEAV+ck^#otXs|C1lkR(HsmNgfS4|#P{+g=-Nf5qRQ<2Ge zz4j7ieKJgV9J|nhJ?}hDJZJ4*@S)RQ?`?r332b=7!qZ3^T)ta)TkBjz-@ZM!b$h7i zr43;Qo3bIJ_Flf2pTRe<`Sy#`sQT{ZsX1^6# zt7npxSY1^RA{?Pi`~x)TN(k*nFS@8MyAh)3?3)#=oAVx?_dU=1yw7{4rs>o)ott5F z9#2^gBZM!qW&Mtg=7Py_9!(vkX;mvnCdb!TX#&z4My0=ymO^yTXcD5&NJ4ltV_9by zBD)9~3#vnx`Ub8N-kE*iKdPLhhtTIHAv~J<{hz391qYLgpf@HVJZjvew2xmf{n9Yt*VSz*lfzQ1k z4-4NgCqc7yk%oC{QH_q4;*70DA}Ya4n^lXew$D=UlX+AzBOaHAFr=7ZkWEZL!?J@q z@xIc<>@q&dEn1yyZ%xF&X{^~*8iU_4L%Y%G&E!8FS13xH#duaa9w(v-Cggh7Nbv1g zKF$U9Va<7qMQl9miitwmOl34FJ~3*O>=%!M0t-_+(&aqb164jQ?xH=`l#teQuDVs5 z?RMFO=)2oxhEkqF2T@&qQF?JU#uv)-g>QVr+e`7w@5PGWgLjqbcrJSw`y)a|hwo;* z9GkubolO+m7AtOjzr(Dd8vTmS}uIW0ih{ot>ce zqbXt+ZQ+5-5piIn-pE|!L7*f(+^1?CO!=lZbs!ecV79CnRl2?WQ6P;<>PQ5y8j7e( eqyN%yirP>TEEZxqg4e`f`4}`xvn?E3LDO&E5-be> diff --git a/openf.frx b/openf.frx index 09df77ee4ef1da4f690c547cec1e82022632fb37..740c9ffc2a336bfea2c054e02aad152a2ee04d9c 100644 GIT binary patch delta 55 zcmbOsF+*ZQ3kz$*vS^X1n>$%vGRuEsU{GOr%E-XL%D~XT#K6E{0mKXpk_^d7F2TNx Kn 1 Then handler.sql = handler.sql & vbCrLf & "AND " + If i <> 1 Then handler.jsql = handler.jsql & vbCrLf & "," + handler.sql = handler.sql & rd(piv_pos(rd, i)).Name & " = '" & ri(i).Name & "'" + jsql = jsql & """" & rd(piv_pos(rd, i)).Name & """:""" & ri(i).Name & """" + handler.sc(i - 1, 0) = rd(piv_pos(rd, i)).Name + handler.sc(i - 1, 1) = ri(i).Name + Next i + + + scenario = "{" & handler.jsql & "}" + + Call handler.load_config + Call handler.load_fpvt + + +nopiv: + +End Sub + +Function piv_pos(list As Object, target_pos As Long) As Long + + Dim i As Long + + For i = 1 To list.Count + If list(i).Position = target_pos Then + piv_pos = i + Exit Function + End If + Next i + 'should not get to this point + +End Function + +Function piv_fld_index(field_name As String, ByRef pt As PivotTable) As Integer + + Dim i As Integer + + For i = 1 To pt.PivotFields.Count + If pt.PivotFields(i).Name = field_name Then + piv_fld_index = i + Exit Function + End If + Next i + +End Function + + + + + +