Search found 134 matches

by pwdiener
Tue Aug 07, 2012 7:52 pm
Forum: General
Topic: Search/Replace Question
Replies: 4
Views: 4040

Search/Replace Question

Hi, Jussi, I'm trying to use the ReplaceNext() keyboard function in a LUA macro and running in to a bit of a problem. What I would like is for it to search forward from the current line and replace the next occurrece. I do not want to use the Replace Dialog to start this - what I would like is to se...
by pwdiener
Mon Aug 06, 2012 1:23 am
Forum: Reporting a Bug
Topic: Compiler Error Display
Replies: 2
Views: 3287

I'll send a copy of source, listing, and error files, as well as some saves of the .zerr files showing the (only slightly) different results from using "type" or the file_open_compiler functions. I'll also include the macro that I'm using, so you can see precisely how I'm calling file_open_compiler,...
by pwdiener
Mon Aug 06, 2012 1:18 am
Forum: General
Topic: Workspace FTP Config Items
Replies: 2
Views: 2337

Hi, Jussi, Yes, a couple of built-in macro functions like that would be useful to me. .NET makes writing an FTP program pretty easy, and then I have completely control of the mapping between local and remote names. But it would definitely be cleaner to not have to system() to some external program. ...
by pwdiener
Fri Aug 03, 2012 11:32 pm
Forum: Reporting a Bug
Topic: Compiler Error Display
Replies: 2
Views: 3287

Compiler Error Display

Hi, Jussi, I'm running in to an issue trying to display compiler errors. I'm writing a LUA script to handle the compile of a COBOL program on the AS400. The process is: 1) Submit a compile job to the AS400 2) Wait for it to complete 3) Download the compile listing via FTP 4) Analyze the listing to p...
by pwdiener
Fri Aug 03, 2012 11:13 pm
Forum: General
Topic: Workspace FTP Config Items
Replies: 2
Views: 2337

Workspace FTP Config Items

Hi, Jussi, I just noticed the configuration settings on the workspace config FTP tab dialog. This is 3.97n beta12. Are these settings accessible to macros at all? I've been planning to implement a couple of those as global setting strings for use in some macros I've written, but if these settings ar...
by pwdiener
Thu Aug 02, 2012 11:25 pm
Forum: General
Topic: Macro invocation key
Replies: 4
Views: 3262

OK, I guess I got hung up on the "load and execute" description of dofile, since I didn't want to execute at the time I loaded. But again, perhaps my LUA understanding is a bit too shallow. I've written quite a few macros now, but I don't really feel like I understand the deeper aspects of the langu...
by pwdiener
Thu Aug 02, 2012 10:36 pm
Forum: General
Topic: Macro invocation key
Replies: 4
Views: 3262

I've used argc and argv with event triggers, but never from the execute window. A useful thing to know... This is probably a dumb question, but how do I "include" a macro function in another one? That would be fine with me, but I couldn't see a way to do it. I know about dofile, and that would work ...
by pwdiener
Thu Aug 02, 2012 7:04 pm
Forum: Reporting a Bug
Topic: Inconsistent/Incorrect Brace Matching
Replies: 16
Views: 9716

Hi, Jussi

Just got done modifying my compiler error display macros to use the new error_message() function. This provided a dramatic simplification!! Thanks for being so responsive to questions and requests!

Bill Diener
by pwdiener
Thu Aug 02, 2012 5:35 pm
Forum: General
Topic: Macro invocation key
Replies: 4
Views: 3262

Macro invocation key

Hi, Jussi Is there a way to determine how a macro was invoked? Specifically, from the Execute Macro Script window, or from a keyboard mapping? It would also be useful to be able to tell WHICH key was used to invoke the macro. My specific use is to combine my 4 error display macros into one, since th...
by pwdiener
Thu Aug 02, 2012 5:16 pm
Forum: Reporting a Bug
Topic: Inconsistent/Incorrect Brace Matching
Replies: 16
Views: 9716

The brace matching works fine now, even in a .CBL document. I haven't given them a thorough workout yet, but get_window_type and error_message both seem to work well in my preliminary testing.

Thanks, Jussi.

Bill
by pwdiener
Wed Aug 01, 2012 11:39 pm
Forum: Reporting a Bug
Topic: Inconsistent/Incorrect Brace Matching
Replies: 16
Views: 9716

Excellent! I'll give these a try too.

The \A-\Z replacement strings work just fine for me. Thanks, Jussi!
by pwdiener
Mon Jul 30, 2012 3:40 pm
Forum: Reporting a Bug
Topic: Inconsistent/Incorrect Brace Matching
Replies: 16
Views: 9716

Cool! I'll give that a shot and let you know how it works for me.

I'll also try to track down what's causing the difference in brace matching between CBL and TXT files.

Bill
by pwdiener
Fri Jul 27, 2012 5:30 pm
Forum: Reporting a Bug
Topic: Inconsistent/Incorrect Brace Matching
Replies: 16
Views: 9716

Jussi, My regex example was in a file with a .CBL extension (even though it's obviously not COBOL code). When I put it in a file with a .TXT extension, it also appeared to work just fine. The coloring you mentioned is exactly what I do to make it very clear where the matching braces are. Why the app...
by pwdiener
Fri Jul 27, 2012 5:22 pm
Forum: Reporting a Bug
Topic: Inconsistent/Incorrect Brace Matching
Replies: 16
Views: 9716

Yes, you are right about the \A causing some potential confusion (e.g. in file names), both false positives and case issues. You could say the same about \1, but that is well-established convention so not really an issue. Since relatively few regex have so many captures, you could probably argue tha...
by pwdiener
Fri Jul 27, 2012 4:28 pm
Forum: Reporting a Bug
Topic: Inconsistent/Incorrect Brace Matching
Replies: 16
Views: 9716

I was playing around a bit with the extended captures (10-19) and they seem to work pretty well. There is a bit of an inconsistency though - if the 10th capture is null, the replacement value is \:, instead of \10 that might be expected. Not a big deal, just a momentary bit of confusion. Interesting...