[fpc-pascal] string variant

Jonas Maebe jonas.maebe at elis.ugent.be
Wed Aug 27 23:31:15 CEST 2008


On 27 Aug 2008, at 07:16, ik wrote:

> I've made the following example:
>
> program test_variant;
> uses variatns;
>
> var
>  my_var : Variant;
> begin
>  my_var := 'Hello World';
> writeln(my_var);
> end.
>
> The result is
> Fatal: illegal character "'�'" ($E2)

The program compiles fine here after I change "variatns" into  
"variants". You probably inadvertently inserted some (invisible) high  
ascii character somewhere in your source.


Jonas


More information about the fpc-pascal mailing list