Weird problem using standard Trim function using unicode
Delphi XE4In our scripts we are using the Trim function, but it does something weird with Unicode stringsA short explanation about the scriptsSuccess signals if the outcome is correct (we can set this...
View ArticleImporting Interfaces
Hello guys:I´m trying to use an Interface in Pascal Script and I´m having some issues. procedure SIRegister_IXMLNode(CL: TPSPascalCompiler); begin //with RegInterfaceS(CL,'IUNKNOWN', 'IXMLNode') do...
View ArticleLoading pre compiled script in RemObjects Pascal Script (Delphi)
Hi. I am trying to precompile Pascal Script(s) in Delphi 6. (Using RemObjects Pascal Script for Delphi - 3.0.49.861) I then want to load them back at a later time in my application so they can be run.I...
View ArticlePascal Script in C++ Builder
Dear developers!I try use PascalScript in Embarcadero Rad Studio XE2. My application is C++ Builder source. I recompiled Delphi file to HPP files and made Library and included in my project....
View ArticleBug when idispatch is enabled record properties will not work in class
To reproduce the bug you have to import this unit:unit testClass;interfaceuses Classes;type TEvResultType = (restInt, restDouble, restString, restBool, restError); TEvResult = record case Kind :...
View ArticleBug in division
When I division two numbers:100/3result is 33. Of course that result is bad. Is not Integer number, it is Double.Do not be surprised if I made 100 div 3.The problem is no comma.Try, 100/3.0 or...
View ArticlePascal Script and CoInitialize
Hi, I'm using RO Pascal Script for a while now. I would also like to use com objects in Pascal Script. I've added the necessary code like SIRegister_ComObj(x) and RIRegister_ComObj(se)). When I compile...
View Articlearray of const
hi guysfirst of all congratulation for your work, very very well done!I'm a fpc programmer and I'm experimenting with your interpreter, so, sorry if I ask trivial things.With free pascal I wrote a...
View Articlefpc can't compile package pascalscript.lpk on linux 64 bit
hi allas in object package compilation fails with message:/usr/share/lazarus/1.0.4/components/pascalscript/Source/x64.inc(144,12) Error: Asm: [push mem32] invalid combination of opcode and operandsmy...
View ArticleUnicode string concatenation
I am trying to go around the ANSI source code limitations by preprocessing the script and replacing Unicode characters inside strings with explicit character codes (e.g #1074). Everything works fine...
View ArticlePascalScript and XE2 X64
I can compile PascalScript with XE2 as x64 and it works fine with one exception:Functions with a string return type crash with access violation.But this belongs only to functions which defined with...
View ArticleWhat about support for Unicode?
What about full Unicode support? Why Arabian Language (and Chineese i think too) not correctly support, but Russian for example working properly?This small script (for example) always return "63" for...
View ArticlePascal script - CreateHeapVariant for RECORD
Hi guys!I'm trying to create a heap variable for a TRect type, what is a record.How can I assign the value for this variable?This is a example how I'm doing to create a string variable: Param :=...
View ArticleHow to call TPSExec.RunProc passing SET OF....
I have this script: procedure calc(options: TMyOptions); begin end; On script compile USES I have added the SET OF declaration type: Sender.AddTypeS('TMyOption', '(op1, op2, op3)');...
View ArticleClosures in Pascal Script
For years I developed maXbox as a GUI for PS like a scripter tool and inbuilt delphi engine in one exe!Now I want to know if somebody knows a need for closures (anonymous functions) in Pascal Script...
View ArticleUTF8 Script source supported on xe2 ?
Hello, is utf8 script supported ? Is it planned ?Rad studio XE2
View ArticleCalculation error
I think it was already discussed in the past but I couldn't find it and the problem still exists in the SVN version (using D7):These two lines give a different result:var f, d: double;f := 1.0; d :=...
View ArticleHow to support overload methods in PascalScript?
TStrings class in Delphi XE has these 2 methods: procedure LoadFromStream(Stream: TStream); overload; virtual; procedure LoadFromStream(Stream: TStream; Encoding: TEncoding); overload; virtual;How may...
View Articleproblem of could not call proc error
I am creating a new object say 'motors' and I define it for the compiler by//sender is a TPSScript //functions defined:procedure Tmotorsgetdepart(Self: motors; var T: integer); begin T := Self.fdepart;...
View Article