Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dialog box variable

Status
Not open for further replies.

Loper058

MIS
Apr 23, 2002
2
0
0
US
I'm new to aspect scripts. I need help passing 3 user entered variables (8 characters) from a dialog box to the following script.
proc main
waitfor "Ready...^M"
transmit "hello^M"
waitfor "Serial Port is enabled.^M"
transmit "+-"
waitfor "$ - Display memory (32-bit)^M"
transmit ">"
waitfor "I -^M"
transmit "H"
waitfor "06-29-2001 15:03:16^M"
transmit "hello^M"
waitfor "Serial Port is enabled.^M"
transmit "z"
waitfor "Preserve, Modify, or Erase current SSA ID and SERIAL NO? (P/M/E)"
transmit "M"
waitfor "Enter 8-digit BOX SN >"
transmit "00250748" ;-----------------> Variable 1
waitfor "Enter 8-digit PCB SN >"
transmit "00166237" ;-----------------> Variable 2
waitfor "Enter 6-digit SSA ID (Hex) >"
transmit "0042d3" ;-----------------> Variable 3
waitfor "Preserve, Modify, Overwrite, or Erase current feature list? (P/M/O/E)"
transmit "P"
waitfor "Start programming? (Y/N)"
transmit "Y"
waitfor "Patch programming completed^M"
transmit "E"
endproc

Please advise.


 
Hello,

In your Dialog Box you'll be using EditBoxes to Input the Data, to be Written to String variables. I assume you have a Start or Execute to Begin the Process and Execute the Script.

;*** Variables ****
string sVar1
string sVar2
string sVar3

;* Dialog Box Code..

editbox xx 516 160 20 14 sVar1
editbox xx 518 160 20 14 sVar2
editbox xx 520 160 20 14 sVar3

sVar1 = "00250748" ; EditBox 1 This is what will be Set.
sVar2 = "00166237" ; EditBox 2 ---------------------------
sVar3 = "0042d3" ; EditBox 3 ---------------------------

When You Press Start, the Variables should be Set to the Vaules Entered in the DialogBox

Transmit sVar1
Transmit sVar2
Transmit sVar3

If this doesn't Help, let me know..

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top