up Inquisit Language Reference

pct function

Returns an extent representing the given value as a percentage.

Member of

<global>

Syntax

pct(value)

Return Type

extent

Parameters

Name Type Description
value number A numeric value

Remarks

This function can be used when assigning a value that should be interpretted as an percentage to an extent property such as width or height.

Examples

The following sets the with of a shape to 50%.

shape.target.width = pct(50);

Copyright Millisecond Software, LLC. All rights reserved.