fieldname()

Richard Kreiss rkreiss at gccconsulting.net
Tue Sep 18 09:28:07 PDT 2018


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>


More information about the Filepro-list mailing list