api way

Ruslan Zasukhin sunshine at public.kherson.ua
Sat Jul 23 19:18:54 CDT 2005


On 7/23/05 9:48 AM, "Ruslan Zasukhin" <sunshine at public.kherson.ua> wrote:

>> dg=app.mdatabase.SQLSelect("select RecID,* from Article where BArt
>> like '"+ch+"%' and (JDepArt='C' and Ordart='"+Myord+"') order by BArt")

What about next style?


Foo()
    bitset1 = tblAticle.field("BArt").FindLike( ch + "%" )
    if bitset1 = nil then return nil
        
    bitset12 = tblAticle.field("JDepArt").FindValue( "C", bitset1 )
    if bitset12 = nil then return nil
 
    bitset123 = tblAticle.field("Ordart").FindValue( "Myord", bitset12 )
    if bitset123 = nil then return nil

    return tblArticle.Sort( bitset123, "BArt" )
end

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