| 04-13-2006, 12:44 AM | #1 |
Even with icons, a multiboard item is still a string. So would this work? JASS:
local string this = MultiboardGetItem(multiboard,row,column)
|
| 04-13-2006, 02:53 AM | #2 |
I am at my university computer so I don't have access to documentation but if that function returns a string, I don't see why it wouldn't work. |
| 04-13-2006, 04:47 AM | #3 |
Interesting theory you have there about everything is a string.... native MultiboardGetItem takes multiboard lb, integer row, integer column returns multiboarditem that is the common code for that particular function.... type multiboarditem extends handle and there is the definition of that type so.... A handle is a a dynamic pointer pointing to a place in memory. It is NOT a string though you COULD use a handle to point to string I suppose.... I would suggest you go to: http://www.wc3jass.com/ and learn more about Jass and its use of types... GL HF |
| 04-14-2006, 10:15 AM | #4 |
I think that would leak.. If it doesn't, I don't know what ReleaseItem(mbi) is for :) |
| 04-14-2006, 05:44 PM | #5 |
No, that definitely wouldn't work. That function returns a multiboard item, which as RodOfNod pointed out it extends handle. That means its just an integer that points to an object in memory. You'll have to find a native that will actually get the string out of the multiboarditem. |
