× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Not as elegant as a BIF or a function, but I haven't seen this solution mentioned:

%Len( Spaces ) = 20 ;
stmfString = var1 + Spaces + var2 ;

where Spaces is defined as a Varying variable.

For simple requirements, this should perform way better than a function.

-mark

On 7/31/2024 12:08 PM, Javier Sanchez wrote:
You are right Charles.

El mié, 31 jul 2024 a las 9:38, Charles Wilt (<charles.wilt@xxxxxxxxx>)
escribió:

This discussion is more appropriate for the RPG List...
https://lists.midrange.com/mailman/listinfo/rpg400-l

Charles


On Tue, Jul 30, 2024 at 10:01 PM Javier Sanchez<
javiersanchezbarquero@xxxxxxxxx> wrote:

Team,

Honestly, I didn't want to go and look for the already posted proposals
for
new TRs in RPG.

If this already exists and was rejected, just throw me a lot of rotten
eggs
(LOL).

I am thinking of a new BIF: %SPACES(nSpaces)

This would help a lot to stuff in a string a number of spaces when
concatenating several pieces of other strings.

Example:

stmfString = var1 + %SPACES(50) + var2 + %SPACES(20);

The literal number of spaces can also be a variable containing a valid
positive value for the number of spaces to stuff in.

Opinions? (Or rotten eggs).

Thanks,

JS


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.