 |
|
| Computers Forum Index » Computer - Databases - Paradox » DateTimeStamp... |
|
Page 1 of 1 |
|
| Author |
Message |
| OzPaul... |
Posted: Mon Mar 23, 2009 2:36 am |
|
|
|
Guest
|
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. |
|
|
| Back to top |
|
|
|
| Jim Moseley... |
Posted: Mon Mar 23, 2009 7:07 pm |
|
|
|
Guest
|
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 |
|
|
| Back to top |
|
|
|
| Jim Hargan... |
Posted: Mon Mar 23, 2009 7:32 pm |
|
|
|
Guest
|
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 |
|
|
| Back to top |
|
|
|
| Paul Weston... |
Posted: Mon Mar 23, 2009 11:40 pm |
|
|
|
Guest
|
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 |
|
|
| Back to top |
|
|
|
| Jim Hargan... |
Posted: Tue Mar 24, 2009 6:16 am |
|
|
|
Guest
|
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 |
|
|
| Back to top |
|
|
|
|
|
All times are GMT
The time now is Fri Dec 04, 2009 7:37 pm
|
|