Skip to main content

While trying to learn how to effectively use the Script Engine in Rumba 8.2, I am having a hard time grasping the programming language that is used to do the creating of scripts. It has a look of Windows Visual Basic but using those standards doesnt always work within the Script Engine for running.

What is the best place to learn and develop my knowledge of scripting and available options for manipulating information (be it Font's, Colors, Text Size, etc...)


#Rumba

While trying to learn how to effectively use the Script Engine in Rumba 8.2, I am having a hard time grasping the programming language that is used to do the creating of scripts. It has a look of Windows Visual Basic but using those standards doesnt always work within the Script Engine for running.

What is the best place to learn and develop my knowledge of scripting and available options for manipulating information (be it Font's, Colors, Text Size, etc...)


#Rumba

If you look there should be samples in your install directory. C:\\Program Files\\Micro Focus\\RUMBA\\System\\ScriptEngine\\Scripts. There are a few basic scripts in there that should show you some of the syntax specific to the Rumba script engine. Also when in the editor if you hit F1 it will bring up the script command assistance window. This has pretty much every command and examples for each one.


While trying to learn how to effectively use the Script Engine in Rumba 8.2, I am having a hard time grasping the programming language that is used to do the creating of scripts. It has a look of Windows Visual Basic but using those standards doesnt always work within the Script Engine for running.

What is the best place to learn and develop my knowledge of scripting and available options for manipulating information (be it Font's, Colors, Text Size, etc...)


#Rumba

Hi elcron,

I tried that and the scripts were very basic and unhelpful. I have searched this site for answers on the language being used and to no avail. But when seeking ideas on how to manipulate certain things, the options go well beyond what is in the limited help file. This includes to create a Dialog box and center the text. That was not found in the help file. This is why my keen interest on this.


While trying to learn how to effectively use the Script Engine in Rumba 8.2, I am having a hard time grasping the programming language that is used to do the creating of scripts. It has a look of Windows Visual Basic but using those standards doesnt always work within the Script Engine for running.

What is the best place to learn and develop my knowledge of scripting and available options for manipulating information (be it Font's, Colors, Text Size, etc...)


#Rumba

The dialog editor under the tools menu will allow you to visually create simple dialog boxes and then send the code to the clipboard so you can paste it into your script file. The dialogs that rumba scripting is capable of are not as flexible as what you will see in VB. This is the sample that shows up when you look up Dialog in the script command help window

Sub Main  

  Begin Dialog DialogName1 60, 60, 160, 70, "ASC - Hello"

     TEXT 10, 10, 28, 12, "Name:"

     TEXTBOX 42, 10, 108, 12, .nameStr

     TEXTBOX 42, 24, 108, 12, .descStr

     CHECKBOX 42, 38, 48, 12, "&CHECKME", .checkInt

     OKButton 85,54,40,12

     CancelButton 42, 54, 40, 12

  End Dialog

  Dim Dlg1 As DialogName1 ' Decalration of Dlg1  

  Dialog Dlg1  ' Invoking Dlg1

  MsgBox Dlg1.nameStr

  MsgBox Dlg1.descStr

  MsgBox Dlg1.checkInt

End Sub


While trying to learn how to effectively use the Script Engine in Rumba 8.2, I am having a hard time grasping the programming language that is used to do the creating of scripts. It has a look of Windows Visual Basic but using those standards doesnt always work within the Script Engine for running.

What is the best place to learn and develop my knowledge of scripting and available options for manipulating information (be it Font's, Colors, Text Size, etc...)


#Rumba

Hi Elcron,

Andre had shown me a way to manipulate textbox fields by making readonly and even center the information so I feel there has to be way more options than what is listed in the help files since what you see below was not listed there:

Const ES_MULTILINE      = &h0004&

Const ES_READONLY       = &h0800&

Const ES_WANTRETURN     = &h1000&

Const ES_CENTER = &h0001&

Begin Dialog DATA 158,53,450,305, "SCREENSCRAPE"

TextBox.Font

TextBox.FontSize

Text 12,10,50,10, "ACCT NUM:"

TextBox   12,20,45,10, .ACCT, ES_READONLY Or ES_CENTER

Text         64,10,50,10,"LIEN POS: "

TextBox   64,20,45,10,.POS, ES_READONLY Or ES_CENTER

Text         117,10,50,10,"PULL DATE: "

TextBox   117,20,45,10,.PULLDATE, ES_READONLY Or ES_CENTER