[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 247
  • Last Modified:

Need Immediate help about Class programming?

I have a new job where alot of the code is written in Classes. I am new to Class programming and I'm trying to grasp the concept of it and it's functions, subprocedures, and calls to the Class. I would like to handle all my data IO within the class module and keep my form modules relatively empty of code. I need to insert into my Class....module functions for Retrieving data, Saving data, Adding data, and Deleting data. I'm using ADO as my Record processing vehicle and a File DSN as my connection. I know how to write regular procedural code for IO in form modules but I'm not sure how to do it in Classes. Please help!!!

Thanks,

Blake
0
BlakeMcKenna
Asked:
BlakeMcKenna
  • 2
1 Solution
 
yotamsherCommented:
Hey Blake

what language are we talking about?

Yotam
0
 
Christopher KileCommented:
I believe I recognize the conventions you're talking about.  You are discussing one of the visual Microsoft languages, and I'll take a swag and say you're talking about Visual Basic.

Relax.  The code for file and database I/O in classes is the same as it is for forms (which are just a specialized, er, form of a class in many respects).  Just as with forms, you can define procedures, functions, and, yes, even events.

0
 
Christopher KileCommented:
Additionally, class objects can be declared (using early binding) just like a form object, and any public procedures, functions, variables, and events are accessible.

One significant difference is that classes can be compiled into separate DLLs, so that a set of classes can be used in multiple programs.
0
 
BlakeMcKennaAuthor Commented:
I'm using VB6
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now