× 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
7 months 2 weeks 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
7 months 6 days 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
7 months 6 days 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
7 months 6 days 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
6 months 3 weeks ago - 6 months 3 weeks 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: 6 months 3 weeks ago by LuZZZZi.

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

  • LuZZZZi
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
6 months 2 weeks 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
6 months 2 weeks ago - 6 months 2 weeks ago #15001 by Matis A.
Replied by Matis A. on topic pl_magicscript
Thanks Sir
have fun

PilotLogic Core Programmer
Last edit: 6 months 2 weeks ago by Matis A..

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

  • LuZZZZi
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
5 months 6 days 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
5 months 6 days ago - 5 months 6 days 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: 5 months 6 days ago by Sternas Stefanos.

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

  • LuZZZZi
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
5 months 6 days ago - 5 months 6 days 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: 5 months 6 days 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
5 months 6 days ago - 5 months 6 days 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: 5 months 6 days ago by Sternas Stefanos.

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

  • LuZZZZi
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
5 months 1 week 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
5 months 1 week ago - 5 months 1 week 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: 5 months 1 week ago by Sternas Stefanos.

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

  • LuZZZZi
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
5 months 1 week 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
2 months 5 days 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.