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 12:30PM
    FS was created under Win98.
  • edited 12:30PM
    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

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.