Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Programmer mode #32

Open
sidneyl opened this issue Oct 1, 2014 · 3 comments
Open

Programmer mode #32

sidneyl opened this issue Oct 1, 2014 · 3 comments

Comments

@sidneyl
Copy link

sidneyl commented Oct 1, 2014

You can run the %PMODE Intersystems Routine to enter programmer mode instead of executing the commands entered. Because we can't ZLOAD a Routine and PRINT it.
When we run the PRINT command it displays your Routine.
I think your next project should be a Routine Screen Editor running under your WebTerminal.

@evshvarov
Copy link
Member

I tried Zload in the last version. f.ex.
zl %SS p
and it works.

@sidneyl
Copy link
Author

sidneyl commented Oct 1, 2014

Yes, if you run it on one line command. In programmer mode you can first ZL and in the next command you still have the routine you zloaded in your current partition, and $ZN is set with the routine name.
So try: ZL %SS
and the next command: P
and imagine that you want to type : ZS MyRoutine
By the way, If you run the P command alone it displays your Routine, and after that, anything you type displays the message: "Client query unrecognized:"
I understand that if you run ^%PMODE it get out of your control.
Another issue: if you run for example D ^%RD to list the routines it closes the web socket. I think it's because it uses the USE command.

@nikitaeverywhere
Copy link
Member

Sidneyl, thank for your issue.

Yes, currently we have some problems with USE command in routines and programs, because they have different arguments for TCP and TRM devices. Currently we are searching for available solutions and methods. I believe we will solve this as soon as possible.

Routine screen editor is a good idea, thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants