Re: [Oorexx-users] Detecting invalid dates

2025-04-24 Thread Chip Davis
It's been a lo-o-o-ng time, but ISTR that I had an internal function that tried to convert it to Basedate and used Signal On Syntax catch it, then return a boolean.  But then, I can rarely remember where I put my car keys these days ... -Chip- On 4/24/2025 10:45 AM, P.O. Jonsson wrote: I have

Re: [Oorexx-users] Directory Function and creating a new directory.

2016-02-05 Thread Chip Davis
nd this won’t work either ADDRESS UNIX ‘PATH=$PATH:newdir’ because again > this only has effect for the duration of the ADDRESS command. Although to be > honest, you might be able to get around that one by using ADDRESS UNIX > ‘export PATH=$PATH:newdir' >> On Feb 5, 20

Re: [Oorexx-users] Directory Function and creating a new directory.

2016-02-05 Thread Chip Davis
ges the current environment, which is destroyed > when the Address command returns. So without some sort of BIF there is no > way to change directories. > > Sent by Magic! > >> On Feb 5, 2016, at 8:18 AM, Chip Davis wrote: >> >> Address UNIX >> 'c

Re: [Oorexx-users] Directory Function and creating a new directory.

2016-02-05 Thread Chip Davis
new directory (ever), see #2 below. > > Bert. > > Chip, > > The trouble with this suggestion is that a simple typo could *create* a > new directory, which must then be manually deleted. > Of course one could make the same mistrake with "mkdir" itself, but > there

Re: [Oorexx-users] Need help reading,writing to a "com" port

2016-02-04 Thread Chip Davis
Didn't seem to work, unless you meant "... w/o Les' appended advert". It certainly didn't prevent SF from appending one to your note... :-( -Chip- On 2/4/2016 7:06 PM, CVBruce wrote: > Test Reply w/o advert >> On Feb 4, 2016, at 6:45 AM, Les Koehler wrote: >> >> Thanks, Moritz! Yes, that woul

Re: [Oorexx-users] (no subject)

2016-02-04 Thread Chip Davis
IMHO this is a software blivet (Def: "50 kg of manure in a 40 kg bag"). The DIRECTORY() function is trying to do three things with the ability to return only one string: 1. Return the current directory 2. Create a new directory 3. Change to a new directory This is at least one operation

Re: [Oorexx-users] OK, what am I doing wrong? Question about the Directory Function

2016-02-03 Thread Chip Davis
The DIRECTORY() function has never been in VM (not even if you have SFS) because file system operations (as opposed to file operations) have never been (and should never be) the responsibility of a cross-platform language. Changing a directory is a "send a command to whatever OS you're on" ope

Re: [Oorexx-users] How to use HI, TS and TE in *nix (bash)

2015-09-07 Thread Chip Davis
I vote for 3 and 5. Path 1 is the default if we cannot come to a consensus, or the issue just fades away due to lack of an easy solution. Path 2 makes matters worse by drawing attention to the (useless) feature. Path 3 essentially deprecates a feature that duplicates existing functionality by

Re: [Oorexx-users] How to use HI, TS and TE in *nix (bash)

2015-09-06 Thread Chip Davis
OK, a couple of points: HI, TS, and TE belong to the set of CMS "immediate commands", a feature that goes 'way back to VM/370. Immediate commands provide an asynchronous mechanism that allows the user to interrupt an executing program and pass a command to it without the program issuing a read

Re: [Oorexx-users] Od behaviour when passing the ? symbol as an argument

2014-02-27 Thread Chip Davis
Mark is right, of course. Keep in mind that you are not passing '?' to Rexx per se; you're passing it as the second argument to the shell, which reads the shebang line at the top of your script and forks a child shell to run the Rexx interpreter. Meanwhile the shell has already processed the c

Re: [Oorexx-users] 4.2.0 test suite -- space in the path

