Jump to content

Function: getRowFromItemText


Bssol

Recommended Posts

Posted (edited)

السلام عليكم ورحمة الله وبركاته

شباب هذا كود مسويه من زمان، مدري اذا شخص مسويه قبلي ولا لا

الكود مهمته يعطيك الـ

Row

بمعلومية القيمة

كل الي عليك تعطي الكود اللستة الي تبيها + القيمة + الـ

column

int getRowFromItemText ( element gridList, string itemText [, int column] ) 

function getRowFromItemText ( list, name, colum ) 
    if ( isElement(list) ) and ( type(name) == "string" ) then 
        local colum = tonumber(colum) or 1 
        local rows = guiGridListGetRowCount ( list ) - 1 
        for i=0,rows do 
            local text = guiGridListGetItemText ( list, i, colum ) 
            if ( text == name ) then 
                return i 
            end 
        end 
    end 
    return false 
end 

اتمنى افدتكم ذذ

Edited by Guest
Posted

تسلم عالطرح وذا الكود يفيدك خصوصا اذا كان مودك تستخدم فيه القريد لست كثير

فديت طروحاتك ياعسل

ض1

  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...