Mid issue

Richard Kreiss rkreiss at verizon.net
Mon May 31 09:19:04 PDT 2021


Thanks for the response. I’ll try it. 

Richard
Sent from my iPhone

> On May 31, 2021, at 11:39 AM, Jose Lerebours via Filepro-list <filepro-list at lists.celestial.com> wrote:
> 
> create an array and associate the array to the real fields like so
> 
> dim fields(###):8;
> 
> then, check on mid(fields(fn),1,1) instead of fn
> 
> Remember, in filePro, a dummy field will not point to the real field like one can in some other
> languages like $$fn would reference a variable/field based on the value of $fn that matches the
> variable/field.
> 
> You have to make sure you do not exceed the array # of elements to prevent error ...
> 
> Hope this helps!
> 
> 
>> On 5/30/21 4:01 PM, Richard Kreiss via Filepro-list wrote:
>> I have an auto process where I am checking files 8-29 (incremented by 2) got the beginning value of 0 or 1.
>> 
>> I  set up the following code:
>> If: fn = ""
>> Then: fn(2,.0,g)="8"
>> Loop If: mid(fn,"1","1") = "0"
>> Then: cd=cd+"1"
>> If: fn,"1","1")="1"
>> Fb=fb+"1
>> Fn lt "30"
>> GOTO loop
>> If:
>> Then:END
>> 
>> Apparently filePro is not resolving fn as a field number as both lines above show as false in the debugger.
>> What size must fn be for the value to be recognized as a field Number?
>> 
>> Richard Kreiss
>> GCC Consulting
>> 
>> -------------- next part --------------
>> A non-text attachment was scrubbed...
>> Name: winmail.dat
>> Type: application/ms-tnef
>> Size: 14550 bytes
>> Desc: not available
>> URL: <http://mailman.celestial.com/pipermail/filepro-list/attachments/20210530/48582a64/attachment.bin>
>> _______________________________________________
>> Filepro-list mailing list
>> Filepro-list at lists.celestial.com
>> Subscribe/Unsubscribe/Subscription Changes
>> http://mailman.celestial.com/mailman/listinfo/filepro-list
> -- 
> 
> https://www.asisuites.com
> https://www.helpsuites.com
> 
> _______________________________________________
> Filepro-list mailing list
> Filepro-list at lists.celestial.com
> Subscribe/Unsubscribe/Subscription Changes
> http://mailman.celestial.com/mailman/listinfo/filepro-list



More information about the Filepro-list mailing list