Discussions related to Visual Prolog
Michel
Posts: 23
Joined: 8 Nov 2025 17:17

I need help with OOP.

Post by Michel »

Hello, I don't have problem with Prolog itself.

I worked with Turbo Prolog 1 and 2 in the 80' and I loved it. I have realized and sell, via the "Faculté des science de Paris", a medical expert system. It was a mix of TP and the Turbo C from Broland too. His price was proposed by IBM and his IA service ( Tour Franklin / Paris )...

Today, I spend many hours and days trying to understand how I can create a dialog ( or a form ) and then send in a listBox contained in it the results I get correctly, as displayed in the "message window"...

I looked at ALL the exemples to seek and find such an exchange between two dialogs or so, I test many combinations with code in ***.i or ****.cl or ****.pro files and I get ALLWAYS the same answer :

The object member 'listBox_ctl' is used in the class predicate !

A simple call frmm one "dialog" to an other dialog is correct as traced... Fine !!! But as soon I call a local predicate to send a list via the listBox_ctl I get each time this error.

I really tried everything but, of course, not the good one !

Please.... a basic exemple : a form with a listBox_ctl and a predicate callable externally to let me display results in it.

As we said in France "Merci d'avance" and, also, Warm regards. Michel
B.Hooijenga
VIP Member
Posts: 63
Joined: 11 Jul 2002 23:01

Re: I need help with OOP.

Post by B.Hooijenga »

Hello Michel,

Yes, using objects can be a problem in the the beginning.

Here is a small example to start with.

If you have questions: ask!

kind regards,
Ben
You do not have the required permissions to view the files attached to this post.
Michel
Posts: 23
Joined: 8 Nov 2025 17:17

Re: I need help with OOP.

Post by Michel »

Hello Ben,
first of all, thanks for such an answer but it's not exactly my problem.

In fact, I need one form including a listBox, for exemple, receiving and displaying "something" ( aka list ... ) from an other form ( or dialog ) where the comptations are made. The zip file gives two lists, yes and it runs but the communication is inside one form only.

I don't have issue when I compute and display inside the same "object" even very complete ( buttons, static text, list's and so ) but I don't succeed to show results in a "object" dedicated to give the results . I don't succeed to have an object communicating wih an other...

I hope a partial screen copy will help you... and later... me.

Best regards, Michel
You do not have the required permissions to view the files attached to this post.
Michel
Posts: 23
Joined: 8 Nov 2025 17:17

Re: I need help with OOP.

Post by Michel »

I FOUNDED ! :D