- Forum
- CodeTyphon Studio
- CodeTyphon Studio Components and Libraries
- Scripting Development
- pl_magicscript
Question pl_magicscript
- Sternas Stefanos
-
- Away
- Moderator
-
- Ex Pilot, M.Sc, Ph.D
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
-
- Posts: 46
- Thank you received: 0
Attachments:
Please Log in or Create an account to join the conversation.
- LuZZZZi
- Topic Author
- Offline
- Junior Member
-
- Posts: 46
- Thank you received: 0
Thx
Please Log in or Create an account to join the conversation.
- Matis A.
-
- Offline
- Moderator
-
- LuZZZZi
- Topic Author
- Offline
- Junior Member
-
- Posts: 46
- Thank you received: 0
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
Please Log in or Create an account to join the conversation.
- LuZZZZi
- Topic Author
- Offline
- Junior Member
-
- Posts: 46
- Thank you received: 0
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.
- Matis A.
-
- Offline
- Moderator
-
Please Log in or Create an account to join the conversation.
- LuZZZZi
- Topic Author
- Offline
- Junior Member
-
- Posts: 46
- Thank you received: 0
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
-
- Away
- Moderator
-
- Ex Pilot, M.Sc, Ph.D
NOT Const
PilotLogic Architect and Core Programmer
Please Log in or Create an account to join the conversation.
- LuZZZZi
- Topic Author
- Offline
- Junior Member
-
- Posts: 46
- Thank you received: 0
See here: lazarus-ccr.sourceforge.io/docs/lcl/controls/anchoralign.html
Thx
Please Log in or Create an account to join the conversation.
- Sternas Stefanos
-
- Away
- Moderator
-
- Ex Pilot, M.Sc, Ph.D
oh
www.pilotlogic.com/codetyphon/webhelp/lc...ols/anchoralign.html
More in our Wiki
here...
PilotLogic Architect and Core Programmer
Please Log in or Create an account to join the conversation.
- LuZZZZi
- Topic Author
- Offline
- Junior Member
-
- Posts: 46
- Thank you received: 0
Thx
Please Log in or Create an account to join the conversation.
- Sternas Stefanos
-
- Away
- Moderator
-
- Ex Pilot, M.Sc, Ph.D
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
Please Log in or Create an account to join the conversation.
- LuZZZZi
- Topic Author
- Offline
- Junior Member
-
- Posts: 46
- Thank you received: 0
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
-
- Posts: 46
- Thank you received: 0
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.