Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
TextBox vs. Editbox
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00085581
Message ID:
00086891
Views:
160
>>Sawadee Kahp,
>>
>> I have a form which has the DE loaded in Init. On the form are some controls. I have textboxes which I assign new controlsource properties to, and editboxes that I do the same to. When APPEND BLANK to enter data, the textbox is nonfunctional, and the editbox works fine. Problem is, one field is a date type. I cannot use a date datatype in an editbox. The textbox is !ReadOnly, !Disabled and is treated the same when loading the DE. Can anyone tell me why it will not accept input? A good guess will do...:)
>>
>>Eric K.
>Sawadee,
>
>There are as number of things that could be going on. The textbox may have its readonly property set to .T. or its desiabled property set to .T.,. I know you said they aren;t set that wya, but have you used the debugger to insure that aren't being set that way by something else.
>
>Can you click in the textbox and have it get focus? If not check the When to see if it is returning .F.. Check the gotfocus to see if it is sending focus somewhere else. Chcek the controlsource for the textbox to be sure it is spelled correctly and has the table's alias included.
>
>Check the keypress for the textbox and be sure it is not issuing a NODEFAULT on you.
>
>Just a few ideas.

Jim,

FYI, Turns out, certain properties are scoped to the current data session. When I close tables and set the DE, then OpenTables, I loose these properties for the textbox where I want a date:

.txtbox.Format - Must be set to D in form Designer
.txtbox.ReadOnly - Must be set at runtime after new datasession is started
.txtbox.Enabled - Same

SET MARK TO / - These set somewhere in form Init
SET DATE TO BRITISH

Incidentally, ReadOnly is also set .T. with the editboxes but I don't need a special format with those so that was the only property that I needed set after new DE.

Eric K.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform