Article View: comp.lang.basic.visual.3rdparty
Article #119VB 5 et dll activeX
From: Philippe Cazaux-Moutou
Date: Mon, 24 Nov 1997 00:00
Date: Mon, 24 Nov 1997 00:00
62 lines
2437 bytes
2437 bytes
Bonjour
j ai fait une DLL actveX, dans lequel j ai mis cette fonction qui marchait
tres bien avant,
maintenant ca plante a partir de
i_Form = Forms.Count - 1
il ne sait pls combien ou s il y a des forms
pourquoi ?
merci
voici le code
Public Function fu_InitGrid()
' affiche ou ote la grille dans les listes
Dim li_Grid As Integer
Dim li_ColCount As Integer
Dim i As Integer
Dim i_Boucle As Integer
Dim i_Form As Integer
Dim o_Object As Object
Dim ig_Grid As Variant
i_Form = Forms.Count - 1
For i_Boucle = 1 To i_Form
If UCase(TypeName(Forms(i_Boucle))) = "MDIFORM" Then
Else
For Each o_Object In Forms(i_Boucle)
If UCase(TypeName(o_Object)) = "DBGRID" Then
Set ig_Grid = o_Object
ig_Grid.RowDividerStyle = 1
li_ColCount = ig_Grid.Columns.Count - 1
For i = 0 To li_ColCount
ig_Grid.Columns(i).DividerStyle = 1
Next
ElseIf UCase(TypeName(o_Object)) = "SSDBGRID" Then 'Pour les
Sheridan
Set ig_Grid = o_Object
ig_Grid.DividerType = 3
End If
Next
End If
Next
Set o_Object = Nothing
Set ig_Grid = Nothing
End Function
--
_\\|//_
(-o-O-)
---------------------------------------ooO-(_)-Ooo---------------------
Philippe Cazaux-Moutou
Courbevoie - France
.
phcm@easynet.fr
philippe.cazauxmoutou@francetelecom.fr
ICQ : 4597055
-----------------------------------------------------------------------
Technical Details
Message-ID:
<65cf21$hr6$1@buggy.news.easynet.net>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 106e83,ada5b656b7af9f74,start X-Google-Attributes: gid106e83,public X-Google-Thread: f7646,ada5b656b7af9f74,start X-Google-Attributes: gidf7646,public X-Google-Thread: f5f6f,ada5b656b7af9f74,start X-Google-Attributes: gidf5f6f,public From: "Philippe Cazaux-Moutou" <phcm@easynet.fr> Subject: VB 5 et dll activeX Date: 1997/11/24 Message-ID: <65cf21$hr6$1@buggy.news.easynet.net> X-Deja-AN: 292242353 X-MimeOLE: Produced By Microsoft MimeOLE V4.71.2039.0 Organization: [posted via] Easynet France Newsgroups: comp.lang.basic.visual.3rdparty,fr.comp.lang.basic,fr.petites-annonces.informatique.logiciel