RE previous email regarding using mid with a dim - Error Message received
Nancy Palmquist
nancy.palmquist at vss3.com
Fri Nov 10 19:22:49 UTC 2023
I do not think it is allowed to use a lookup name in an mid. If you not
that it says DIM NAME, if the name(2) is an array, it should be
name("2") unless you want the field 2 to be the array counter.
Nancy
On 5/16/2022 7:02 AM, Walter Vaughan Jr via Filepro-list wrote:
> I'm sure someone will know in a second, but I think you need to go back to a few steps
>
> 1) it may not be an issue, but why are you using what could be a reserved "name" for an array? Even if it's supposed to okay, just don't.
> 2) prove that the array lookup is working
> 3) prove you can get the first ascii character out that array
> 4) prove you can convert that ascii character to an integer
>
> You were working on this late on a Sunday night, but I think if you break it down to the component steps you will find where what you need to do to make this perform.
>
> -----Original Message-----
> From: Filepro-list <filepro-list-bounces+wvaughan=steelerubber.com at lists.celestial.com> On Behalf Of Richard Kreiss via Filepro-list
> Sent: Sunday, May 15, 2022 11:03 PM
> To: 'filepro-list at lists.celestial.com' <filepro-list at lists.celestial.com>
> Subject: RE previous email regarding using mid with a dim - Error Message received
>
> This is the error message I When I run the program And select option 2
>
> The process passes the syntax check
>
> Array index out of range: dim name(6) - index: 0
>
> Input processing sel_note_PDF
>
> Line @: 86
> S=mid(name(2),"1","1");GOTO neo2
> ^
>
> invalid Argument
>
> Process contains a syntax error at the position indicated.
>
>
>
>
>
>
>
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: winmail.dat
> Type: application/ms-tnef
> Size: 15710 bytes
> Desc: not available
> URL: <http://mailman.celestial.com/pipermail/filepro-list/attachments/20220516/0515368b/attachment.bin>
> _______________________________________________
> Filepro-list mailing list
> Filepro-list at lists.celestial.com
> Subscribe/Unsubscribe/Subscription Changes http://mailman.celestial.com/mailman/listinfo/filepro-list
> _______________________________________________
> Filepro-list mailing list
> Filepro-list at lists.celestial.com
> Subscribe/Unsubscribe/Subscription Changes
> http://mailman.celestial.com/mailman/listinfo/filepro-list
--
Nancy Palmquist MOS & filePro Training Available
Virtual Software Systems Web Based Training and Consulting
PHONE: (412) 835-9417 Web site: http://www.vss3.com
More information about the Filepro-list
mailing list