Opening Code (AREV Specific)
At 16 APR 2003 12:40:10PM C B wrote:
Hello, I am new to AREV and I need help opening up the code. I have been able to modify windows and menus. However, If an execute command is pointing at ACCT.620, I go to edit source acct.620 and it comes up all garbled. How do I go about opening and being able to read the code? Thanks
Clay
At 16 APR 2003 12:50PM [url=http://www.sprezzatura.com" onMouseOver=window.status= Click here to visit our web site?';return(true)]The Sprezzatura Group[/url] wrote:
When you say garbled? This makes it sound as though you're looking at object code not source. If you have determined that the program you are running is called say PROG1, EDIT VOC PROG1 from TCL. It would say RBASIC in line 1, file name in line 3 and routine name in line 4. You would then EDIT FILENAME $ROUTINENAME and look at the end of the object code. At the end of the object code will be the filename and rowname for the actual source. You should then be able to edit that.
World Leaders in all things RevSoft
At 16 APR 2003 03:22PM C B wrote:
Thanks for the post, however I am still having problems. If the function I am trying to edit is ACCT.620, I type EDIT VOC ACCT.620
I receive the RLIST, The table PROMPTS, and the row ACCT.620. I type EDIT PROMPTS ACCT.620, I receive some readable data, however, it is not in any programming language. It looks like:
22F212Preview Pass?2^PL^25212^PE…ECT.
I know I am doing something stupid, please help.
Clay
At 16 APR 2003 03:43PM [url=http://www.sprezzatura.com" onMouseOver=window.status= Click here to visit our web site?';return(true)]The Sprezzatura Group[/url] wrote:
That is not code - it is a report structure. Generated we'd guess without checking by the banded report writer or similar.
World Leaders in all things RevSoft
At 17 APR 2003 11:16AM C B wrote:
OK, if a menu command states EXECUTE SOURCE ACCT.620 and I type EDIT SOURCE $ACCT.620, then should I be able to see the actual source code? Because when I type this, I get all these strange characters such as faces, checkmarks and arrows. Is this also a report? Thank you for having this patience with me.
Clay
At 17 APR 2003 11:32AM Matt Sorrell wrote:
The $ACCT.620 record is the compiled object code.
To see the source code, type EDIT SOURCE ACCT.620. This will be the source code record. For completeness sake, the record *ACCT.620 is the symbol table, which you need for debugging.
At 17 APR 2003 01:04PM Don Miller - C3 Inc. wrote:
Clay ..
]]OK, if a menu command states EXECUTE SOURCE ACCT.620 and I type EDIT SOURCE $ACCT.620, then should I be able to see the actual source code? Because when I type this, I get all these strange characters such as faces, checkmarks and arrows. Is this also a report? Thank you for having this patience with me.
What you're seeing is the compiled executable OBJECT code. If you go to the end of the code (CTRL+PageDown and hit the END key), you'll see where the source code was when the program was compiled. That is where you have to go to edit/view it (IF YOU HAVE THE SOURCE CODE which may NOT be the case).
The EXECUTE statement runs the $ACCT.620 from the file SOURCE. The source code should be ACCT.620 although the object code might have been renamed just to make things more complicated or somesuch.
Don M.
At 17 APR 2003 03:18PM [url=http://www.sprezzatura.com" onMouseOver=window.status= Click here to visit our web site?';return(true)]The Sprezzatura Group[/url] wrote:
This is a tad weird Clay, EXECUTE SOURCE ANYTHING isn't actually valid per se. Could you record the code and command EXACTLY as shown in the menu?
We were working on the possibility that this was a banded report for which someone had generated the code and then modified it. Does it give the appearance of a Banded Report when output?
World Leaders in all things RevSoft
At 18 APR 2003 03:59AM Hippo wrote:
Unfortunately I have no RLIST records in VOC file…
(We have RLIST records in reports table. But these are readable …
16th field contains "TCT" and 17th field contains the TCL command)
If I interpret it wrongly and the first field of the VOC record is RBASIC, follow the instructions already given.
… At the very end of (almost unreadable) $record you will find location of its source code, and if you are lucky and it is in the system …
The $record location can be read directly in voc.