Invalid variant again ??

I'm using FastScript 1.7 and Borland Delphi 7 Pro.
It's Strange, running script perfectly in Windows XP, but trouble in Windows 98. ;)

The error is "Invalid variant type".
When i debug.. the following error is in here

var myRes : String;
params : Variant; // Array variant;

begin
myRes := Params; <-- Crash here if varianttype = varOleStr (win98 Only)

//.....


is there any issue?
is fastscript compatible with Windows 95/98?

Thx

;)

Comments

  • edited 8:22PM
    FS was created under Win98.
  • edited 8:22PM
    Today i install win 2000 and it's crash also.

    In my program load a script that give a variant array result.
    I Found that a variant array result from fastscript. where combination from integer and string will "crash" on win 98 and 2000.

    // This is Fastscript
    var MyRes : variant;
    begin
    MyRes := VarArrayCreate([1,10], VarVariant);
    MyRes[1] := 1;
    MyRes[2] := 'B';
    end;


    //My Program
    var i : integer;
    begin
    For i := 1 to 2 do
    Showmessage(fastscript1.Variables); <-- this will crash on i=2
    end;


    It's only crash when variant array get combination integer and string, and parse it.
    Running on winXP only.

    Help me..





    ;)

Leave a Comment