Skip to main content

Hi guys, help....

I am writing a script that will show different information based on user input. for example, if input is 02, there will be a dialoge showing "Please do item 1, 2"; if input is 03, then "Please do item 3, 4", etc..

As on a dialoge I can only display "TEXT" (I have to type the text manually and cannot reference a variable)..like code below:

Begin Dialog PL 16,30,310,164,"PL instructions"
        Text 8,8,60,12, "Please review for:"

If i have a variable reviewItem, can I display the variable on a dialoge?

Thanks a bunch!!

 

 

 


#Rumba
#Script

Hi guys, help....

I am writing a script that will show different information based on user input. for example, if input is 02, there will be a dialoge showing "Please do item 1, 2"; if input is 03, then "Please do item 3, 4", etc..

As on a dialoge I can only display "TEXT" (I have to type the text manually and cannot reference a variable)..like code below:

Begin Dialog PL 16,30,310,164,"PL instructions"
        Text 8,8,60,12, "Please review for:"

If i have a variable reviewItem, can I display the variable on a dialoge?

Thanks a bunch!!

 

 

 


#Rumba
#Script

Not sure if I get it correct  but every item in the dialog must have an index. At the end of dialog execution,  you can use the GetItemValue command to get the result values of dialog commands.

<code>

Sub Main

  Dim Value_Variable  As String

  DlgStart  

     DlgItemType "Please , enter your value :"

     DlgItemAsk  "", Value_Variable , 1, 10

     DlgInquire

     DlgGetItemValue   1 , Value_Variable    

  DlgEnd

  Print "You pressed " ,Value_Variable      

End Sub

</code>.

regards

AE