Test your Windows SDI Application

It’s been a long time since you could provide your customers with merged applications in SDI mode.

We know that testing an SDI application can be challenging, so with 4D v19 R8, you can view the result of your application without the need to build your standalone or client application.

Keep reading for all the details.

Activate the SDI mode

The option to activate the SDI mode is in the “Interface” tab of the project settings. This is the same option that enables SDI mode for merged applications. 

New menu items

If the option “Use SDI mode on Windows” is checked, two menu items for testing the application are available:

  • Test Application in MDI Mode
  • Test Application in SDI Mode 

 

blank

The development part is still in MDI. So when you switch from development mode to runtime mode with the “Test application in SDI” item menu, this is equivalent to restarting your application.

Here is an example with an HDI if you choose “Test Application in SDI Mode”:

blank

New attribute

When running your application, use the Get application info command to know if you are in SDI or MDI mode. A new attribute, SDIMode, returns the SDI status.

var $mode : Object
$mode:=Get application info
ALERT(String($mode.SDIMode))

Conclusion

For more details, check out the documentation.

Vanessa Talbot
• Product Owner •Vanessa Talbot joined 4D Program team in June, 2014. As a Product Owner, she is in charge of writing the user stories then translating it to functional specifications. Her role is also to make sure that the feature implementation delivered is meeting the customer need.Since her arrival, she has worked to define key features in 4D. She has worked on most of preemptive multi-threading new features and also on a very complex subject: the new architecture for engined application. Vanessa has a degree from Telecom Saint-Etienne. She began her career at the Criminal Research Institute as a developer for the audiovisual department. She has also worked in media and medical fields as expert in technical support, production as well as documenting new features.