[VAPP/AS] problems with setting fields

Ruslan Zasukhin sunshine at public.kherson.ua
Wed Sep 24 16:07:10 CDT 2003


on 9/20/03 4:59 PM, Kurt Klamp at K.Klamp at t-online.de wrote:

> Ruslan Zasukhin wrote at 20.09.2003 14:04 Uhr
> 
> Hi Ruslan,
> 
>> Hi Kurt,
>> 
>>> i've problems with the set command in AS. Did yoou changed something in
>>> rules of syntax since 1.9.8 ?
>> 
>> No, only record locks was added.
> 
> I know. But mistery is that old scripts work without adding new lock
> properties(default lock is 'readonly' and cursor change recorsd though)
> 
> 
>> 
>>> There is no chance to fill the fields of a cursor with the code
>>> 
>>>> set fields of cursor to {.......}
>>> 
>>> In this form VAPP crashes with error 15
>> 
>> Does my examples works?
> NO
> 
> in example 102 i changed the line
> 
> :: make new record with data {...} at end of curs   / which works !!
> into
> 
> :: make new record at end of curs
> :: set fields of curs to {0, i as string, "some address", photo}
> :: update curs
> 
> and i get the same error. Here is the evnt protojoll of scripteditor:

Hi Kurt,

But if I change it as next:

        repeat with i from 1 to 5

            make new record at end of curs
            set field "Name" of curs to i as string
            set field "Address" of curs to "some address"
            set field "Photo" of curs to photo

            update curs

Then it works fine.

It looks problem when we in list assign ZERO to RecID field of cursor.
You think this did work before?


-- 
Best regards,
Ruslan Zasukhin      [ I feel the need...the need for speed ]
-------------------------------------------------------------
e-mail: ruslan at paradigmasoft.com
web: http://www.paradigmasoft.com

To subscribe to the Valentina mail list go to:
http://lists.macserve.net/mailman/listinfo/valentina
-------------------------------------------------------------



More information about the Valentina mailing list