View previous topic :: View next topic |
Author |
Message |
wahorger
Joined: 13 Oct 2014 Posts: 1217 Location: Morrison, CO, USA
|
Posted: Wed Jan 15, 2020 11:53 pm Post subject: Using + to execute two callbacks |
|
|
I had seen this in the documentation and puzzled why one would need this. I now have a use for it. In fact, I could use more, but that's asking for a lot!!
It worked well. I attach two callbacks to a control, and used %ud as well. Experimentation shows that the USER_DATA is passed to both callback routines. This gives me a great flexibility.
Finding small differences in the way 8.60 issues messages (new ones popped up), but no problems at all.
Good job, Silverfrost! |
|
Back to top |
|
|
John-Silver
Joined: 30 Jul 2013 Posts: 1520 Location: Aerospace Valley
|
Posted: Sun Jan 19, 2020 8:39 pm Post subject: |
|
|
where is it in the documentation Bill ? Ta. _________________ ''Computers (HAL and MARVIN excepted) are incredibly rigid. They question nothing. Especially input data.Human beings are incredibly trusting of computers and don't check input data. Together cocking up even the simplest calculation ... " |
|
Back to top |
|
|
wahorger
Joined: 13 Oct 2014 Posts: 1217 Location: Morrison, CO, USA
|
Posted: Mon Jan 20, 2020 5:49 am Post subject: |
|
|
It was hard to find. Look at the end of the "Standard call-back functions". I had run across it in another context at some point and found it interesting. If you look at %aw, you'll see it used. |
|
Back to top |
|
|
John-Silver
Joined: 30 Jul 2013 Posts: 1520 Location: Aerospace Valley
|
Posted: Mon Jan 20, 2020 4:49 pm Post subject: |
|
|
thanks Bill, i'll take a look.
like you say, a more than 2 callbacks capaility could be an interesting exercise for Paul to get his teeth into, or maybe just nesting them with cseveral '+' callbacks might work _________________ ''Computers (HAL and MARVIN excepted) are incredibly rigid. They question nothing. Especially input data.Human beings are incredibly trusting of computers and don't check input data. Together cocking up even the simplest calculation ... " |
|
Back to top |
|
|
|