Solved

Need Immediate help about Class programming?

Posted on 2006-11-14
4
236 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
  • 2
4 Comments
 
LVL 7

Expert Comment

by:yotamsher
Comment Utility
Hey Blake

what language are we talking about?

Yotam
0
 
LVL 23

Expert Comment

by:Christopher Kile
Comment Utility
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
Comment Utility
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
Comment Utility
I'm using VB6
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

A short article about a problem I had getting the GPS LocationListener working.
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

771 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now