DIAdem Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
toby_d

Dialog Debugging + Data Types

Status: Already Implemented

Hello toy_d,

Here you find some information about debugging SUD dialogs.

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019N1nSAE

Your second request would require the support of VB, which is not planned. DIAdem supports VBS and VBS only supports the variable type “variant”.

Greetings

Walter

Hello,

 

1)

work would be much easier for me if direct debugging of Dialogs would be possible. It should be like debugging of scripts.

You set a breakpoint, let the script run and when it is paused you can look for the values of variables and continue in single steps.

Debugging with the Microsoft Script debugger is not really a comfortable solution.

 

2) The data type "variant" is great. But sometimes a type definition would help much (I'm used to define the type of variables, even from Visual Basic).

I would have the need for a "type" definition to combine several values to "one variable". With this construction a function could give some values in one result (e.g. a vector) and it would save some calculation time or global variables.

Example:

 

type rgbcolor

   dim r

   dim g

   dim b

end type

 

dim color as long

dim a as rgbcolor

 

a = conv_rgb(color)

 

msgbox a.r & "  " & a.g & "   " & a.b

 

function conv_rgb(col_long as long) as rgbcolor

    ...

end function

1 Comment
Walter_Rick
NI Employee (retired)
Status changed to: Already Implemented

Hello toy_d,

Here you find some information about debugging SUD dialogs.

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019N1nSAE

Your second request would require the support of VB, which is not planned. DIAdem supports VBS and VBS only supports the variable type “variant”.

Greetings

Walter