FrustratedAtWork
Technical User
I've been given the task of updating a string value in a paradox 3.5 database. I have never used paradox before and am looking to make a variable = to the current julian date, plus the time. Right now the code I have to work with looks like this:
yr = Year(today())
If yr>1999
Then cent = 2000 cent1 = 2000
Else cent = 1900 cent1 = 1900
EndIf
days=TODAY()-dateval("1/1/"+strval(yr-cent1))+1
yr2=(yr-cent)*1000
tran1=yr2+days
tran2=strval(tran1)+":"+TIME()
All I want to do is make the tran2 value equal to todays julian date and the current system time.
EG. 24001:23:21
Does this make sense? Could there be a one or two line code that will convert the system time to a julian date, then add on the system time?
Please help!!!!!
yr = Year(today())
If yr>1999
Then cent = 2000 cent1 = 2000
Else cent = 1900 cent1 = 1900
EndIf
days=TODAY()-dateval("1/1/"+strval(yr-cent1))+1
yr2=(yr-cent)*1000
tran1=yr2+days
tran2=strval(tran1)+":"+TIME()
All I want to do is make the tran2 value equal to todays julian date and the current system time.
EG. 24001:23:21
Does this make sense? Could there be a one or two line code that will convert the system time to a julian date, then add on the system time?
Please help!!!!!