Quantcast
Channel: Pascal Script - RemObjects Connect
Browsing latest articles
Browse All 32 View Live

Script engines

Is it possible to incorporate other scripting engines into the Delphi version of DA? I'm thinking of the Linux/FPC case where ECMAScript isn't yet available.Thanks, Bob

View Article


SetLength procedure

Hi,When calling SetLength in PascalScript, is added space in a string or array undefined, or guaranteed filled with zero?What about SetArrayLength in the same regard?

View Article


PChar bug

The following code:var p : PChar; s : string;begin p:='123'; s:=p; Writeln(s);end.Results in '12', not '123'.

View Article

Wrong error position for "period ('.') expected"

Hi,When using non-visual class TPSPascalCompiler, for the following codebegin {any code here}end;the error is fired "period ('.') expected" - this is right - but the error always has wrong position...

View Article

{$I filename} directive does not support full file path

Hi,The {$I filename} compiler directive can only take file path which is relative to the script executing .exe file. If I try to use absolute file path, the .exe path is appended to it, resulting in...

View Article


How do I monitor compile progress?

I've implemented PascalScript plus an editor into one of our tools, and we use it for code testing (call a lot of stuff from the script and check results). Which means I've got a "huge" (20 KB) script...

View Article

Multidimensioal arrays

Is support for multidimensional arrays planned?What workaround to use for now - array of array?

View Article

TCollection class bug

Here is an example script (tested under Delphi 7):var a : TCollection; b : TCollectionItem;begin a:=TCollection.Create; b:=a.Add; {***Access violation at runtime here***}end.

View Article


TBits component bug

Hi,I am using Delphi 7 and the latest PascalScript. Here are examples showing a bug in TBits component:var a : TBits;begin a:=TBits.Create; a.Size:=10; {Access violation at runtime}end.var a :...

View Article


TParser class bug

Hi,In uPSC_classes.pas, procedure SIRegisterTPARSERlineRegisterMethod('procedure Error(Ident:Integer)');should beRegisterMethod('procedure Error(const Ident: String)');Regards,Dmitry.

View Article

TParser class bug #2

Yet another bug in uPSC_classes.pas, in procedure SIRegisterTPARSER :lineRegisterMethod('function TokenInt:LongInt');should beRegisterMethod('function TokenInt: Int64');At least this is true for Delphi...

View Article

Is PascalScript supports Delphi XE2 Win64 platform?

As subject. Thanks.

View Article

problem 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


How 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 Article

Calculation 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 Article


UTF8 Script source supported on xe2 ?

Hello, is utf8 script supported ? Is it planned ?Rad studio XE2

View Article

Closures 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 Article


Int64 support

Inc, Dec, Low, and High routines do not support Int64 variables.

View Article

How 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 Article

Pascal 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 Article

What 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 Article


PascalScript 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 Article


Unicode 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 Article

fpc 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 Article

array 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 Article


Pascal 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 Article

Bug 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 Article

Bug 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 Article

Pascal 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 Article



Loading 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 Article

Importing 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 Article

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 Article
Browsing latest articles
Browse All 32 View Live


Latest Images