Questions tagged [delphiscript]

DelphiScript is an OLE scripting language, like VBScript or JScript, but derived from Standard Pascal (not Object Pascal).

DelphiScript is an scripting language, like VBScript or JScript, but derived from Standard (not Object Pascal).

It has extensions to support OLE objects and the OLEVariant type. It then treats all Standard Pascal types as OLEVariant, or it does not support them if they do not fit that model -- pointers, files, records (replaced by untyped arrays). Declaring the type of a variable or parameter is allowed, but has no effect. Type definitions are not supported.

Another extension supports exception handling in the same way as Object Pascal does. DelphiScript supports almost all Standard Pascal operators and Standard Pascal routines (for example, mod, copy), minus those that deal with I/O or type conversions (e.g. str). Type conversions are implicit.

Standard Pascal routines are listed in the Delphi Help or Object Pascal Guide as belonging to System. There are no set operators, but they are replaced with procedures. DelphiScript itself does not support routines that do not belong to System. However, several of these are supplied through a plug-in extension, Utilities.

You should use this tag if your question is related with DelphiScript or its supported extensions.

6 questions
2
votes
0 answers

DelphiScript - String to DateTime/to 18 digit TimeStamp

I'm trying to automate some of my recurring tasks. Amongst other jobs, i want to automate the LDAP Account Creation. Since we have employes with fixed-term employment contract, i want to automatically set the deactivation Date of these LDAP-Accounts…
Blacky.17
  • 25
  • 5
1
vote
0 answers

How to make Dynamic Array in DelphiScript?

Apologizes, I am new to scripting in Altium, which uses Delphiscript. I am trying to make an array of TEdits, using an input number from a tedit. I followed this post to make the teditarray. In the line Type EditArray = Array of Tedit I get the…
Ethan Levy
  • 21
  • 1
0
votes
0 answers

Altium Script change net color

I use Altium 17 to write delphi scripts I want to set net color, but i got some problem. when code run to info.netcolor, showing undeclared identifier. how to fix it? procedure TForm1.Button17Click(Sender: TObject); var WS : IWorkspace; …
Stephen
  • 23
  • 2
0
votes
1 answer

Create an excel workbook/worksheet in Altium DelphiScript without installing plugins

I am currently extracting the Pin List - Pin Names in Altium Designer that uses DelphiScript (not Delphi). DelphiScript and Delphi has differences and I believe one of them is the file I/O component. According to the Altium Docs for DelphiScript,…
-2
votes
3 answers

Difficulties with ShellExecute() in DelphiScript

So, here's my code: Procedure exec; uses ShellApi; begin try ShellExecute( 0, 'Open', 'C:\ParamReport.Txt', nil,nil, SW_NORMAL); except ShowMessage('failed'); end; end; I am attempting to execute an external program, (regardless of type),…
-4
votes
1 answer

Quicksort script works, but heapsort one doesn't

I've been using a quicksort function to sort my stringlists, but as an exercise I wanted to try and code an heapsort function too. Unfortunately it does not work and I can't understand why. The utility functions I use work (because I use them in the…
Nonno
  • 1
  • 3