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



On Sun, Mar 13, 2016 at 6:07 AM, Scott Klement <rpg400-l@xxxxxxxxxxxxxxxx>
wrote:

Jeff said one thing that puzzles me. He said it's always filled with
semicolons... That's weird. Why would you use an array for something like
that? Just do this:

string = *all';';

now the string is filled with all semicolons. isn't that a lot easier?


Yes it is, and I like it.

This is for a new application where I need to create a number of files that
will be FTP'ed offsite. Each file has a variable number of fields with a
semicolon as the field separator.

Each file has, as the last record, a BATCHCONTROL record with file totals,
I need to put a variable number of semicolons at the end of this batch
control record so this record has the same number of fields as the detail
records in the file. I want to use the exact same logic in each program
that builds a file and, for some reason, got fixated on using an array and
just setting the DIM of the array to the number of semicolons I need. But
it's even simpler to just define a field in the program to the size I need
initialized to semicolons and use it. Duh.




As an Amazon Associate we earn from qualifying purchases.

This thread ...

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.