fieldname()

Fairlight fairlite at fairlite.com
Tue Sep 18 11:00:28 PDT 2018


Uhm...  If your first argument is supposed to be the lookup, not a
filename, then you want:

FName=fieldname(defile,fn)

m->

On Tue, Sep 18, 2018 at 04:28:07PM +0000, Richard Kreiss via Filepro-list thus spoke:
> 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

-- 
Audio panton, cogito singularis.


More information about the Filepro-list mailing list