2014-02-15 Thread Chip Davis
Actually Mark, I wasn't so much jerking your chain as venting (again) about the moronic decision to allow the only consistently parse-able separator (whitespace) to be allowed in an elemental name. UNIX started that, of course, but like Ctrl-Alt-Del, it took Microsoft to make it famous... The

Re: [Oorexx-users] Test run after upgrading to 4.2.0.9892 candidate (Good news, possible RXAPI upgrade problem, and maybe a problem with a RXQueue test)

2014-02-14 Thread Chip Davis
uh, Mark? This is Windoze we're talking about here. Applications go into "Program Files", photos go into "My Pictures", etc. Indeed, all user stuff goes into "My Documents" under the userid's directory in (Ra help us) "Documents and Settings". While I'll accept that the test suite might be co

Re: [Oorexx-users] Associate ooRexx CLI programs with powerShell?

2013-12-03 Thread Chip Davis
emplate' object...) But I guess it's pretty useless without the ability to drive cmdlets from ooRexx. Too bad, Powershell seems to be significantly better thought-out than DOS (that being a bar you could trip over). -Chip- On 12/3/2013 14:13 Mark Miesfeld said: > On Tue, Dec 3,

Re: [Oorexx-users] Associate ooRexx CLI programs with powerShell?

2013-12-03 Thread Chip Davis
I may be out in left field here, but I think Leslie is asking about creating a Windows shortcut that invokes the Powershell instead of the Command Prompt shell. I'm interested in the answer as well. In XP, when you Create Shortcut, it doesn't seem to give you any way to specify which shell you

Re: [Oorexx-users] Julian date to normal date

2013-11-30 Thread Chip Davis
* DateJ2S - Convert Date from 'yyddd' to 'mmdd' */ Parse Arg yy =3 ddd . Say Date('S',Date('B',19+(yy<=70)yy'0101','S')+ddd-1,'B') Exit 0 -Chip- On 11/30/2013 05:07 Staffan Tylen said: > Yup, that seems to w

Re: [Oorexx-users] Julian date to normal date

2013-11-29 Thread Chip Davis
[Sorry, forgot to include the wrapping code] Parse Arg yy +3 ddd . Say Substr(Date('S',Date('B',19+(yy<=70)yy'0101','S')+ddd-1,'B'),3) -Chip- On 11/29/2013 14:53 Mark Miesfeld said: > On Fri, Nov 29, 2013 at 11:17 AM, Staffan Tylen > mailto:staffan.ty...@gmail.com>> wrote: > > I'm pl

Re: [Oorexx-users] Julian date to normal date

2013-11-29 Thread Chip Davis
Won't this work using the Standard date() function? Say Date('S',Date('B',19+(yy<=70)yy'0101','S')+ddd-1,'B') -Chip- On 11/29/2013 14:53 Mark Miesfeld said: > On Fri, Nov 29, 2013 at 11:17 AM, Staffan Tylen > mailto:staffan.ty...@gmail.com>> wrote: > > I'm playing around with the date()

Re: [Oorexx-users] ooDialog VS 2012 with SP3, compiled on Win7, running on XP SP3

2013-10-30 Thread Chip Davis
On 10/30/2013 12:12 Staffan Tylen said: > > The directory containing agtctl_i.c has to be in the include path, > not the lib path. > > Aaah, silly me! > > No error messages so I guess it should be OK. ... BWAH-hah-hah-haaa... If I had a penny for every time I've said that! :-)) -Chip-

Re: [Oorexx-users] Manipulating stem array items

2013-08-19 Thread Chip Davis
David is correct about the .0 tail of a stem: it's no different from any other tail, except that EXECIO uses it (for DISKR operations only) as a place to stash the number of the highest tail it created. EXECIO does not pay any attention to it for DISKW, probably because it doesn't trust us to h

Re: [Oorexx-users] Method arguments and documentation

