× 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.



You're right, of course. I just copied code out of an existing program, changed the array and field names. Didn't look at the example closely enough. I usually movea fields to arrays, which is what the sample does. So set the For'd to argument to 5 and flip line 2 around should do it.

Jerry C. Adams



Mackie, Roger L. (Precision Press) wrote:

Jerry,

With a 5A work field, won't you get an array index out of range error
when j hits 6?

Puzzled,
Roger Mackie
-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Jerry Adams
Sent: Thursday, July 07, 2005 9:28
To: Midrange Systems Technical Discussion
Subject: Re: Correction

FOR J = 1 to %elem(AR2); AR2(j) = %subst(Wrk_Field:j:1); ENDFOR;

Jerry C. Adams



Emmanuel Zannis wrote:

List sorry. The code is as follow:

2 D Ar2 S 1A Dim(9) 11 D Wrk_Field S 5A

27 C Movea Ar2 Wrk_Field
Regards,

Emmanuel Zannis




As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.