CompuServe Messages

Stem variables and subst

    30-May-93 22:52:07
Fm: Clark Williams 76237,746
To: John Toebes/SYSOP 70007,3467
John, >It looks like the problem is related to upper/lower case in the second >level substitution. I couldn't see this documented anywhere. From Page 3-3 of the C= ARexx manual (First paragraph after symbol definitions): "Simple, stem, and compound symbols are called variable s and may be assigned a value during the course of the program execution. If a variable has not been assigned a value, it is uninitialized. The value for an uninitialized variable is the variable name itself (translated to uppercase, if applicable)" So you might say: DeepThot = 'DeepThot' /* accounts for case of symbol*/ Host = 'DeepThot' t.host = t.host + 1 Eg: /* Test stem var DeeptThot example */ DeepThot = 'DeepThot' Widget.DeepThot = 0 Host = 'DeepThot' SAY "Before: " Widget.Host Widget.Host = Widget.Host + 1 SAY "After (host):" Widget.Host SAY "After (DeepThot):" Widget.DeepThot EXIT This rexx program yields the following output: Before: 0 After (host): 1 After (DeepThot): 1 Hope this gives you an alternative solution to your problem Clark -|- Williams –O-o-O– Via George