V4MD1 SetBlank()

Ruslan Zasukhin sunshine at public.kherson.ua
Fri Jul 15 16:24:16 CDT 2005


On 7/15/05 4:16 PM, "Andrew Sinning" <andrew at learningware.com> wrote:

>> If they are read only then why you try do SetBlank ?
>> 
> Please see the previous post in this thread.  Here's problem:  I have
> misunderstood what SetBlank() is suppoed to do.
> 
>     SetBlank() == "Prepare (clear) memory buffer for a new record."
> 
> I was thinking that this was like recordSet.Close() in ASP.  Duh!
> 
> So, my good man, please explain when I need to use SetBlank().  Only
> after using SetField() or SetFields()?  Never when using AddRecord() or
> UpdateRecord() with a property list?

You need use it always when you going to add record

    curs.SetBlank()

        curs.field(1).value = 5
        curs.field(2).value = 5
        curs.field(3).value = 5
    
    curs.AddRecord()

-- 
Best regards,

Ruslan Zasukhin
VP Engineering and New Technology
Paradigma Software, Inc

Valentina - Joining Worlds of Information
http://www.paradigmasoft.com

[I feel the need: the need for speed]




More information about the Valentina mailing list