Search found 134 matches

by pwdiener
Fri Jul 27, 2012 3:39 pm
Forum: Tutorials, Tips and Tricks
Topic: Python Language Tutorial
Replies: 6
Views: 15105

When I execute the sample program via the DOS shell or via the run as script menu item, it works just fine. My problem occurs when I try to run it via the F10 (MacroExecuteScript) key. When I enter the name of the script file (containing the sample program), I get the result shown previously. I stil...
by pwdiener
Fri Jul 27, 2012 3:18 pm
Forum: Reporting a Bug
Topic: Inconsistent/Incorrect Brace Matching
Replies: 16
Views: 12861

Yes, I remember that from some previous discussions about brace matching. There are no quoted strings in the pattern above. Another thing I noticed is that the matching sometimes appeared to be looking at the previous character and looking for it's match. I would expect it to look at the character a...
by pwdiener
Thu Jul 26, 2012 6:54 pm
Forum: Tutorials, Tips and Tricks
Topic: Python Language Tutorial
Replies: 6
Views: 15105

I've resolved the python.exe not found issue by installing Python 2.7 (duh) and adding it to the path, but still get similar results. Running 3.97 beta9, BTW.

Bill Diener
by pwdiener
Thu Jul 26, 2012 6:29 pm
Forum: Tutorials, Tips and Tricks
Topic: Python Language Tutorial
Replies: 6
Views: 15105

What should the Compiler command line be set to for this? Mine was set to python.exe "$fn", and I got an error that python.exe could not be found. I'm using your example program from above - I copied it and deleted the blank lines. I tried pythonc.exe too, and got -----------------------------------...
by pwdiener
Thu Jul 26, 2012 5:25 pm
Forum: Reporting a Bug
Topic: Inconsistent/Incorrect Brace Matching
Replies: 16
Views: 12861

As an aside, it would also be nice to have syntax that supported more than 9 captures in a replace string. I'm not sure what it should look like, though - sometimes I might want \11 to be the first capture followed by a 1, other times the 11th capture is what I want. I guess that's why there isn't s...
by pwdiener
Thu Jul 26, 2012 5:08 pm
Forum: Reporting a Bug
Topic: Inconsistent/Incorrect Brace Matching
Replies: 16
Views: 12861

Inconsistent/Incorrect Brace Matching

I've been developing a somewhat complicated regex for a macro I'm trying to put together, and appear to have hit some threshold where brace matching stops working predicatably. The regex is: ^......[^\*][ ]*((([0-9][0-9]|FD|SD|RD|CD)[ ]+)?(([a-zA-Z0-9_-]+)([ ]+SECTION([ ]+([0-9]*))?)?[.]?))?[ ]*COPY...
by pwdiener
Wed Jul 25, 2012 5:13 am
Forum: General
Topic: Compiler Errors
Replies: 9
Views: 7010

Hi, Jussi, No, not urgent. I did that one too as a macro. I still think it would be a good keyboard function, and I also think the ability to configure what part of the message displays in the status area would be a good feature, but I've done essentially both of them for now, so no urgency here. Bill
by pwdiener
Wed Jul 25, 2012 2:18 am
Forum: General
Topic: Compiler Errors
Replies: 9
Views: 7010

Well, I didn't know it was going to be hard, so I did it today. :D I've written a set of 4 macros, ErrorCurrent, ErrorNext, ErrorPrevious, and ErrorCurrentDisplay. They primarily use the CompilerErrorXXX functions, but have some code before and after using them. The code before attempts to identify ...
by pwdiener
Tue Jul 24, 2012 7:13 pm
Forum: General
Topic: Undocumented Keyboard Functions
Replies: 1
Views: 2603

Undocumented Keyboard Functions

Jussi, While looking at keyboard mappings and keyboard functions, I developed the following list of functions shown in the keyboard mapping dialog box but not appearing in the documentation. It's fairly obvious what most of them mean, but there are a couple that are not. Just FYI. ActivatePrevious A...
by pwdiener
Tue Jul 24, 2012 7:09 pm
Forum: General
Topic: Keyboard functions to change windows
Replies: 1
Views: 2668

Keyboard functions to change windows

I've been looking at the keyboard functions to manipulate the current window. In the help file, I see WindowNext and WindowPrevious. In the keyboard function list, I see WindowNextFocus and WindowPreviousFocus (not in the help file). I can see the differences in behavior between the 2 - WindowNext/W...
by pwdiener
Tue Jul 24, 2012 5:09 pm
Forum: General
Topic: Compiler Errors
Replies: 9
Views: 7010

Well, it appears that something in my installation was not quite right, because when I re-installed the beta and restored the configuration, it started working as expected. Not sure what the problem was. The only other change was moving from beta6 to beta9, and that seems unlikely. My next issue is ...
by pwdiener
Fri Jul 20, 2012 5:20 pm
Forum: General
Topic: Compiler Errors
Replies: 9
Views: 7010

That's almost exactly what I did, but no joy. I had not used the Options/Properties way of getting to the document type properties, but when I did I saw exactly what I (and you) described. I just got to it through the Options/Document Type menu and selecting the COBOL document type. In the sample er...
by pwdiener
Thu Jul 19, 2012 5:58 pm
Forum: General
Topic: Compiler Errors
Replies: 9
Views: 7010

Compiler Errors

I'm working with a COBOL compiler on an AS/400, and would like to integrate it with Zeus. There are a number of tasks that need to be accomplished for this, but one key one is to be able to take the error list from the compiler and integrate it with Zeus's normal compile error handling, i.e. show th...
by pwdiener
Fri Jul 13, 2012 1:36 am
Forum: Reporting a Bug
Topic: is_modified macro function
Replies: 2
Views: 3842

OK, good - I've got answers to the real questions I had, and learned a little more about LUA in the process. Your suggestion was almost exactly what I had in mind if it turned out that the is_modified was no longer true in the save postfix. I'll get that implemented tomorrow. As far as the SaveAs ha...
by pwdiener
Thu Jul 12, 2012 9:38 pm
Forum: Reporting a Bug
Topic: is_modified macro function
Replies: 2
Views: 3842

is_modified macro function

Is the is_modified macro function broken? It appears to be returning true regardless of the actual modification state of the buffer. I'm using the following LUA macro to test: function key_macro() if is_modified() then message(macro_tag("$FN") .. " is modified.") else message(macro_tag("$FN") .. " i...