That calculation returns a number. It will be minutes or seconds depending on your time settings.
Dennis McGrath Software Developer QMI Security Solutions 1661 Glenlake Ave Itasca IL 60143 630-980-8461 [email protected] ________________________________ From: [email protected] [mailto:[email protected]] On Behalf Of MDRD Sent: Wednesday, July 27, 2011 12:06 PM To: RBASE-L Mailing List Subject: [RBASE-L] - DateTime question hi I am trying to determine how old a file is but I keep getting an error that the value does not have the same type or scale as your var vcmsold. But when I check all the vars show up as DateTime. I must be missing something simple but can't figure it out? Thanks Marc SET VAR vtemp = (SSUB((UDF('@FileInfo.dll','cmshr.dat')),2)) SET VAR vcreated DATETIME = .vtemp SET VAR vcurrentdatetime DATETIME = .#now SET VAR vcmsold DATETIME = (.vcurrentdatetime - .vcreated)

