Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Property of ActiveForm

2 views
Skip to first unread message

AJULLIARD

unread,
Aug 30, 2000, 3:00:00 AM8/30/00
to
[This followup was posted to borland.public.delphi.database.desktop and a
copy was sent to the cited author.]
Base : (D5 Pro) 1 ActiveForm with 1 Edit control.
(Interfaceparent : IDispatch)
I want give an Read/Write access for activeform's users and for that have
added 1 property as following :

...
function TAFX3.Get_Edit_001: WideString;
begin
result := Edit1.Text;
end;

procedure TAFX3.Set_Edit_001(const Value: WideString);
begin
Edit1.Text := Value;
end;
....

Indicators of this property are :
bindable, requestedit and immediatebindable.

In the app'container, i use a variable (ValEdit1) connected to the
property Edit_001.

First, What'Ok :
a) the variable ValEdit1 receive the value of Edit_001 property when the
ActiveForm is loadded,
b) then I can write with the variable ValEdit1 in the property,
c) and i can read the property's value with the instruction like
ValEdit = #ActiveForm.Edit_001

and what's wrong :
after loading, when i operate a change of value of the Edit_001 property,
the new value is'nt automaticaly writen to the Appcontainer's variable.
And i'm sure that property'value is updated since i can read i with
the above c) instruction.

I've tried many changes but nothing .
So i ask around : what do i miss ?
Thanks by advance.
A.Julliard at : ajul...@easynet.fr


0 new messages