4D v16.3

METHOD GET MODIFICATION DATE

Home

 
4D v16.3
METHOD GET MODIFICATION DATE

METHOD GET MODIFICATION DATE 


 

METHOD GET MODIFICATION DATE ( path ; modDate ; modTime {; *} )  
Parameter Type   Description
path  Text, Text array in Text or Text array containing one or more method path(s)
modDate  Date, Date array in Method modification date(s)
modTime  Time, Longint array in Method modification time(s)
Operator in If passed = command applies to host database when executed from a component (parameter ignored outside of this context)

The METHOD GET MODIFICATION DATE command returns, in the modDate and modTime parameters, the dates and times of the last modification of the method(s) designated by the path parameter.

You can use two types of syntaxes, based either on arrays or variables:

 C_TEXT(tVpath// variables
 C_DATE(vDate)
 C_TIME(vTime)
 METHOD GET MODIFICATION DATE(tVpath;vDate;vTime) // date and time of a single method

 ARRAY TEXT(arrPaths;0) // arrays
 ARRAY DATE(arrDates;0)
 ARRAY LONGINT(arrTimes;0)
 METHOD GET MODIFICATION DATE(arrPaths;arrDates;arrTimes) // dates and times of several methods

You cannot mix the two syntaxes.

If the command is executed from a component, it applies by default to the component methods. If you pass the * parameter, it accesses the methods of the host database.

You want to find out modification dates and times for several methods:

 ARRAY TEXT(arrPaths;0)
 APPEND TO ARRAY(arrPaths;"MyMethod1")
 APPEND TO ARRAY(arrPaths;"MyMethod2")
 ...
 ARRAY DATE(arrDates;0)
 ARRAY LONGINT(arrTimes;0)
 METHOD GET MODIFICATION DATE(arrPaths;arrDates;arrTimes)

You want to get modification dates for methods in a module that are prefixed with "Web_". You cannot use the "@" symbol in a path; however, you can write:

 ARRAY TEXT($_webMethod;0)
 METHOD GET NAMES($_webMethod;"Web_@")
 ARRAY DATE($_date;0)
 ARRAY LONGINT($_time;0)
 METHOD GET MODIFICATION DATE($_webMethod;$_date;$_time)

 
PROPERTIES 

Product: 4D
Theme: Design Object Access
Number: 1170

 
HISTORY 

Created: 4D v13

 
ARTICLE USAGE

4D Language Reference ( 4D v16)
4D Language Reference ( 4D v16.1)
4D Language Reference ( 4D v16.2)
4D Language Reference ( 4D v16.3)