BBC BASIC for Windows
« Callback function address »
Welcome Guest. Please Login or Register. Apr 5th, 2018, 11:50pm
ATTENTION MEMBERS: Conforums will be closing it doors and discontinuing its service on April 15, 2018. Ad-Free has been deactivated. Outstanding Ad-Free credits will be reimbursed to respective payment methods.
If you require a dump of the post on your message board, please come to the support board and request it.
Yes, that's correct (the '1' specifies the number of parameters the callback function expects).
Bear in mind that if you use callbacks you should avoid 'blocking' statements in your program, such as INPUT, GET and WAIT (with a non-zero parameter). If necessary the NOWAIT library provides non-blocking replacements for these.
Please also note that SYS itself can be a blocking function so if your callback needs to happen during a SYS call you must use the special non-blocking version FN_syscalln() provided in the CALLBACK library.