Varcast function is missing in variants support
Original Reporter info from Mantis: FPCCore
-
Reporter name: FPC core team
Original Reporter info from Mantis: FPCCore
- Reporter name: FPC core team
Description:
It looks like the varcast function is missing from FPCs variant support.
"All integer, real, string, character, and Boolean types are assignment-compatible with Variant.
Expressions can be explicitly cast as variants, and the VarAsType and VarCast standard routines can be used to change the internal representation of a variant."
According to Michael, support for it is present in the variant manager, but the call is not exposed in the unit interface.
VarAsType works, though.
Additional information:
Reporter: scamp
EMail: scamp at untergrund dot net
Mantis conversion info:
- Mantis ID: 5900
- OS: All
- Version: 1.9.9
- Fixed in version: 2.0.2