I have the same problem in converted forms. I got around it by using saverow and then 'GetProperty <CID> Textvalue 'vCheckIfNul ' and checking if vCheckIfNull is null. If it is null, I use the Property <CID> Textvalue 'vDefualt' to set the default value. Kind of a PIA when default values works so well in 6.5++.
I figured that I just didn't understand how and when 7.X calculates form and global variables until I read your post. If anyone can explain the exact order and how variables / default variables calculate I would appreciate it.
| "Scott Sherer"
<[EMAIL PROTECTED]>
Sent by: [email protected] 03/04/2005 08:39 AM
|
|
Thanks to everyone for their comments. I have checked each of your comments
against what I have done and it doesn't work. However, if I create a new
form it works perfectly.... I'll contact the developers now with a
documented bug and see what happens.
Thanks again everyone!
Scott Sherer
-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Sami Aaron
Sent: Thursday, March 03, 2005 4:48 PM
To: RBG7-L Mailing List
Subject: [RBG7-L] - Re: Forms problem
Two more things
1. Make sure you're not testing your results while you are in the Forms
Design mode - your data is "read-only" until you save the form and test it
from outside the designer.
2. The default value only kicks in when you ENTER USING the form or you
EDIT USING and ADD a new row.
Sami
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Sami Aaron
Software Management Specialists
913-915-1971
[EMAIL PROTECTED]
-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Lawrence
Lustig
Sent: Thursday, March 03, 2005 4:34 PM
To: RBG7-L Mailing List
Subject: [RBG7-L] - Re: Forms problem
> Now I've added a new field to the table referenced by the same
> form with a date format. I've defined in Rbase 7.1 a dbedit field with a
> default value of .#date. In this field nothing shows up. Is there a bug
or
> am I doing something incorrectly?
If the field is of type DATE, you do NOT need (and should not use) a format
mask on the field. R:Base will format the field according to the current
date
settings.
If the field is of type TEXT (suitable for masking), then I don't know if
you
can use a date value for the default.
--
Larry
---
[This E-mail scanned for viruses by Declude Virus]
