Página 1 de 1

Dataset:Blank()

Publicado: Mar Jun 20, 2006 1:23 pm
por Aguiar Costa
Hello!
I have some DbEdit controls in a form and want them to be shown empty. So i
used Blank() method but it doesn't work. The workaround i'm using is to set
the record on EOF...Am i missing something ?
TIA.
Aguiar !!!

Dataset:Blank()

Publicado: Mar Jun 20, 2006 1:45 pm
por ignacio
Aguiar,
oDataSet:Blank empties the DataSet buffer, but not ist linked controls. You
should do it before the Edit method. BTW DataSet:Addnew performs that
operation directly.
Regards,
"Aguiar" <aguiar.costa@sisbit.pt> escribió en el mensaje
news:4497dab3$[email=1@ozsrvnegro.ozlan.local...]1@ozsrvnegro.ozlan.local...[/email]
> Hello!
>
> I have some DbEdit controls in a form and want them to be shown empty. So
> i used Blank() method but it doesn't work. The workaround i'm using is to
> set the record on EOF...Am i missing something ?
> TIA.
> Aguiar !!!
>
>

Dataset:Blank()

Publicado: Mar Jun 20, 2006 1:45 pm
por NoName
Aguiar,
oDataSet:Blank empties the DataSet buffer, but not ist linked controls. You
should do it before the Edit method. BTW DataSet:Addnew performs that
operation directly.
Regards,
"Aguiar" <aguiar.costa@sisbit.pt> escribió en el mensaje
news:4497dab3$[email=1@ozsrvnegro.ozlan.local...]1@ozsrvnegro.ozlan.local...[/email]
> Hello!
>
> I have some DbEdit controls in a form and want them to be shown empty. So
> i used Blank() method but it doesn't work. The workaround i'm using is to
> set the record on EOF...Am i missing something ?
> TIA.
> Aguiar !!!
>
>

Dataset:Blank()

Publicado: Mar Jun 20, 2006 3:38 pm
por Aguiar Costa
Ignacio,
Using AddNew don't i have to do a oDataset:Cancel somewhere later in the
code ?
The ideia is to initialize the form with blank DbControls and only fill them
with data after search and select a specific record. All in the same form.
I can do that but, i just wanted to know the right way to do it.
TIA.
Aguiar !!!
"Ignacio Ortiz de Zúñiga" <NoName@xailer.com> escreveu na mensagem
news:4497dfe6$[email=1@ozsrvnegro.ozlan.local...]1@ozsrvnegro.ozlan.local...[/email]
> Aguiar,
>
> oDataSet:Blank empties the DataSet buffer, but not ist linked controls.
> You should do it before the Edit method. BTW DataSet:Addnew performs that
> operation directly.
>
> Regards,
>
> "Aguiar" <aguiar.costa@sisbit.pt> escribió en el mensaje
> news:4497dab3$[email=1@ozsrvnegro.ozlan.local...]1@ozsrvnegro.ozlan.local...[/email]
>> Hello!
>>
>> I have some DbEdit controls in a form and want them to be shown empty. So
>> i used Blank() method but it doesn't work. The workaround i'm using is to
>> set the record on EOF...Am i missing something ?
>> TIA.
>> Aguiar !!!
>>
>>
>
>
>

Dataset:Blank()

Publicado: Mar Jun 20, 2006 3:38 pm
por Aguiar Costa
Ignacio,
Using AddNew don't i have to do a oDataset:Cancel somewhere later in the
code ?
The ideia is to initialize the form with blank DbControls and only fill them
with data after search and select a specific record. All in the same form.
I can do that but, i just wanted to know the right way to do it.
TIA.
Aguiar !!!
"Ignacio Ortiz de Zúñiga" <NoName@xailer.com> escreveu na mensagem
news:4497dfe6$[email=1@ozsrvnegro.ozlan.local...]1@ozsrvnegro.ozlan.local...[/email]
> Aguiar,
>
> oDataSet:Blank empties the DataSet buffer, but not ist linked controls.
> You should do it before the Edit method. BTW DataSet:Addnew performs that
> operation directly.
>
> Regards,
>
> "Aguiar" <aguiar.costa@sisbit.pt> escribió en el mensaje
> news:4497dab3$[email=1@ozsrvnegro.ozlan.local...]1@ozsrvnegro.ozlan.local...[/email]
>> Hello!
>>
>> I have some DbEdit controls in a form and want them to be shown empty. So
>> i used Blank() method but it doesn't work. The workaround i'm using is to
>> set the record on EOF...Am i missing something ?
>> TIA.
>> Aguiar !!!
>>
>>
>
>
>

Dataset:Blank()

Publicado: Mar Jun 20, 2006 6:51 pm
por ignacio
Aguiar,
Then:
WITH OBJECT oDataSet
:Blank()
Aeval( :aLinkedControls, {|v| v:Varget() } )
END WITH
Regards,
"Aguiar" <aguiar.costa@sisbit.pt> escribió en el mensaje
news:4497fa4d$[email=1@ozsrvnegro.ozlan.local...]1@ozsrvnegro.ozlan.local...[/email]
> Ignacio,
>
> Using AddNew don't i have to do a oDataset:Cancel somewhere later in the
> code ?
> The ideia is to initialize the form with blank DbControls and only fill
> them with data after search and select a specific record. All in the same
> form.
> I can do that but, i just wanted to know the right way to do it.
> TIA.
> Aguiar !!!
>
> "Ignacio Ortiz de Zúñiga" <NoName@xailer.com> escreveu na mensagem
> news:4497dfe6$[email=1@ozsrvnegro.ozlan.local...]1@ozsrvnegro.ozlan.local...[/email]
>> Aguiar,
>>
>> oDataSet:Blank empties the DataSet buffer, but not ist linked controls.
>> You should do it before the Edit method. BTW DataSet:Addnew performs that
>> operation directly.
>>
>> Regards,
>>
>> "Aguiar" <aguiar.costa@sisbit.pt> escribió en el mensaje
>> news:4497dab3$[email=1@ozsrvnegro.ozlan.local...]1@ozsrvnegro.ozlan.local...[/email]
>>> Hello!
>>>
>>> I have some DbEdit controls in a form and want them to be shown empty.
>>> So i used Blank() method but it doesn't work. The workaround i'm using
>>> is to set the record on EOF...Am i missing something ?
>>> TIA.
>>> Aguiar !!!
>>>
>>>
>>
>>
>>
>
>
>

Dataset:Blank()

Publicado: Mar Jun 20, 2006 6:51 pm
por NoName
Aguiar,
Then:
WITH OBJECT oDataSet
:Blank()
Aeval( :aLinkedControls, {|v| v:Varget() } )
END WITH
Regards,
"Aguiar" <aguiar.costa@sisbit.pt> escribió en el mensaje
news:4497fa4d$[email=1@ozsrvnegro.ozlan.local...]1@ozsrvnegro.ozlan.local...[/email]
> Ignacio,
>
> Using AddNew don't i have to do a oDataset:Cancel somewhere later in the
> code ?
> The ideia is to initialize the form with blank DbControls and only fill
> them with data after search and select a specific record. All in the same
> form.
> I can do that but, i just wanted to know the right way to do it.
> TIA.
> Aguiar !!!
>
> "Ignacio Ortiz de Zúñiga" <NoName@xailer.com> escreveu na mensagem
> news:4497dfe6$[email=1@ozsrvnegro.ozlan.local...]1@ozsrvnegro.ozlan.local...[/email]
>> Aguiar,
>>
>> oDataSet:Blank empties the DataSet buffer, but not ist linked controls.
>> You should do it before the Edit method. BTW DataSet:Addnew performs that
>> operation directly.
>>
>> Regards,
>>
>> "Aguiar" <aguiar.costa@sisbit.pt> escribió en el mensaje
>> news:4497dab3$[email=1@ozsrvnegro.ozlan.local...]1@ozsrvnegro.ozlan.local...[/email]
>>> Hello!
>>>
>>> I have some DbEdit controls in a form and want them to be shown empty.
>>> So i used Blank() method but it doesn't work. The workaround i'm using
>>> is to set the record on EOF...Am i missing something ?
>>> TIA.
>>> Aguiar !!!
>>>
>>>
>>
>>
>>
>
>
>

Dataset:Blank()

