Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community

At 08 JUL 2002 05:52:24PM David Cooksley wrote:

My users are reporting an intermittent problem every 3-4 months that I can't find any reason for, and can't reproduce. Using RBASIC code in AREV 2.12, we print a form that displays the date of an event in the form "mm/dd/yy". Sometimes, however, it prints "mm/dd/yy nnn", where nnn is the name of the month. The program code saves the event date in a variable using OCONV(d$,"D2/") and there is no other reference to the name of a month in the program code.

Has anyone seen this happen? Is my RTP19 beginning to fail?


At 08 JUL 2002 06:17PM David Kafka wrote:

Look very carefully at where d$ is coming from. The convention of using the dollar sign would imply it was an EQUATE. Are you absolutely certain that there aren't situations where d$, rather than being an internal date, is already a resolved external date?

For example, if d$=07/15/02 Jul" then OCONV(d$,"D2/") would too.

Alternatively, are there language sets in that version of ARev?

David


At 08 JUL 2002 06:38PM David Cooksley wrote:

Actually, I used "d$" as an abreviation for posting here. The code is:

i.dt=field(event,"*",1)

c.dt=oconv(i.dt,"d2/")


At 08 JUL 2002 09:29PM Richard Hunt wrote:

David,

Try verifying the conversion succeeded. Maybe the i.dt variable already has a converted date in it and the OCONV is failing. If the OCONV fails, then the c.dt variable becomes the i.dt variable unconverted.

i.dt=field(event,"*",1)

c.dt=oconv(i.dt,"d2/")

if status() then

...error message...

end

View this thread on the forum...

  • third_party_content/community/commentary/forums_nonworks/e1c29898e47a711585256bf000782776.txt
  • Last modified: 2023/12/28 07:40
  • by 127.0.0.1