#1 2007-01-10 11:50

fjord
Member
From: Denmark
Registered: 2006-08-25
Posts: 43

Parameter input to script?

Just a thought... Could a PascalScript rule be given a parameter input field? I'm thinking that the "statement" field could contain a string which could be read by the script. That would presumable require an additional text box on the script dialog. I was just thinking it would be nice to have a way to cleanly expose variable input parameters for a script. Example I was thinking of was to modify your Hours span script to change file dates by adding or subtracting time...and the input parameter would be the amount of time to add.

Last edited by fjord (2007-01-10 12:17)

Offline

#2 2007-01-10 15:04

den4b
Administrator
From: den4b.com
Registered: 2006-04-06
Posts: 3,379

Re: Parameter input to script?

Nice thought! wink

But I have to say "no". This is the case when "effort" is much bigger than "advantage".

You can define all of your variables at the top of the script as CONST (constants):

const
  VARIABLE1 = 'value';
  VARIABLE2 = 0;
  .....

Offline

#3 2007-01-10 15:32

fjord
Member
From: Denmark
Registered: 2006-08-25
Posts: 43

Re: Parameter input to script?

Yes, I suspected that idea was probably destined for the circular file.

Offline

Board footer

Powered by FluxBB