Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / insert element in Array of type

Author
Message
Freddix
AGK Developer
22
Years of Service
User Offline
Joined: 19th Sep 2002
Location: France
Posted: 3rd Feb 2019 14:25 Edited at: 3rd Feb 2019 14:27
[Resolved]

Hello,

if I setup this :
type fontSystem
fontName As String // Font name
used As Integer // If font was used during render (for auto purge mode )
EndType
global fntSystem as fontSystem[ 0 ]

how can I use the .insert( X ) to insert a new object containing fontName & used ?
I check the doc but it don't talk about array of type.

Regards,

[Resolved]
I've found :

myItem as MyType
myItem.ID = 3
myItem.name = "Eve"
myArray.insert(myItem)
remstart
the array now looks like this
[0]: ID=1, name="Carol"
[1]: ID=2, name="David"
[2]: ID=3, name="Eve"
[3]: ID=4, name="Alice"
[4]: ID=5, name="Bob"
remend

Login to post a reply

Server time is: 2024-11-05 18:37:29
Your offset time is: 2024-11-05 18:37:29