RISC OS Open
Safeguarding the past, present and future of RISC OS for everyone
ROOL
Home | News | Downloads | Bugs | Bounties | Forum | Documents | Photos | Contact us
Account

*SetMacro

Programmer's Reference Manuals
» *Commands
» *SetMacro

*SetMacro

Use

This *Command assigns an expression to a system variable. The expression is evaluated each time the variable is used.

Syntax

*SetMacro var_name macro

Parameters

var_name Variable name, or a wildcarded specification for a single variable name
macro String value to assign to specified system variable

Notes

Unlike the *Set command, the macro value is not converted using OS_GSTrans before it is assigned. Instead, it is GSTrans’d each time the variable is read.

For a comprehensive list of expressions that can be used with this command see the Expression page.

See also

  • Expression
  • OS_SetVarVal
  • *Set
  • *SetEval
  • *Unset
Revised on November 24, 2016 10:15:05 by Alan Robertson (52) (58.110.70.190)
Edit | Back in time (3 revisions) | See changes | History | Views: Print | Source | Linked from: *Key, *Unset, *Set, *SetEval, *Commands, UtilityModule *Commands, *Show, System Variables

Search the Wiki

Social

Follow us on and

ROOL Store

Buy RISC OS Open merchandise here, including SD cards for Raspberry Pi and more.

Donate! Why?

Help ROOL make things happen – please consider donating!

RISC OS IPR

RISC OS is an Open Source operating system owned by RISC OS Developments Ltd and licensed primarily under the Apache 2.0 license.

Navigation

  • Home Page
  • All Pages
  • Recently Revised
  • Authors
  • Feeds
Site design © RISC OS Open Limited 2018 except where indicated
The RISC OS Open Instiki theme is based on Insitki's default layout

Valid XHTML 1.0  |  Valid CSS

Instiki 0.19.1(MML+)
This site runs on Rails

Hosted by Arachsys