Hi guys,
I've searched a lot on both google and here but sorry, couldn't find.
Maybe I'm just asking the wrong question, so I'll try to explain it here to see if someone can help me:
what I'm trying to do is what in C would be as simple as int varptr = &var
I have a form that is just a communication watcher/logger. It's just a blank text box with a Pause/Play button and a copy to clipboard button and every new activity on my serial communication is logged. At the moment the form have a timer that once a second do textbox.text = serial1.log ...
but the problem is that I also have serial2; serial3; sql1 that I would like to keep an eye on them, and considering my work here I'm sure I would be re-using this form a lot if I could make it portable. Create one form for each is just stupid, as you'll all agree.
Then I would like to have an sub initialise(byref log as string) that would store this reference into an local variable within the form; so that every new instance of my form could be initialised with whatever log they'll be looking for and the timer just make textbox.text = LogPointer to the actual value of the log string.
So, as I said I really wanted a int varptr = &var
Any suggestions?
thanks
I've searched a lot on both google and here but sorry, couldn't find.
Maybe I'm just asking the wrong question, so I'll try to explain it here to see if someone can help me:
what I'm trying to do is what in C would be as simple as int varptr = &var
I have a form that is just a communication watcher/logger. It's just a blank text box with a Pause/Play button and a copy to clipboard button and every new activity on my serial communication is logged. At the moment the form have a timer that once a second do textbox.text = serial1.log ...
but the problem is that I also have serial2; serial3; sql1 that I would like to keep an eye on them, and considering my work here I'm sure I would be re-using this form a lot if I could make it portable. Create one form for each is just stupid, as you'll all agree.
Then I would like to have an sub initialise(byref log as string) that would store this reference into an local variable within the form; so that every new instance of my form could be initialised with whatever log they'll be looking for and the timer just make textbox.text = LogPointer to the actual value of the log string.
So, as I said I really wanted a int varptr = &var
Any suggestions?
thanks