General Category > Open Discussion

Make Global object

<< < (5/5)

Tazmahal:
Well .. I've tried that with no succes .. like I said i'm new to vb , it gave me a bunch of error  :-[
The solution of Archie is exactly what i'm looking for and straight forward ! Easy to change and build ..!

Phrog30:

--- Quote from: Tazmahal on April 02, 2018, 04:40:31 PM ---Well .. I've tried that with no succes .. like I said i'm new to vb , it gave me a bunch of error  :-[
The solution of Archie is exactly what i'm looking for and straight forward ! Easy to change and build ..!

--- End quote ---
What errors? I'm confused, I thought you said you were getting exceptions from the code Archie gave you. That's why I showed you another way. It's the simplest approach. All you are doing in the code is dynamic plc property setting. You are letting the controls do the rest, which has already been tested thoroughly.

Maybe take screenshots of the errors or post your code, or wait on Archie, assuming you were getting exceptions and I didn't misread your post.

Tazmahal:
Sorry mate ! Finaly I’ve been able..! You’re right that work perfecly !! Thank you so much :)

patrick.n:
NOTES ON USAGE:  Seems you can't put AHMI Controls within a container such as a TableLayoutPanel as part of your GroupObject design. 

Doing this breaks the code which concatenates the PLCAddressUDT and the PLCAddressxxx within AHMI Controls placed in the GroupObject.

I other words, seems AHMI Controls need to be "contained" by the Form or GroupObject (class) directly. They cannot be buried deeper into a hierarchy of other containers such as TableLayoutPanel.......I think this is the right terminology to use.

OTHERWISE: to use layout containers in GroupObjects, the AHMI Controls must directly reference the PLCAddress and you forget about using the PLCAddressUDT mechanism.

This renders the GroupObject less usedful - better than Cut&Pasting (at least you can still do global modification by altering just one object) - but not as flexible as RA GlobalObjects with their tag placeholders.

zach_a_ary:
I got up to step 10 of Archies instructions but "GroupObject" was not in my toolbox. I tried putting the downloaded file under "Controls" and then it did pop up in my toolbox but it wouldnt let me drag it down to my form.

Navigation

[0] Message Index

[*] Previous page

Go to full version