Publicado: Mar Jun 20, 2006 7:04 pm
por ignacio
Aguiar,
Varget() is a undocumented method available on all DataControls that you may
use for now, but I have just changed the DataSet:Blank() method and now
receives one parameter lUpdLinked (default .f.) to do the same job.
Regards,
"Ignacio Ortiz de Zúñiga" <NoName@xailer.com> escribió en el mensaje
news:4498279c$[email=1@ozsrvnegro.ozlan.local...]1@ozsrvnegro.ozlan.local...[/email]
> Aguiar,
>
> Then:
>
> WITH OBJECT oDataSet
> :Blank()
> Aeval( :aLinkedControls, {|v| v:Varget() } )
> END WITH
>
> Regards,
>
> "Aguiar" <aguiar.costa@sisbit.pt> escribió en el mensaje
> news:4497fa4d$[email=1@ozsrvnegro.ozlan.local...]1@ozsrvnegro.ozlan.local...[/email]
>> Ignacio,
>>
>> Using AddNew don't i have to do a oDataset:Cancel somewhere later in the
>> code ?
>> The ideia is to initialize the form with blank DbControls and only fill
>> them with data after search and select a specific record. All in the same
>> form.
>> I can do that but, i just wanted to know the right way to do it.
>> TIA.
>> Aguiar !!!
>>
>> "Ignacio Ortiz de Zúñiga" <NoName@xailer.com> escreveu na mensagem
>> news:4497dfe6$[email=1@ozsrvnegro.ozlan.local...]1@ozsrvnegro.ozlan.local...[/email]
>>> Aguiar,
>>>
>>> oDataSet:Blank empties the DataSet buffer, but not ist linked controls.
>>> You should do it before the Edit method. BTW DataSet:Addnew performs
>>> that operation directly.
>>>
>>> Regards,
>>>
>>> "Aguiar" <aguiar.costa@sisbit.pt> escribió en el mensaje
>>> news:4497dab3$[email=1@ozsrvnegro.ozlan.local...]1@ozsrvnegro.ozlan.local...[/email]
>>>> Hello!
>>>>
>>>> I have some DbEdit controls in a form and want them to be shown empty.
>>>> So i used Blank() method but it doesn't work. The workaround i'm using
>>>> is to set the record on EOF...Am i missing something ?
>>>> TIA.
>>>> Aguiar !!!
>>>>
>>>>
>>>
>>>
>>>
>>
>>
>>
>
>

Dataset:Blank()

Publicado: Mar Jun 20, 2006 7:04 pm
por NoName
Aguiar,
Varget() is a undocumented method available on all DataControls that you may
use for now, but I have just changed the DataSet:Blank() method and now
receives one parameter lUpdLinked (default .f.) to do the same job.
Regards,
"Ignacio Ortiz de Zúñiga" <NoName@xailer.com> escribió en el mensaje
news:4498279c$[email=1@ozsrvnegro.ozlan.local...]1@ozsrvnegro.ozlan.local...[/email]
> Aguiar,
>
> Then:
>
> WITH OBJECT oDataSet
> :Blank()
> Aeval( :aLinkedControls, {|v| v:Varget() } )
> END WITH
>
> Regards,
>
> "Aguiar" <aguiar.costa@sisbit.pt> escribió en el mensaje
> news:4497fa4d$[email=1@ozsrvnegro.ozlan.local...]1@ozsrvnegro.ozlan.local...[/email]
>> Ignacio,
>>
>> Using AddNew don't i have to do a oDataset:Cancel somewhere later in the
>> code ?
>> The ideia is to initialize the form with blank DbControls and only fill
>> them with data after search and select a specific record. All in the same
>> form.
>> I can do that but, i just wanted to know the right way to do it.
>> TIA.
>> Aguiar !!!
>>
>> "Ignacio Ortiz de Zúñiga" <NoName@xailer.com> escreveu na mensagem
>> news:4497dfe6$[email=1@ozsrvnegro.ozlan.local...]1@ozsrvnegro.ozlan.local...[/email]
>>> Aguiar,
>>>
>>> oDataSet:Blank empties the DataSet buffer, but not ist linked controls.
>>> You should do it before the Edit method. BTW DataSet:Addnew performs
>>> that operation directly.
>>>
>>> Regards,
>>>
>>> "Aguiar" <aguiar.costa@sisbit.pt> escribió en el mensaje
>>> news:4497dab3$[email=1@ozsrvnegro.ozlan.local...]1@ozsrvnegro.ozlan.local...[/email]
>>>> Hello!
>>>>
>>>> I have some DbEdit controls in a form and want them to be shown empty.
>>>> So i used Blank() method but it doesn't work. The workaround i'm using
>>>> is to set the record on EOF...Am i missing something ?
>>>> TIA.
>>>> Aguiar !!!
>>>>
>>>>
>>>
>>>
>>>
>>
>>
>>
>
>

Dataset:Blank()

