Is it not imported in Simba ?
Any comfortable string reading solutions ?
RegardsCode:var list:TStringlist; begin list := TStringlist.Create; end;
caused
Edit:
NVM. Lape is just not supported. With Pascal Script only it will work.
Is it not imported in Simba ?
Any comfortable string reading solutions ?
RegardsCode:var list:TStringlist; begin list := TStringlist.Create; end;
caused
Edit:
NVM. Lape is just not supported. With Pascal Script only it will work.
Last edited by caused; 05-24-2016 at 12:45 PM.
It's exported to lape, just not identical to implementation in FPC, due to lack of support for various language features, and a difference in design. Same goes for a lot of other classes exported to lape from Simba.
Simba Code:var
list:TStringList;
begin
list.Init();
list.Add('works=...');
WriteLn(list.GetValues('works'));
list.Free();
end;
You know, if you look at the error raised with your code you should see that it exists, but your usage of it is wrong.
> Error: Unknown declaration "Create" at line 4
All getter, and setter properties, and all field variables have to be accessed indirectly, due to lack of propertiy support. The general rule is just to add a prefixing "Get" and "Set", and they are now functions. This rules applies to all wrappers of native classes, so TMufasaBitmap, TCanvas, TBitmap, TPen, TStream, TStringStream etc... etc. There are many classes exported, as many of them relies on eachother.
Last edited by slacky; 05-24-2016 at 01:58 PM.
!No priv. messages please
There are currently 1 users browsing this thread. (0 members and 1 guests)