2013-02-17 Thread Chip Davis
You have _my_ gratitude and encouragement, Staffan! Nearly all Committers start out as "just a user". When you are able to make a valuable contribution, and learn to use the open source management tools safely, you'll likely be invited to join their vaunted ranks. Don't worry, you know how pa

Re: [Oorexx-users] Method arguments and documentation

2013-02-16 Thread Chip Davis
My view on this is that Staffan is definitively correct, and that Mark's time/energy is much better directed at code matters. This is not merely an academic issue; the syntax diagrams conflict with reality (and the blanket rule). How is this any less important than a typo in the method name in

Re: [Oorexx-users] Check for valid date or time

2013-02-01 Thread Chip Davis
Well, I don't know how "clever" it is, it just uses signal on syntax: /* Date Validator */ parse arg format, date signal on syntax name baddate b = date('B', date, format) return 1 baddate: return 0 Slightly modified for invocation from the command line: C:\Documents and Settings\

Re: [Oorexx-users] Edit control and setText

2013-01-13 Thread Chip Davis
Unless it's already documented as clearly as you've done here Mark, this would make an excellent addition to the ooDialog reference, imho. C.f. the flowchart describing the life-cycle of a Do-loop in the IBM Classic Rexx Reference. -Chip- On 1/13/2013 12:33 Mark Miesfeld said: > > Here is the

Re: [Oorexx-users] createListBox NOTIFY

2013-01-09 Thread Chip Davis
On 1/9/2013 17:12 Mark Miesfeld said: > On Wed, Jan 9, 2013 at 1:46 PM, Chip Davis <mailto:c...@aviatrexx.com>> wrote: > > On 1/9/2013 14:27 Staffan Tylen said: > > Aah, it was that simple, don't know why it didn't make sense to > me :( >

Re: [Oorexx-users] createListBox NOTIFY

2013-01-09 Thread Chip Davis
On 1/9/2013 14:27 Staffan Tylen said: > Aah, it was that simple, don't know why it didn't make sense to me :( > That is because the sentence has a "misplaced modifier", a chronic condition in contemporary English. And when it comes to clarity, there are few more insidious traps than the "only"

Re: [Oorexx-users] ooDialog - DragDrop - Esc Key

2012-01-07 Thread Chip Davis
As a mere user, my experience is that the Esc key cancels whatever the lowest level, multi-step, destructive operation currently in effect. This is handy when you are dragging a big file and suddenly discover that the place you want to drop it isn't visible. If there are higher functions also i

Re: [Oorexx-users] ooDialog - Drag/Drop - Mouse Coordinates

2012-01-05 Thread Chip Davis
On 1/5/12 17:26 Chip Davis said: > Don't remember how realizability's was handled. Stupid auto-correct: ^ :-/ -Chip- -- Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don

Re: [Oorexx-users] ooDialog - Drag/Drop - Mouse Coordinates

2012-01-05 Thread Chip Davis
on an individual window. Don't remember how realizability's was handled. Thanks for all your explanations. I'll have to look at Lee's code sometime. There's nothing like having a good example to learn from. -Chip- On 1/5/12 15:23 Mark Miesfeld said: > On Wed, Jan 4, 2012 a

Re: [Oorexx-users] ooDialog - Drag/Drop - Mouse Coordinates

2012-01-04 Thread Chip Davis
Mark, the last time I wrote a dialog app it was in OS/2, so what I haven't forgotten is not applicable. I'm enjoying following your discussion here, regardless. One of my pet peeves as a user, however, are non-resizable windows that are ignorant of the current font size. Sometimes I use my la

Re: [Oorexx-users] RXMATH

2010-12-23 Thread Chip Davis
Not so fast. Speaking as an unashamed grammar/spelling nag who was eating, shooting, and leaving long before the book came out, this is one case where the best rule is to go with what sounds most natural to the ear. http://en.wikipedia.org/wiki/Data et cetera Robert is correct as to the or