[VAPP/AS] problems with setting fields
Kurt Klamp
K.Klamp at t-online.de
Fri Sep 19 23:04:32 CDT 2003
Hi Ruslan,
i've problems with the set command in AS. Did yoou changed something in
rules of syntax since 1.9.8 ?
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
If i write
> set every field of cursor to {}
it compiles to
> set every fields of cursor to {}
and on run there is no crash but the error 'Val. is missing some
parameter. But the value list is the same iget with 'set thelist to get
fields of cursor.
If i try
>set field 1 thru n of cursor to {}
a crash as result.
the only way which works is to set each field one after another via
>set field n of cursor to item n of valuelist
Am i doing something wrong?
BTW: i noticed something strange. In the AS dictionary of Vapp there
seems to recide only plurals of classes. The most classes are changed to
their plural form on compiling.
For example the value of a ptr field:
>records id 1 of base objects "Investments" of databases "P_Daten"
or some references:
>databases "P_Daten"
>cursors 1 of databases "P_Daten"
Each element is compiled to plural. May be thats the reason for the 'set
fields ...' problem
Best,
Kurt
More information about the Valentina
mailing list