Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Form - changing the controls source property
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00054836
Message ID:
00055386
Vues:
32
>>>>>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?
>
>Nope. Going to try.
>thanx
> Dezider

Always use Requery for combos and lists when you refresh them, change the control source, source type, etc.

Vlad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform