dbTalk Databases Forums  

DateTimeStamp

comp.databases.paradox comp.databases.paradox


Discuss DateTimeStamp in the comp.databases.paradox forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
OzPaul
 
Posts: n/a

Default DateTimeStamp - 03-22-2009 , 08:36 PM






Hi all, I am having a new problem with my re-install of Pdx10. I have
created a DateTimeStamp called BasicTimeStamp on a Timestamp field on
a form and have saved it. The Opal code that uses this new
BasicTimeStamp format then works fine. However, twice now I have had
to re-create the new DT format because Pdx / Windows does not seem to
reliably remember the new format. I have not had this problem in the
past. I have not yet systematically tested when the DT format
diasappeares.
I am wondering where Pdx saves the new timestamp format so I check
what might be interfering with the file... Thanks in advance, Paul.

Reply With Quote
  #2  
Old   
Jim Moseley
 
Posts: n/a

Default Re: DateTimeStamp - 03-23-2009 , 08:07 AM







OzPaul,

Why not just recreate the format every time you open your app? I just had
to do the same to handle Aussie dates, using the code below in my main library's
open() method. It is just for a Date format called 'tripmdy', but can probably
be expanded for DateTime:

var
fmtDyn,
arShow array[] string
ar array[] string
arNum array[] longInt
i SmallInt
endVar

;set tripmdy date format to US, Euro, or Aussie version
arShow.addLast("M")
arShow.addLast("D")
arShow.addLast("Y")

dt = date(1,2,3) ; mdy=1/2/3, dmy=2/1/3, ymd=3/1/2
dtStr = string(dt)
dtStr.breakApart(ar,"/.,|:")
maxI = ar.size()
formatName = "tripmdy"
curfmt = formatGetSpec(formatName)

arNum.empty()
for i from 1 to maxI
arNum.addLast(longInt(ar[i]))
endFor

if arNum.size() = 3 then
buildFmt = "DM1D1Y2O"
+ "(%" + arShow[arNum[1]]
+ "/%" + arShow[arNum[2]]
+ "/%" + arShow[arNum[3]]
+ ")"
formatName = "tripmdy"
ok = formatExist(formatName)
if ok then
ok = formatDelete(formatName)
endif
if ok then
ok = formatAdd(formatName, buildFmt)
endif
if not ok then
errorShow("Format problem")
endif
endif


HTH,
Jim Moseley

Reply With Quote
  #3  
Old   
Jim Hargan
 
Posts: n/a

Default Re: DateTimeStamp - 03-23-2009 , 08:32 AM



On Sun, 22 Mar 2009 19:36:04 -0700 (PDT), OzPaul wrote:

Quote:
Hi all, I am having a new problem with my re-install of Pdx10.
.. twice now I have had
to re-create the new DT format because Pdx / Windows does not seem to
reliably remember the new format.
When Paradox 10 or 11 installs, it sets the program PdxRegCl to run on the
install reboot; this remove all Paradox registry entries. Here's the bad
news: the install program doesn't remove PdxRegCl! It just continues to run
on each and every startup!

You must remove PdxRegCl from your autostart programs, either by editing
the registry, or by using a startup manager such as Codestuff's Starter:
http://codestuff.tripod.com/products_starter.html (my favorite)
or Piriform's CCleaner (under tools/startup):
http://www.ccleaner.com/


--
Jim Hargan


Reply With Quote
  #4  
Old   
Paul Weston
 
Posts: n/a

Default Re: DateTimeStamp - 03-23-2009 , 05:40 PM



Thanks Jim (& Jim), Interesting abot PdxRegCl but it does not explain
why this is a new phenomenon. Still I will look into cleaning the
registry.

Someone else has told me the format is saved with the form but I have
saved the form and the format is not retained the next day.

Perhaps it is simpler to create the format when starting the
application. This is more portable.

Regards
Paul


Quote:
When Paradox 10 or 11 installs, it sets the program PdxRegCl to run on the
install reboot; this remove all Paradox registry entries. Here's the bad
news: the install program doesn't remove PdxRegCl! It just continues to run
on each and every startup!

You must remove PdxRegCl from your autostart programs, either by editing
the registry, or by using a startup manager such as Codestuff's Starter:http://codestuff.tripod.com/products_starter.html(my favorite)
or Piriform's CCleaner (under tools/startup):http://www.ccleaner.com/

--
Jim Hargan


Reply With Quote
  #5  
Old   
Jim Hargan
 
Posts: n/a

Default Re: DateTimeStamp - 03-23-2009 , 07:56 PM



I was thinking that a re-install of Pdox 10 would also re-install
PdoxRegCl, which would start erasing user settings (including user defined
formats?) every time you boot.

--
Jim Hargan

On Mon, 23 Mar 2009 16:40:37 -0700 (PDT), Paul Weston wrote:

Quote:
Thanks Jim (& Jim), Interesting abot PdxRegCl but it does not explain
why this is a new phenomenon. Still I will look into cleaning the
registry.

Someone else has told me the format is saved with the form but I have
saved the form and the format is not retained the next day.

Perhaps it is simpler to create the format when starting the
application. This is more portable.

Regards
Paul



When Paradox 10 or 11 installs, it sets the program PdxRegCl to run on the
install reboot; this remove all Paradox registry entries. Here's the bad
news: the install program doesn't remove PdxRegCl! It just continues to run
on each and every startup!

You must remove PdxRegCl from your autostart programs, either by editing
the registry, or by using a startup manager such as Codestuff's Starter:http://codestuff.tripod.com/products_starter.html(my favorite)
or Piriform's CCleaner (under tools/startup):http://www.ccleaner.com/

--
Jim Hargan

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.