Jump to content

Similar functions


Nonameman

Recommended Posts

Posted

Hey!

I'm confused about two gui gridlist function, guiGridListGetItemData() and guiGridListGetItemText().

They both return a string, so I thought they do the same, find the item from the given column and row index, and return the found item's content.

Am I right or not? Which of them shall I use?

Thanks :)

Nonameman

Posted

Yes, but one returns the TEXT and other the DATA, you can use guiGridListSetItemText to set a row TEXT and guiGridListSetItemData to set a row DATA, they aren't the same.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

That's right, you can't see the gridlist data, that's usefull when you want to hide something and use it later.

@Qais: Yes, I think it's similar, but this works with rows, is not setting the data to the gridlist himself.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

You welcome.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

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