fieldname()
Bruce Easton
bruce at stn.com
Tue Sep 18 09:43:13 PDT 2018
It should work using the alias as in: 'FName=fieldname(defile,fn)'.
I notice you spelled the alias two different ways here - 'defile' and
delfile'. Could it just be a typo?
Bruce
On 9/18/18 12:28 PM, Richard Kreiss via Filepro-list wrote:
> I am having a problem getting this function to work.
>
> According to the manual the command should be fn = fieldname(lookup,n) where n is the field number of the field wanted.
>
> The issue I am having is that I am using a long variable for the lookup which passes the if: Not alias.
>
> ------- - - - - - - - - - - - - - - - -
> ◄ If:
> Then: lookup defile = (FileName) k=lv i=A –npx
> 80 ------- - - - - - - - - - - - - -
> ◄ If: NOT defile and deleteFiles[ct+"1"] ne "" '
> Then: CLEARS;ct=ct+"1";GOTO do_next
> 81 ------- - - - - - - - - - - - - - - - -
> ◄ If:
> Then: fn(3,.0)="3"
> 82 ------- - - - - - - - - - - - - - - - -
> ◄ If:
> Then: FName=fieldname((filename),fn)
>
> I have tried FName=fieldname(delfile,fn) where defile is the alias to the filename in the long variable Filename.
>
> Am I doing something incorrectly?
>
> Does anyone know if the function can resolve a long variable or the alias?
>
> To answer another question, I can’t just use the actual file name as there are 15 files which are being processed with the file names stored in an array Called DeleteFiles.
>
>
> Richard Kreiss
> GCC Consulting
>
>
>
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: winmail.dat
> Type: application/ms-tnef
> Size: 16972 bytes
> Desc: not available
> URL: <http://mailman.celestial.com/pipermail/filepro-list/attachments/20180918/babfd488/attachment.bin>
> _______________________________________________
> Filepro-list mailing list
> Filepro-list at lists.celestial.com
> Subscribe/Unsubscribe/Subscription Changes
> http://mailman.celestial.com/mailman/listinfo/filepro-list
---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus
More information about the Filepro-list
mailing list