Topic: Combining text and numeric registers (1 of 2), Read 129 times
Conf: VEDIT Macro Language Support
From: Jerry Saperstein
Date: Monday, October 18, 1999 12:37 AM

How do I combine the contents of a text and numeric register into one text register?

For example, assume:

Text register 10 contains "Filename"
Numeric register #11 contains 123

What I can't figure out is how to combine both terms in a single text register, i.e.

Text register 11 = @10 + #11

I've been through the manual and can't find a way to do this simple concatenation.

Jerry

 


Topic: Re: Combining text and numeric registers (2 of 2), Read 137 times
Conf: VEDIT Macro Language Support
From: Ted Green
Date: Monday, October 18, 1999 12:23 PM

At 08:05 AM 10/18/99 -0400, you wrote:
> Text register 11 = @10 + #11

Use:

Reg_Set(11,@10)
Out_Reg(11,APPEND) Num_type(#11,NOCR) Out_Reg(CLEAR)

I plan on adding a command or string syntax to simplify this, but want
to check how/if Perl or VB do it.