Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Form - changing the controls source property
Message
From
19/10/1997 12:26:10
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00054836
Message ID:
00055380
Views:
36
>>>Hi.
>>>
>>>I am using the controls of the form source property as the field names of the uderlying table.
>>>When the user clicks add or edit I want it to be changed as memory variables created using
>>>SCATTER, but I have to do it for every control for which the add/edit is appropriate.(Some
>>>controls are not part of the add/edit). Is there any better way of doing it other than go thru
>>>the controls one by one in the click event of the add/edit command button.
>>>
>>>Thanks in advance
>>>
>>>alex
>>Alex,
>>
>>Yes, turn on buffering and leave the controlsources alone. With buffering on you can use TableUpdate and TableRevert to save or reject the changes the user makes.
>
>Hi guys,
> sorry to interupt, but right now I'm having similiar problem. I've create a container class that I need to show on two different pages of pgframe and populate them from different tables. So in Init event of container I coded code for changing controlsource for controls. There is one combo and four edtboxes in that container. But it seems that it ignores what I wrote, bc on first page combo is populated ok, but edtboxes not, and on second nor combo, nor edtboxes.
>TIA
> Dezider

Do you refresh your combos using the Requery method?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform