Página 1 de 1
Dataset
Publicado: Vie May 19, 2006 12:56 pm
por Aguiar Costa
Hello
I have a TDBMaskEdit that i want to show inicialized with a value to be
added to a table.So i'm doing it like this:
oDataset:AddNew()
oDataset:Codigo := "0011"
TForm2:ShowModal()
The Dataset buffer field gets the value but TDBMaskEdit linked to that field
is showed empty(). Am i missing something ??
Attached is a sample.
TIA.
Regards
Aguiar !!!
Attached files Dataset.zip (2.9 KB)Â
Dataset
Publicado: Lun May 22, 2006 10:26 am
por pablogarciau
Aguiar escribió:
> Hello
>
> I have a TDBMaskEdit that i want to show inicialized with a value to be
> added to a table.So i'm doing it like this:
> oDataset:AddNew()
> oDataset:Codigo := "0011"
> TForm2:ShowModal()
> The Dataset buffer field gets the value but TDBMaskEdit linked to that field
> is showed empty(). Am i missing something ??
> Attached is a sample.
> TIA.
> Regards
> Aguiar !!!
>
>
Try This:
oDataset:AddNew()
oTDBMaskEdit:Value:="0011"
TForm2:ShowModal()
Dataset
Publicado: Lun May 22, 2006 10:26 am
por pablogarciau
Aguiar escribió:
> Hello
>
> I have a TDBMaskEdit that i want to show inicialized with a value to be
> added to a table.So i'm doing it like this:
> oDataset:AddNew()
> oDataset:Codigo := "0011"
> TForm2:ShowModal()
> The Dataset buffer field gets the value but TDBMaskEdit linked to that field
> is showed empty(). Am i missing something ??
> Attached is a sample.
> TIA.
> Regards
> Aguiar !!!
>
>
Try This:
oDataset:AddNew()
oTDBMaskEdit:Value:="0011"
TForm2:ShowModal()
Dataset
Publicado: Lun May 22, 2006 12:48 pm
por ignacio
Aguiar,
When you write this line of code:
oDataset:Codigo := "0011"
The DataControls are already created and asigned its value from the DataSet
buffer. With the above of line you ONLY change the dataset buffer, but not
the value of the data control. In order to change the datacontrol value is
better to change it directly:
oDbMaskEdit:Value := "0011"
Regards,
"Aguiar" <
aguiar.costa@sisbit.pt> escribió en el mensaje
news:[email=
446da42c@ozsrvnegro.ozlan.local...]
446da42c@ozsrvnegro.ozlan.local...[/email]
> Hello
>
> I have a TDBMaskEdit that i want to show inicialized with a value to be
> added to a table.So i'm doing it like this:
> oDataset:AddNew()
> TForm2:ShowModal()
> The Dataset buffer field gets the value but TDBMaskEdit linked to that
> field is showed empty(). Am i missing something ??
> Attached is a sample.
> TIA.
> Regards
> Aguiar !!!
>
>
Dataset
Publicado: Lun May 22, 2006 12:48 pm
por NoName
Aguiar,
When you write this line of code:
oDataset:Codigo := "0011"
The DataControls are already created and asigned its value from the DataSet
buffer. With the above of line you ONLY change the dataset buffer, but not
the value of the data control. In order to change the datacontrol value is
better to change it directly:
oDbMaskEdit:Value := "0011"
Regards,
"Aguiar" <
aguiar.costa@sisbit.pt> escribió en el mensaje
news:[email=
446da42c@ozsrvnegro.ozlan.local...]
446da42c@ozsrvnegro.ozlan.local...[/email]
> Hello
>
> I have a TDBMaskEdit that i want to show inicialized with a value to be
> added to a table.So i'm doing it like this:
> oDataset:AddNew()
> TForm2:ShowModal()
> The Dataset buffer field gets the value but TDBMaskEdit linked to that
> field is showed empty(). Am i missing something ??
> Attached is a sample.
> TIA.
> Regards
> Aguiar !!!
>
>
Dataset
Publicado: Mar May 23, 2006 11:12 am
por Aguiar Costa
Thank you Ing. and Ignacio.
Regards
Aguiar !!!
"Aguiar" <
aguiar.costa@sisbit.pt> escreveu na mensagem
news:[email=
446da42c@ozsrvnegro.ozlan.local...]
446da42c@ozsrvnegro.ozlan.local...[/email]
> Hello
>
> I have a TDBMaskEdit that i want to show inicialized with a value to be
> added to a table.So i'm doing it like this:
> oDataset:AddNew()
> oDataset:Codigo := "0011"
> TForm2:ShowModal()
> The Dataset buffer field gets the value but TDBMaskEdit linked to that
> field is showed empty(). Am i missing something ??
> Attached is a sample.
> TIA.
> Regards
> Aguiar !!!
>
>
------------------------------------------------------------ --------------------
>
>
>
Dataset
Publicado: Mar May 23, 2006 11:12 am
por Aguiar Costa
Thank you Ing. and Ignacio.
Regards
Aguiar !!!
"Aguiar" <
aguiar.costa@sisbit.pt> escreveu na mensagem
news:[email=
446da42c@ozsrvnegro.ozlan.local...]
446da42c@ozsrvnegro.ozlan.local...[/email]
> Hello
>
> I have a TDBMaskEdit that i want to show inicialized with a value to be
> added to a table.So i'm doing it like this:
> oDataset:AddNew()
> oDataset:Codigo := "0011"
> TForm2:ShowModal()
> The Dataset buffer field gets the value but TDBMaskEdit linked to that
> field is showed empty(). Am i missing something ??
> Attached is a sample.
> TIA.
> Regards
> Aguiar !!!
>
>
------------------------------------------------------------ --------------------
>
>
>