Page 1 of 1

Assignment to complex type fails in some cases

Posted: 20 Mar 2006 09:23
by zristic
Bug ID: #060320002
Submitted by: Rackley

Severity: Moderate
Status: Fixed in v5.03.

Description:
Assignment to complex types larger than byte fails:

Code: Select all

  MyWordArray[i] := 123; <- only lower byte of MyWordArray[i] is updated
Workaround:
Typecasting solves the problem:

Code: Select all

  MyWordArray[i] := word(123);