08-23-2006 07:31 AM
08-24-2006 08:34 AM
Hi Thomas,
Here's an approach that has a good chance of working for you. It requires that you have DIAdem 9.1 and DIAdem 9.0 on the same computer. Launch both DIAdem 9.0 and 9.1, and launch the SUDialog Editor from 9.0 and the SUDialog Editor from 9.1. So now you have two SUDialog Editors open at the same time, one from 9.0 and one from 9.1. Open up the SUDialog you want to copy in the 9.1 SUDialog Editor. Now select all the controls on the dialog and hit <Ctrl-C> on your keyboard. Now switch to the 9.0 SUDialog Editor, left-click once on the dialog, then hit <Ctrl-V> on your keyboard. This should copy both the control layout and the callback functions (with VBScript code) behind each of the controls. The only problem you might run into is if you have a control or function in the 9.1 SUDialog Editor that does not exist in the 9.0 SUDialog Editor, these would not copy over. But I can't think of any examples right now that wouldn't. You'll probably get lucky and have everything copy over just fine.
Good Luck,
Brad Turpin
DIAdem Product Support Engineer
National Instruments
09-19-2006 09:51 AM
@Brad Turpin wrote:(..) The only problem you might run into is if you have a control or function in the 9.1 SUDialog Editor that does not exist in the 9.0 SUDialog Editor, these would not copy over. (..)
09-20-2006 01:28 AM
Matthias Alleweldt Project Engineer / Projektingenieur | Twigeater? |
09-20-2006 12:22 PM
Hi Martin,
I can wholeheartily endorse the suggestion from Twigeater regarding minimizing the code in a SUDialog using the ScriptInclude() function. It would appear that the copy-paste method was more useful with earlier versions of DIAdem than it is now. I just tried to copy a DIAdem 10.1 control onto a DIAdem 10.0 SUD form, and it resulted in the DIAdem 10.0 SUD editor shutting down abruptly. This method worked well during the DIAdem 9 years.
Sorry for the extra hassle this causes,
Brad Turpin
DIAdem Product Support Engineer
National Instruments