× Components and Libraries for Scripting Development, discussions, problems and suggestions

Question pl_magicscript

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Away
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
1 year 3 months ago #14894 by Sternas Stefanos
Replied by Sternas Stefanos on topic pl_magicscript
You can attach here any change to pl_MagicScript API.
We will test it and add to LAB CT

PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

  • LuZZZZi
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
1 year 2 months ago #14935 by LuZZZZi
Replied by LuZZZZi on topic pl_magicscript
Hello Guys,

I do have a problem with this package. See pictures



I have checked for double definition but the program crashes every time. Do you have a tip how can I clear this behavior?

Thx
Attachments:

Please Log in or Create an account to join the conversation.

  • LuZZZZi
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
1 year 2 months ago #14936 by LuZZZZi
Replied by LuZZZZi on topic pl_magicscript
I have found that issue. I have made a double definition. Sorry.


Thx

Please Log in or Create an account to join the conversation.

More
1 year 2 months ago #14937 by Matis A.
Replied by Matis A. on topic pl_magicscript
Thanks
have fun

PilotLogic Core Programmer

Please Log in or Create an account to join the conversation.

  • LuZZZZi
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
1 year 2 months ago - 1 year 2 months ago #14962 by LuZZZZi
Replied by LuZZZZi on topic pl_magicscript
Hi there,

I'm not able to use more then 2 units in the uses clause. The third one wasn't found. The error message was "Unable to open file".


Thx
Last edit: 1 year 2 months ago by LuZZZZi.

Please Log in or Create an account to join the conversation.

  • LuZZZZi
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
1 year 2 months ago #15000 by LuZZZZi
Replied by LuZZZZi on topic pl_magicscript
Hi,

uses clause is working ok, because I have forgotten to add the extension to an added unit.



Thx

Please Log in or Create an account to join the conversation.

More
1 year 2 months ago - 1 year 2 months ago #15001 by Matis A.
Replied by Matis A. on topic pl_magicscript
Thanks Sir
have fun

PilotLogic Core Programmer
Last edit: 1 year 2 months ago by Matis A..

Please Log in or Create an account to join the conversation.

  • LuZZZZi
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
1 year 3 weeks ago #15144 by LuZZZZi
Replied by LuZZZZi on topic pl_magicscript
Hi guys,

I would like to register this source code:

AnchorAlign: array[TAlign] of TAnchors = (
[akLeft, akTop],
[akLeft, akTop, akRight],
[akLeft, akRight, akBottom],
[akLeft, akTop, akBottom],
[akRight, akTop, akBottom],
[akLeft, akTop, akRight, akBottom],
[akLeft, akTop] );

Is it possible to use Register_ConstWithType?


Thx

Please Log in or Create an account to join the conversation.

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Away
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
1 year 3 weeks ago - 1 year 3 weeks ago #15146 by Sternas Stefanos
Replied by Sternas Stefanos on topic pl_magicscript
This is a Variable Sir
NOT Const

PilotLogic Architect and Core Programmer
Last edit: 1 year 3 weeks ago by Sternas Stefanos.

Please Log in or Create an account to join the conversation.

  • LuZZZZi
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
1 year 3 weeks ago - 1 year 3 weeks ago #15151 by LuZZZZi
Replied by LuZZZZi on topic pl_magicscript
No Sir. It is a structure out of the controls unit.

See here: lazarus-ccr.sourceforge.io/docs/lcl/controls/anchoralign.html

Thx
Last edit: 1 year 3 weeks ago by LuZZZZi.

Please Log in or Create an account to join the conversation.

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Away
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
1 year 3 weeks ago - 1 year 3 weeks ago #15152 by Sternas Stefanos
Replied by Sternas Stefanos on topic pl_magicscript
No Sir, I don't think it's possible, but you can test this...

oh
www.pilotlogic.com/codetyphon/webhelp/lc...ols/anchoralign.html

More in our Wiki
here...

PilotLogic Architect and Core Programmer
Last edit: 1 year 3 weeks ago by Sternas Stefanos.

Please Log in or Create an account to join the conversation.

  • LuZZZZi
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
1 year 3 weeks ago #15153 by LuZZZZi
Replied by LuZZZZi on topic pl_magicscript
Can you please give me a small example how to use Register_ConstWithType.

Thx

Please Log in or Create an account to join the conversation.

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Away
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
1 year 3 weeks ago - 1 year 3 weeks ago #15154 by Sternas Stefanos
Replied by Sternas Stefanos on topic pl_magicscript
Sir
TmscrScript don't have Register_ConstWithType procedure

Some of CodeTyphon elements can't register to MagicScript.
It's a scripter, NOT a Pascal compiler.

If you want to Register ALL elements of CodeTyphon to MagicScript
then I think you are in a wrong way.

This is the common problem of Scripters Developers and users.
They want to Register many elements of the programming tool in a Scripter
and to make the scripter same with the compiler or like a compiler.

But this is not possible.

..

PilotLogic Architect and Core Programmer
Last edit: 1 year 3 weeks ago by Sternas Stefanos.

Please Log in or Create an account to join the conversation.

  • LuZZZZi
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
1 year 3 weeks ago #15155 by LuZZZZi
Replied by LuZZZZi on topic pl_magicscript
Hi Sternas,

I know that I can't register all types of Pascal syntax and you are right that the Register_ConstWithType is not a public function. I'm converting pascal source as much as possible to a script.


Thx

Please Log in or Create an account to join the conversation.

  • LuZZZZi
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
9 months 3 weeks ago #15423 by LuZZZZi
Replied by LuZZZZi on topic pl_magicscript
Hi guys,

I would like to get the defined values of a registered enumeration type Register_Enum('TMyName','mnOne,mnTwo,mnTree');
I would like to get the enumeration values. I have got the the TmscrVarForBase class via the Find function. But I'm not able to get the enumeration values as a string.
I'm able to get them?


Cheers

Please Log in or Create an account to join the conversation.

  • LuZZZZi
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
2 weeks 18 hours ago #16208 by LuZZZZi
Replied by LuZZZZi on topic pl_magicscript
Dear Sirs,

is it possible to set the FClassRef property of TmscrVarForClass from private to public?


Thx

Please Log in or Create an account to join the conversation.

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Away
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
2 weeks 18 hours ago #16209 by Sternas Stefanos
Replied by Sternas Stefanos on topic pl_magicscript
TmscrVarForClass has
property ClassRef: TClass read FClassRef;   

PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

  • LuZZZZi
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
2 weeks 14 hours ago #16210 by LuZZZZi
Replied by LuZZZZi on topic pl_magicscript
Thx Sir.

My intension is to register a class by name. I believe that this is not possible in the moment.
Register_Class(AClass, 'TPersistent','TMyClass');

Thx.

Please Log in or Create an account to join the conversation.

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Away
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
2 weeks 14 hours ago - 2 weeks 14 hours ago #16211 by Sternas Stefanos
Replied by Sternas Stefanos on topic pl_magicscript
Yes is NOT possible yet.
We will move Code from pl_TitanScript to pl_MagicScript for this.
But we need time.
This month, in our LAB, we focus at "Database" CT components layer.

So, we need and your help if this is possible...

PilotLogic Architect and Core Programmer
Last edit: 2 weeks 14 hours ago by Sternas Stefanos.

Please Log in or Create an account to join the conversation.

  • LuZZZZi
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
2 weeks 13 hours ago #16212 by LuZZZZi
Replied by LuZZZZi on topic pl_magicscript
I need more specific infos about your "Database" project to made a decision to help you.


 

Please Log in or Create an account to join the conversation.