RECEIVE / LOCAL Statements

Overview

RECEIVE statements should follow the same rules as defined for a SET statement.

LOCAL statements should follow the same rules as defined for a RESTORE (DEFAULT VALUE) statement.

Test Plan

  1. For each of the types (Date, Format, Logic, Numeric, Text, Token), perform 4 tests: PASS from type into Unicode, PASS from type into National, PASS from Unicode into type, PASS from National into type.
  2. Test Raw to National and back (with/without transcode error)
  3. Test Raw to Unicode and back (with/without transcode error)
  4. Test Unicode to Unicode
  5. Test National to National
  6. Test Unicode to National and back (with/without transcode error)
  7. Test Truncation & padding
  8. Test all encoding to see if they act as a RESTORE (DEFAULT VALUE).

Bugs

  1. Assign a value like 10. to --- X, and PASS that into a subroutine (shared). RECEIVE it as a National or Unicode field type, and append a one to the string, then exit. After the subroutine returns, --- X will contain 101.000000000000. Note all the trailing zeros, this doesn't happen under 5.0.3, or if you use a Raw type field. If you PASS --- X again into a National or Unicode field, it will receive all the trailing zeroes and the string will contain 101.000000000000 instead of just 101.

-- PeteBrower - 2011-03-17

Edit | Attach | Watch | Print version | History: r6 < r5 < r4 < r3 < r2 | Backlinks | Raw View | Raw edit | More topic actions...
Topic revision: r3 - 2011-04-20 - JeanNeron
 
  • Edit
  • Attach
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback