User Tools

Site Tools


prop_log.htm
Navigation:  Language Reference > App C - PROP: Runtime Properties > Runtime VIEW and FILE Properties >====== PROP:Log ====== Previous pageReturn to chapter overviewNext page

Property of a FILE that writes a string to the current profile output file (assigned to PROP:Profile). This string is placed on its own line in the file. (WRITE ONLY)

Example:

FileName STRING(256)

Customer  FILE,DRIVER('TopSpeed')

Record    RECORD

Name      STRING(20)

      END

      END

CODE

Customer{PROP:Profile} = 'CustLog.TXT'  

!statement above turns profiling on, output file:CustLog.TXT

OPEN(Customer)

Filename = Customer{PROP:Profile} !Get name of current log file

Customer{PROP:Log} =   CLIP(FileName)    & ' ' & |

           FORMAT(TODAY(),@D2) & ' ' & |

           FORMAT(CLOCK(),@T1)  

!Write a line of text to the log file

SET(Customer)

LOOP

 NEXT(Customer)           !All file I/O action is logged out to

 IF ERRORCODE() THEN BREAK.    ! the CustLog.TXT file

END

Customer{PROP:Profile} = ''    !Turn profiling off

prop_log.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1