[V4REV] VTable_SortN syntax discussed.
Robert Brenstein
rjb at robelko.com
Sun Jun 12 01:17:26 CDT 2005
>Hello All,
>
> We are going to have VTable_SortN method in order to support
>multiple-fields
> table sorting.
You mean this will allow us to resort an existing cursor? But then
may be not since it has tableRef not cursorRef.
> What do you think - how params should be looked?
>
> 1.
> put VTable_SortN(
> tblRef,
> setRef,
> fld1, inBoolAscending1,
> [ fld2, inBoolAscending2,
> fld3, inBoolAscending3,
> fld4, inBoolAscending4 ] ) INTO ArraySetRef
>
> Example:
> put VTable_SortN( t1,allSet, f1, true, f2, false )
>
> 2.
> put VTable_SortN(
> tblRef,
> setRef,
> "fld1 inBoolAscending1",
> [ "fld2 [inBoolAscending2 = true]",
> "fld3 [inBoolAscending3 = true]",
> "fld4 [inBoolAscending4 = true]" ] ) INTO ArraySetRef
>
> Example:
> put VTable_SortN( t1,allSet, f1, "f2 false" )
>
#2 will surely be source of errors. Don't like it at all. But without
fully understanding what this function does, I am not sure whether
there is a better syntax than your #1.
Robert
More information about the Valentina
mailing list