Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How do I bring up the VAR-LINK dialog from C code and then get the name of the file that was selected?

bring code dialog file Selected
0
Posted

How do I bring up the VAR-LINK dialog from C code and then get the name of the file that was selected?

0

This is an advanced question. As the VAR-LINK dialog is an event-driven applet, you must use event-driven functions defined in the events.h header file. Bringing up the VAR-LINK dialog is quite easy: EVENT ev; ev.Type = CM_KEYPRESS; ev.extra.Key.Code = KEY_VARLNK; EV_defaultHandler (&ev); but getting the name of the file that was selected is a bit harder. After executing the VAR-LINK dialog, the VAR-LINK applet will send the name of the selected file to the current application via the CM_HSTRING message. This message may be captured by a user event handler. Here is the demonstration program (called “Get File Name”): // Open VAR-LINK dialog and let user select something #define USE_TI89 // Compile for TI-89 #define USE_TI92PLUS // Compile for TI-92 Plus #define USE_V200 // Compile for V200 #define MIN_AMS 100 // Compile for AMS 1.00 or higher #define SAVE_SCREEN // Save/Restore LCD Contents #include // Include All Header Files char VarBuffer[20] = “”; CALLBACK void VarLinkH

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123