cobweb,
Unfortunately, you're running into a small conflict between two of the "sub-modules" of Paradox. While you've designed a legitimate and valid default value, the routine that processes the keyboard and submits those characters to the underlying field automatically assumes that the leading whitespace is accidentally and "helpfully" removes it.
Paradox handles default values by "submitting" them as if they'd been typed from the keyboard, triggering the helpful routine mentioned above. Most of the time, this is actually very handy.
You can, however, work around this by adding a bit of ObjectPAL code to the action() event of the field object bound to your field. In this case, something like this should help:
Code:
if eventInfo.id() = dataInsertAction then
doDefault
self.Value = " 1"
self.touched := FALSE
endIf
(Apparently, code submitted by ObjectPAL does not trigger the helpful routine, at least not in Paradox 9. I'd have to test this under different versions.)
This waits for any action that inserts a record from the form itself, lets the background work of that action take place, sets the default value, and then clears the flag that says, "Yup, the user actually changed the record."
That last bit was added to help prevent accidental inserts from leaving otherwise blank records in the table.
Hope this helps...
-- Lance