|
View previous topic :: View next topic
|
| Author |
Message |
Paul1983
New User
Joined: 08 Jul 2008 Posts: 37 Location: bangy
|
|
|
|
Could you please explain the meaning of the following commands given in )PROC section of a panel.
)PROC
&zsel = TRANS(TRUNC(&zcmd ,'.')
AR,'CMD(%SW2 AR)'
Thanks,
Paul |
|
| Back to top |
|
 |
enrico-sorichetti
Superior Member

Joined: 14 Mar 2007 Posts: 10903 Location: italy
|
|
| Back to top |
|
 |
Paul1983
New User
Joined: 08 Jul 2008 Posts: 37 Location: bangy
|
|
|
|
Thanks for the information
Thanks,
Paul |
|
| Back to top |
|
 |
Pedro
Global Moderator

Joined: 01 Sep 2006 Posts: 2624 Location: Silicon Valley
|
|
|
|
Say the user types ar.pv...
| Code: |
&zsel = TRANS(TRUNC(&zcmd ,'.')
AR,'CMD(%SW2 AR)' |
The ar.pv command is truncated at the period and the prefix is used, like a case statement. The panel syntax is correct for the panel, but the effect is to work something like this:
| Code: |
Select
When (zsel = 'AR') Then Address ISPEXEC "SELECT CMD(%SW2 AR)"
|
|
|
| Back to top |
|
 |
|
|