Fred4Christ
New member
Sadly I never got a good feel for OOP. And while I have done "great" things I occasionally hit a wall. I guess I am primarily a web scripter.
I have a VB.net application that performs a list of conversions to an MS Word docs, eventually making them it into a bunch of HTML pages.
I have two forms.
First: Is the main form. Title: Chapters. It comes up on launch.
Second: Title: Problems; opens from a menu item of Chapters.
"Chapters" acts on one type of documents. "Problems" on another, yep, problem docs. I got both forms working fine, including updating their own status area showing what steps have completed while the conversion is running.
I am trying to make a Subroutine in the Main Chapters form that can loop through all the chapters and problems in the chapter. Updating the status of the problems is where I am stuck.
I put all the necessary code that was in the problems form into a new file,
a "Module ProbExport" (See, I didn't use a class, cause I haven't wrapped my head around them yet).
My main form does work. It can act on the chapters and the problems in them, but I don't yet have the ability to show status of what the problems module code is doing. I tried to set up a way to "RaiseEvent", in the "Module ProbExport". And tried to set up an event handler in my main form that could update my status when the event was raised. I failed miserably.
My main question is, am I even thinking of events correctly here?
As in, should something like this work? Do events work in this direction?
Am I required to use a "Class ProbExport" instead of a "Module ProbExport"?
I am getting ready to go and study some more, and I hope I am starting
off in the right direction. I wish I could have an expert "looking over my shoulder" even paid so I could make progress on this faster.
Am I embarking in the right direction?
Have I been succinctly clear enough?
Thanks for your patience with this OOP newbie.
I have a VB.net application that performs a list of conversions to an MS Word docs, eventually making them it into a bunch of HTML pages.
I have two forms.
First: Is the main form. Title: Chapters. It comes up on launch.
Second: Title: Problems; opens from a menu item of Chapters.
"Chapters" acts on one type of documents. "Problems" on another, yep, problem docs. I got both forms working fine, including updating their own status area showing what steps have completed while the conversion is running.
I am trying to make a Subroutine in the Main Chapters form that can loop through all the chapters and problems in the chapter. Updating the status of the problems is where I am stuck.
I put all the necessary code that was in the problems form into a new file,
a "Module ProbExport" (See, I didn't use a class, cause I haven't wrapped my head around them yet).
My main form does work. It can act on the chapters and the problems in them, but I don't yet have the ability to show status of what the problems module code is doing. I tried to set up a way to "RaiseEvent", in the "Module ProbExport". And tried to set up an event handler in my main form that could update my status when the event was raised. I failed miserably.
My main question is, am I even thinking of events correctly here?
As in, should something like this work? Do events work in this direction?
Am I required to use a "Class ProbExport" instead of a "Module ProbExport"?
I am getting ready to go and study some more, and I hope I am starting
off in the right direction. I wish I could have an expert "looking over my shoulder" even paid so I could make progress on this faster.
Am I embarking in the right direction?
Have I been succinctly clear enough?
Thanks for your patience with this OOP newbie.