]user commands and MiServer programming
4 posts
• Page 1 of 1
]user commands and MiServer programming
Greetings.
Is it possible for MiServer .dyalog MiPages to reference User Commands?
a←⍎']?' does not work.
Can user commands be called within APL program?
Thanks!
//W
Is it possible for MiServer .dyalog MiPages to reference User Commands?
a←⍎']?' does not work.
Can user commands be called within APL program?
Thanks!
//W
-
woody - Posts: 144
- Joined: Tue Dec 28, 2010 12:54 am
- Location: Atlanta, Georgia USA
Re: ]user commands and MiServer programming
Using ⍎ on strings that contain invalid APL statements like anything starting with ] or ), for example, will yield an APL error.
Most system commands (starting with a ')') have system function equivalent, e.g. )WSID has a ⎕WSID similar function.
User commands don't have system function equivalents.
When you call a user command the system takes the string to the right of the ']' and passes it on to ⎕SE.UCMD as right argument.
You can use that program too, i.e. to call
you can do
and catch the result if you wish.
Most system commands (starting with a ')') have system function equivalent, e.g. )WSID has a ⎕WSID similar function.
User commands don't have system function equivalents.
When you call a user command the system takes the string to the right of the ']' and passes it on to ⎕SE.UCMD as right argument.
You can use that program too, i.e. to call
]?
you can do
⎕SE.UCMD '?'
and catch the result if you wish.
- DanB|Dyalog
Re: ]user commands and MiServer programming
Excellent!
works like a charm.
//W
works like a charm.
- Code: Select all
Load 'APLROOT'
Development environment loaded
MiSite "D:\APL\MiServerV24-APLscriptV2\APLROOT\" loaded
⎕SE.UCMD 'Load D:\APL\MiServerV24-APLscriptV2\APLROOT\*'
#.APLscript #.Start #.WIKIPortal #.editscript #.helloworld #.index #.indexOLD1 #.EditPage #.httprequest #.sessioninfo #.Status #.CLEARNS #.CLEARNS #.CLEARNS
... snip...
//W
-
woody - Posts: 144
- Joined: Tue Dec 28, 2010 12:54 am
- Location: Atlanta, Georgia USA
Re: ]user commands and MiServer programming
Hi Woodley,
If you're just looking to load APL script file, there's no need to use a user command - that's a native capability with SALT. You can just do
/Brian
If you're just looking to load APL script file, there's no need to use a user command - that's a native capability with SALT. You can just do
⎕SE.SALT.Load 'filespec'.
/Brian
-
Brian|Dyalog - Posts: 120
- Joined: Thu Nov 26, 2009 4:02 pm
- Location: West Henrietta, NY
4 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group