Skip to main content

Hello,

I want to retrieve parameters of my command tcl in a proc.

How can you this ?

For example :

I execute a proc named PROC01 with parameters.

I want to know the parameters to use inside the proc.

Ā 

Ā 

A proc :

PROC01

001 PQ

002 HSET-DEVICE

003 <how to use parameters line command ?>

004 PH

005 ...


Ā 

Ā 

And execute this in prompt :

: PROC01 6

Ā 

In Basic programs, you can use tclread. But, with proc, how to do this ?

Ā 

Ā 

Thanks for your response,

Ā 

The short answer:

Ā 

PROC01

001 PQ

002 HSET-DEVICEĀ  Ā  Ā (make sure there is a trailing space)

003 A2

004 PH

005 …

Ā 

The long answer:

002 D

will display the entire input buffer (PROC01 6)

002 A1

will use the first space-delimited piece

002 A2

will user the second space-delimited piece

And so on.

Ā 

More information in our documentation:

Ā 

A command:

https://docs.rocketsoftware.com/bundle/d3_rg_104/page/d3/d3_all/source/reference_manual/proc_processor/a_command_PROC_processor.html

B command:

https://docs.rocketsoftware.com/bundle/d3_rg_104/page/d3/d3_all/source/reference_manual/proc_processor/b_command_PROC_processor.html

D command:

https://docs.rocketsoftware.com/bundle/d3_rg_104/page/d3/d3_all/source/reference_manual/proc_processor/d_command_PROC_processor.html


hi

Thank you for your response,

I think, I understand all !

it’s too easy ….

I used this with command ā€œSnā€, but, I did notĀ Ā know that I can use without ā€œSnā€ !

ok