Macro: VARIABLE_FILE_COMMAND

Module location: FMAC line 7828 (view source)

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Command: VARIABLE_FILE_COMMAND command [fileSymbol|fileNum] Description: This command allows the execution of any other command, handling both file numbers ( 102 ) and file symbols ( PERSON ) Parameters: command: The DataFlex command number fileSymbol: The symbol used to load the .FD file; the logical name of the file. fileNum: The number of the file ( obviously ). =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

  //#IFSAME !2 |FS0,0& |FN0,0& |FD0,0&
  // This supports both Indirect_file and Indirect_file.Recnum -JJT
  #IFSAME !2.FILE_NUMBER |FS0,0& |FN0,0& |FD0,0& |FS0,0&.RECNUM
    !A [] !1 |CI0 !3
  #ELSE
    #IFCLASS !2 SNDIECWVF
        !A [] !1 !2 !3
    #ELSE
        DECLARE_DATAFILE !2
        !A [] !1 !2.FILE_NUMBER !3
    #ENDIF
  #ENDIF