Casper -
I am still new to this and have never written or referenced DLLs ... what I want to do is call code from Forms, Modules, and Classes generically ie ... have references to them passed as a parameter to a routine that will then use a that reference to call a routine of a pre-defined name...
When using a pointer to point to a Form or a Class or a Module ... which is better to use .... a pointer declared as a Variant or as an Object ??? (And why?) Thanks!
(I originally posted this in the wrong area - my apologies)
When you create a VB 6 class and then create many instantiations of this class during run-time - is the code part of the class shared among all the instantiations or is it re-created seperately each time?
(I ask because I am debating whether to use this class as a base data type for say, a...
Thanks Matt and Rdrosk ....
But I still wonder why "oFolder.Files.Item(i).Name" won't work? I did re-write the code as you said ... a for each loop and it does work.
Here is some code (without much comments) for you to see how to access cells of the flexgrid ... help it helps!
Private Function LOADflxRESULTS() As Long
Dim iNCol As Integer, iNRow As Integer 'Number of Col and Rows in rst
Dim iC As Integer, iR As Integer 'Col and Row...
THanks for the response BiggerBrother ....
The error is:
Error 5: Invalid procedure call or argument
And it occurs on the line:
msgbox oFolder.Files.Item(i).Name
Even if the upper bound of the loop is wrong, it still should have executed until that point. It won't even execute once .....
Hey VB Gurus .... this code snippet yields an error and I am baffled as to why. As I type the line "oFolder.Files.Item(i).Name" each part of it appears for you to select so I know it is valid syntactically, but it yields an error when run. I tried starting i at 1 and at 0, but still...
I am fairly new to VB-SQL Server programming.
Exactly how resource intensive is opening and closing a connection VERSUS keeping connections open longer in order to do several recordset-related tasks before closing the connection.
I ask because I know in general tech-books say to minimize the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.