Solved

Need Immediate help about Class programming?

Posted on 2006-11-14
4
241 Views
Last Modified: 2012-05-07
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
Comment
Question by:BlakeMcKenna
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 7

Expert Comment

by:yotamsher
ID: 17940688
Hey Blake

what language are we talking about?

Yotam
0
 
LVL 23

Expert Comment

by:Christopher Kile
ID: 17940956
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
 
LVL 23

Accepted Solution

by:
Christopher Kile earned 500 total points
ID: 17940981
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
 

Author Comment

by:BlakeMcKenna
ID: 17941095
I'm using VB6
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
A short article about problems I had with the new location API and permissions in Marshmallow
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question