Problems using SQL Queries within ButtonPushed callbacks
Show older comments
Hi all,
I am experiencing an unusual problem within MATLAB App Designer.
I have a button that, when pushed, retrieves information from a database.
Without the SQL query, the ButtonPushed callback functions as expected, but when I add the code to execute the query, the ButtonPushed callback gets executed twice.
I found a solution is to move the SQL query into a separate function and call that from the ButtonPushed callback, but I am wondering why having it directly in the callback function is an issue.
Thanks in advance,
-Mac
1 Comment
Allen
on 1 Mar 2021
Mac,
Can you provide a sample snippet of your push-button callback containing the SQL query code? This will help us to identify the problem.
Accepted Answer
More Answers (0)
Categories
Find more on Interactive Control and Callbacks in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!