[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index]
[Date Index]
[Thread Index]
[SQR-USERS Info]
[SQRUG Home Page]
RE: [sqr-users] possible bug
Jay,
I agree, but I don't think it used to work that way. I am sure I have
gotten compile errors before if the show isn't correct.
clark
PSA: Salary <> Slavery. If you earn a salary, your employer is renting your
services for 40 hours a week, not purchasing your soul. Your time is the
only real finite asset that you have, and once used it can never be
recovered, so don't waste it by giving it away.
"Time is the coin of your life. It is the only coin you have, and only you
can determine how it will be spent. Be careful lest you let other people
spend it for you."
Carl Sandburg
(1878 - 1967)
----Original Message Follows----
Clark,
The fact that SHOW allows continuation over multiple lines is great! Makes
it much more useful than DISPLAY. Consider the following:
show 'For employee '
$Emplid '-' #Empl_rcd edit '9'
', starting from ' $Input_Date edit 'MM/DD/YYYY'
', we processed '
#Rec_read edit '88,889'
' records.'
Regards...jay
-----Original Message-----
Kathy,
the command 'show leaving curr = |' $currency_cd '|' should cause a compile
error, because there is no command 'show .... I should be getting some kind
of error because it should be treating everything between the ticks as a
literal string, yet it is executing the show...... oh, wait, I see what is
happening, but I don't know why - it is treating the show statement within
the #ifdef and the string outside as a concatination of just one string. I
would not have expected it to work that way because show is supposed to stop
at the end of a line...... Hmmm, on further testing a quoted string on a
line following a show with a quoted string will just concatenate the two
strings together. I just thought it would stop the show at the end of the
line.
learn something new every day, and the day isn't a complete loss.
clark 'the dragon' willis
----Original Message Follows----
What do you think it should look like?
>From what I see, the output is correct for what you have.
-----Original Message-----
Hi all,
I think I found an sqr bug, but it doesn't cause anything to crash, when I
would have expected a compile erro at the least. I fat-fingered the
following lines in a procedure:
#ifdef debugb
show 'Exiting GET THE RECORDS'
#endif
'show leaving curr = |' $currency_cd '|' <----- look at first tick
end-procedure ! GET THE RECORDS
and in my log file it prints like this:
Exiting GET THE RECORDSshow leaving curr = |USD|
weird, huh? Can anyone explain this behavior?
clark 'the dragon' willis
_________________________________________________________________
Add photos to your messages with MSN 8. Get 2 months FREE*.
http://join.msn.com/?page=features/featuredemail
_______________________________________________
sqr-users mailing list
sqr-users@sqrug.org
http://www.sqrug.org/mailman/listinfo/sqr-users