[V4REV] VTable_SortN syntax discussed.

Ivan Smahin IvanSmahin at public.kherson.ua
Thu Jun 9 18:43:22 CDT 2005


Hello All,

    We are going to have VTable_SortN method in order to support multiple-fields
    table sorting.

    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" )
    


    Any ideas?
    
-- 
Best regards,
 Ivan                          mailto:IvanSmahin at public.kherson.ua

[Everything is possible. The impossible just takes longer.]



More information about the Valentina mailing list