10-17-2019 04:42 AM
Hi,
I would like to change the standard script layout format that appears every time I create a new script. Currently it's the DIAdem default:
'------------------------------------------------------------------------------- '-- VBS script file '-- Created on 17/10/2019 11:32:46 '-- Author: '-- Comment: '------------------------------------------------------------------------------- Option Explicit 'Forces the explicit declaration of all the variables in a script.
And I would like something like this:
'------------------------------------------------------------------------------- '! @details ___.VBS script file '! '! Description: ___ '! @author franco__ '! @date 17/10/2019 11:32:46 '------------------------------------------------------------------------------- Option Explicit
Thanks a lot
10-18-2019 01:35 PM - edited 10-18-2019 01:36 PM
Hi franco,
To my knowledge there is no configuration to change the "letterhead" of a new VBScript in DIAdem. We could create a custom button or perhaps overload the existing "New" button in the SCRIPT panel with a custom VBScript. Then you could put whatever "letterhead" you want in the VBScript. We'd have to programmatically create the new *.VBS file first with the FileSystemObject, say, then programmatically load it into the SCRIPT panel with the AutEdFileOpen() command. So either create it in a standard starting folder or a temporary folder.
Brad Turpin
DIAdem Product Support Engineer
National Instruments