Publicado: Mié Jun 21, 2006 10:40 am
por Aguiar Costa
Ignacio,
Once again thanks a lot for your great support.
Regards
Aguiar !!!
"Ignacio Ortiz de Zúñiga" <NoName@xailer.com> escreveu na mensagem
news:44982aac$[email=1@ozsrvnegro.ozlan.local...]1@ozsrvnegro.ozlan.local...[/email]
> Aguiar,
>
> Varget() is a undocumented method available on all DataControls that you
> may use for now, but I have just changed the DataSet:Blank() method and
> now receives one parameter lUpdLinked (default .f.) to do the same job.
>
> Regards,
>
> "Ignacio Ortiz de Zúñiga" <NoName@xailer.com> escribió en el mensaje
> news:4498279c$[email=1@ozsrvnegro.ozlan.local...]1@ozsrvnegro.ozlan.local...[/email]
>> Aguiar,
>>
>> Then:
>>
>> WITH OBJECT oDataSet
>> :Blank()
>> Aeval( :aLinkedControls, {|v| v:Varget() } )
>> END WITH
>>
>> Regards,
>>
>> "Aguiar" <aguiar.costa@sisbit.pt> escribió en el mensaje
>> news:4497fa4d$[email=1@ozsrvnegro.ozlan.local...]1@ozsrvnegro.ozlan.local...[/email]
>>> Ignacio,
>>>
>>> Using AddNew don't i have to do a oDataset:Cancel somewhere later in the
>>> code ?
>>> The ideia is to initialize the form with blank DbControls and only fill
>>> them with data after search and select a specific record. All in the
>>> same form.
>>> I can do that but, i just wanted to know the right way to do it.
>>> TIA.
>>> Aguiar !!!
>>>
>>> "Ignacio Ortiz de Zúñiga" <NoName@xailer.com> escreveu na mensagem
>>> news:4497dfe6$[email=1@ozsrvnegro.ozlan.local...]1@ozsrvnegro.ozlan.local...[/email]
>>>> Aguiar,
>>>>
>>>> oDataSet:Blank empties the DataSet buffer, but not ist linked controls.
>>>> You should do it before the Edit method. BTW DataSet:Addnew performs
>>>> that operation directly.
>>>>
>>>> Regards,
>>>>
>>>> "Aguiar" <aguiar.costa@sisbit.pt> escribió en el mensaje
>>>> news:4497dab3$[email=1@ozsrvnegro.ozlan.local...]1@ozsrvnegro.ozlan.local...[/email]
>>>>> Hello!
>>>>>
>>>>> I have some DbEdit controls in a form and want them to be shown empty.
>>>>> So i used Blank() method but it doesn't work. The workaround i'm using
>>>>> is to set the record on EOF...Am i missing something ?
>>>>> TIA.
>>>>> Aguiar !!!
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>
>>
>
>
>

Dataset:Blank()

Publicado: Mié Jun 21, 2006 10:40 am
por Aguiar Costa
Ignacio,
Once again thanks a lot for your great support.
Regards
Aguiar !!!
"Ignacio Ortiz de Zúñiga" <NoName@xailer.com> escreveu na mensagem
news:44982aac$[email=1@ozsrvnegro.ozlan.local...]1@ozsrvnegro.ozlan.local...[/email]
> Aguiar,
>
> Varget() is a undocumented method available on all DataControls that you
> may use for now, but I have just changed the DataSet:Blank() method and
> now receives one parameter lUpdLinked (default .f.) to do the same job.
>
> Regards,
>
> "Ignacio Ortiz de Zúñiga" <NoName@xailer.com> escribió en el mensaje
> news:4498279c$[email=1@ozsrvnegro.ozlan.local...]1@ozsrvnegro.ozlan.local...[/email]
>> Aguiar,
>>
>> Then:
>>
>> WITH OBJECT oDataSet
>> :Blank()
>> Aeval( :aLinkedControls, {|v| v:Varget() } )
>> END WITH
>>
>> Regards,
>>
>> "Aguiar" <aguiar.costa@sisbit.pt> escribió en el mensaje
>> news:4497fa4d$[email=1@ozsrvnegro.ozlan.local...]1@ozsrvnegro.ozlan.local...[/email]
>>> Ignacio,
>>>
>>> Using AddNew don't i have to do a oDataset:Cancel somewhere later in the
>>> code ?
>>> The ideia is to initialize the form with blank DbControls and only fill
>>> them with data after search and select a specific record. All in the
>>> same form.
>>> I can do that but, i just wanted to know the right way to do it.
>>> TIA.
>>> Aguiar !!!
>>>
>>> "Ignacio Ortiz de Zúñiga" <NoName@xailer.com> escreveu na mensagem
>>> news:4497dfe6$[email=1@ozsrvnegro.ozlan.local...]1@ozsrvnegro.ozlan.local...[/email]
>>>> Aguiar,
>>>>
>>>> oDataSet:Blank empties the DataSet buffer, but not ist linked controls.
>>>> You should do it before the Edit method. BTW DataSet:Addnew performs
>>>> that operation directly.
>>>>
>>>> Regards,
>>>>
>>>> "Aguiar" <aguiar.costa@sisbit.pt> escribió en el mensaje
>>>> news:4497dab3$[email=1@ozsrvnegro.ozlan.local...]1@ozsrvnegro.ozlan.local...[/email]
>>>>> Hello!
>>>>>
>>>>> I have some DbEdit controls in a form and want them to be shown empty.
>>>>> So i used Blank() method but it doesn't work. The workaround i'm using
>>>>> is to set the record on EOF...Am i missing something ?
>>>>> TIA.
>>>>> Aguiar !!!
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>
>>
>
>
>