DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

sud dialogs in Diadem 8.1

I am using Diadem 8.1. I am trying to make dialog boxes using SUD. I have a file in which i define what are vairables are and i call this file in VBS using:
If not VSA("FlexDP") Then
Call USERVARCOMPILE("FlexDP", "new")
End If
 
Now the problem is: For eg: in this file i declared my variable Asciidata$: B In my SUD dialog if i call Asciidata_ = "True" it does not like it and it throws an error saying "Error message from Diadem OCMD-interface. Invalid CMDID Type of Diadem-designator [Typ="ASCIIDATA_"]!"
 
If i change Asciidata_ to Asciidata in my SUD it works fine but when i say "Call msgboxdisp(Asciidata_)" in VBS it gives me an error. I really dont know where to fix this. Thanks!
 
Shefalika
0 Kudos
Message 1 of 5
(3,719 Views)
An an update: I changed Asciidata$ : F in my vas file and then it worked fine. But it does not like Asciidata$ :B. Does anyone know why? Thanks!
0 Kudos
Message 2 of 5
(3,713 Views)

Hi Shefalika,

I just wanted to let you know that I am looking into your issue and will post a response for you as soon as I can determine what may be going on here.

 

Thanks,
Caroline Tipton
Data Management Product Manager
National Instruments
0 Kudos
Message 3 of 5
(3,690 Views)
Seems to me that you are trying to put the string "true" into your boolean variable.
Try asciidata$=True instead of asciidata$="True"
 
edit: but be careful with bollean variables in DIAdem/SUD.
When displaying a boolean variable you have set to TRUE or FALSE in a textbox in SUD, it will display YES or NO. In other circumstances it will be set to 1 or 0.
So perhaps it is easier to just use an integer and set to 0 or 1.

Message Edited by themad on 09-28-2005 06:40 AM

Message Edited by themad on 09-28-2005 06:40 AM

0 Kudos
Message 4 of 5
(3,678 Views)

Hi,

Another thing you want to double check is your spacing.  You must have a space on both sides of the colon in your variable declaration.  So,

ASCIIDATA$ : B   this will work

ASCIIDATA$ :B    this will not work

Hope this helps.

Thanks,
Caroline Tipton
Data Management Product Manager
National Instruments
0 Kudos
Message 5 of 5
(3,669 Views)