Greetings,
Using ooRexx v5.0 I was reminded that in my use of rxqueue, always the text ends up UPPERCASE. Example:
CheckEXIF: procedure expose LDSLogging
THISPhotoFile = arg(1)
THISPhotoDate = ''
THISCameraBrand = ''
EXIFqueue = RXqueue('create')
OLDqueue = RXqueue('set', EXIFqueue)
'exif "'THISPhotoFile'" | /usr/local/bin/rxqueue ' EXIFqueue
do queued()
pull THISline
if THISline~left(20) = 'DATE AND TIME (ORIGI' then
do
THISPhotoDate = THISline~substr(22, 10)~changeStr(':', '')
end
if THISline~left(20) = 'MANUFACTURER' then
do
THISCameraBrand = THISline~substr(22, 1)~upper()
end
end
rc = RXqueue('delete', EXIFqueue)
trash = RXqueue('set', OLDqueue)
THISreturn = THISPhotoDate || THISCameraBrand
.output~lineout(THISreturn)
return THISreturn
I must seek for 'DATE AND TIME (ORIGI' and MANUFACTURER' instead of the exact case I see the program output. I would think passing the data through rxqueue is responsible for the UPPERCASE transformation. Or is the do queued(), pull THISlineresponsible and the data really is within rxqueue CasePreserved?
I am thankful,
Michael Lueck
On Wednesday, September 20, 2023 at 6:27:20 AM UTC-4, Michael Lueck wrote:
rxqueue doesn't uppercase, but PULL does. Use PARSE PULL instead.do queued()
pull THISline
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 546 |
Nodes: | 16 (2 / 14) |
Uptime: | 36:51:33 |
Calls: | 10,392 |
Calls today: | 3 |
Files: | 14,064 |
Messages: | 6,417,159 |