Code Comments
Programming Forum and web based access to our favorite programming groups.Just as an (amusing???) follow-up to the current discussion on HIGH-VALUES a nd LOW-VALUES, I thought I would mention the following: The '85 Standard (and I assume all earlier ones) allows one to MOVE - QUOTE - HIGH-VALUES - LOW-VALUES - all "literal" *> with alphanumeric characters in the literal to a NUMERIC (any usage - I think) receiving field - in SOME very rare cases LOW-VALUES *might* be a "DISPLAY" zero or HIGH-VALUES a display nine, but I suspect this is INCREDIBLY rare. When QUOTE is a numeric integer, is even m ore problematic. The '02 Standard made this "archaic" (not obsolete) and the draft of the '0 8 Standard gives some more examples of when this would work - but not as expec ted, e.g. 05 Num1 Pic 99V99 .. Move All "9" to Num1 Evaluate Num1 when 99.99 Display "You might think so - but NO" when 99.00 Display "This is standard - but is it expected?" End-Evaluate P.S. The '02 Standard introduced "Function Highest-Algebraic" (and Lowest-Algebraic) to give the "expected" results for the above code. -- Bill Klein wmklein <at> ix.netcom.com
Post Follow-up to this messagePowered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.