PxPlus User Forum

Twitter Twitter Twitter

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - James Crowther

Pages: [1]
1
Programming / VS Code Extension for PxPlus
« on: November 12, 2020, 01:20:32 PM »
I would like to edit PxPlus code using VS Code with some form of syntax highlighting.  Has anyone created a VS Code extension for PxPlus?

VS Code uses Textmate Grammar for syntax highlighting if anyone has a Textmate file that would save me some time.

Google did not produce much other than a vim syntax file created in 2005.

Thanks
James Crowther
Master Electronics

2
Programming / TCB(21) - Current activation flags.
« on: May 22, 2019, 01:33:06 PM »
I have 2 servers that are intended to be running same version of PxPlus.

Server 1 is reporting tcb(21) - 0073786900

Server 2 is reporting tcb(21) - 1073787250

Can anyone explain what these number represent?  The manual calls them "Current activation flags".

This came up due to the following legacy code causing an error at runtime on Server 1, but not on Server 2:
0010 x=tcb(window,1)

The tcb function seems to be ok with tcb(0,1), but no ok with tcb(window,1) in syntax.  Both servers show a syntax error if you try to change the line.  Listing the code show an error on Server 1 where the runtime error occurs, however listing on Server 2 does show an error and does not error at runtime.  I am somewhat confident the code is just bad since it is trying to get a window ID from TCB, but it has not been changed in a very long time and I would to understand why one server errors and the other does not before I remove the code.

Both servers are running PxPlus version 14.10 and tcb(32) and tcb(36) report the same values.

Thanks,
James
Master Electronics

3
Programming / Overiding or Modifying LOAD/SAVE Behavior
« on: April 04, 2019, 11:35:10 AM »
Is it possible to override or add to the functionality of LOAD/SAVE?  Due to integration with GIT and other versioning tools I would like to add functionality both before and after the normal behavior.

As an example I would like to ensure they are working within a branch before they load a program.  Once the load occurs I would like to execute some functionality to add the program to current branch if it is not already in it.

As a note I am not currently using the TortoiseSVN integration.

Thanks,
James
Master Electronics

4
Programming / Listing a program to a channel
« on: February 05, 2019, 12:05:04 PM »
When listing a program to a channel
list (my_channel)

Pxplus is breaking up the listed line if it is too long.
Rather than this in the file:
0010 print x$;print y$

I get something like this:
0010 print x$;pr
0010:int y$

How do I get the list to have each line complete?

Thanks,
James
Master Electronics

Pages: [1]