ARexx (12/23)

From:taoberly
Date:16 Jul 2001 at 17:39:27
Subject:Final question

--- In arexx@y..., taoberly@m... wrote:

> I finished the first draft of the script, and it works fine with one
> exception. I want to run it as part of the boot process (I put it in
> WBStartup), but the script always returns an error 10, specifically
>
> 7 *-* ADDLIB('rmh.library',0,-30,0);
> +++ Command returned 10
>
> although it still works fine. (I also get no errors if I run it
> manually instead.) Since the script is being processed, Rexxmast is
> obviously loaded, so I'm a little confused about what's happening. It
> seems that *something* isn't finished loading, but I'm not sure what.
> I may be able to hide it with SIGNAL, but would prefer to understand
> what's happening. Any suggestions? Maybe I just need to insert a
> short delay somewhere?

FYI, I fixed this myself just by adding a CALL instruction. So
simple...

I discovered that the RealName() function in rmh.library (which can
convert icon names to DOS devices) allocates 16480 bytes of chip ram
every time it's used, so I'll have to abandon this, too. :-( INFO
looks better all the time.

I have a final question for everybody. Is there a way to reuse the j
variable in this loop when calling a Workbench function, and if not,
why? j received the length of the first icon name, but is never
updated in later iterations:

/* Icon test */

ADDRESS WORKBENCH

GETATTR window.icons.all.count NAME root VAR last_icon
GETATTR window.icons.all NAME root STEM icon

DO i = 0 to last_icon-1
GETATTR application.font.icon.size NAME '"'icon.i.name'"' VAR j
SAY icon.i.name" text is "j" pixels long"
END

Thanks,

Todd

------------------------ Yahoo! Groups Sponsor ---------------------~-->
Secure your servers with 128-bit SSL encryption! Grab your copy of
VeriSign's FREE Guide "Securing Your Web Site for Business." Get it now!
http://www.verisign.com/cgi-bin/go.cgi?a=n094442340008000
http://us.click.yahoo.com/6lIgYB/IWxCAA/yigFAA/saFolB/TM
---------------------------------------------------------------------~->

ARexx mailing list - No flames, no overquoting, no crossposting.
Unsub: Blank mail to mailto:arexx-unsubscribe@yahoogroups.com

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/