Re: Thoughts on passing values to PowerCOBOL DLL
- From: Robin Lee <robinlee@xxxxxxxx>
- Date: Fri, 30 Mar 2007 15:23:13 -0400
Michael Russell wrote:
I don't know much about that M$ stuff, nor PowerCobol, but this conversation you two just had made me think "What nice posts."
That's 'nice' as in written well, courteous & helpful. Great stuff, if you don't mind my saying so.
Regards
Michael
Thank you Michael. Your comments are very much appreciated. Perhaps too often a call for help meets with remarks such as "do your own homework" (okay, sometimes it's justified).
I'm guessing that most of us here are seasoned COBOL programmers, that is, probably 50 years of age or older, with a few younger readers who have had COBOL thrust upon them. At my age I sometimes have trouble finding my eyeglasses, which I'm wearing! In such cases it's 'nice' to have an objective pair of eyes to help guide us.
In this case, it turned out that the problem was indeed "something simple I've overlooked". Even when a module has only a single object, and that object has only a single property, then that property must be referenced explicitly.
If we were speaking of programs and variables (which these in fact are) then this would be a matter of "uniqueness of reference", which in COBOL means that a fully qualified reference need only be specified when necessary to avoid ambiguity.
But this isn't COBOL, it's object oriented programming.
Perhaps some things *are* better done by committee.
.
What I eventually discovered was that reference to CustID had to be *explicit* in the form "CustID of Control1", even though the project has only one form and only one control. After that everything fell into place.There's probably something simple that I've overlooked, but it's not obvious to me how to pass a value to a PowerCOBOL DLL called from VB.
- Follow-Ups:
- Re: Thoughts on passing values to PowerCOBOL DLL
- From: Pete Dashwood
- Re: Thoughts on passing values to PowerCOBOL DLL
- References:
- Passing values to PowerCOBOL DLL
- From: Robin Lee
- Re: Passing values to PowerCOBOL DLL
- From: Pete Dashwood
- Re: Passing values to PowerCOBOL DLL
- From: Robin Lee
- Re: Passing values to PowerCOBOL DLL
- From: Michael Russell
- Passing values to PowerCOBOL DLL
- Prev by Date: Re: New "base document" available
- Next by Date: Re: New "base document" available
- Previous by thread: Re: Passing values to PowerCOBOL DLL
- Next by thread: Re: Thoughts on passing values to PowerCOBOL DLL
- Index(es):
Relevant Pages
|