![]() |
Problem with Emoticons in Chat - Printable Version +- Mirage Engine (https://mirage-engine.uk/forums) +-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61) +--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18) +---- Forum: Staff (https://mirage-engine.uk/forums/forumdisplay.php?fid=41) +----- Forum: Trash (https://mirage-engine.uk/forums/forumdisplay.php?fid=14) +------ Forum: Cerberus Engine (https://mirage-engine.uk/forums/forumdisplay.php?fid=25) +------ Thread: Problem with Emoticons in Chat (/showthread.php?tid=1920) |
Problem with Emoticons in Chat - Poyzin - 14-07-2008 I did the emoticon in chat tutorial by Tutorial Bot and when I ran it in Cerberus, I got the error in the attatchment. Any clue how to fix? Re: Problem with Emoticons in Chat - Coke - 14-07-2008 A method is essentially what in VB is called an "event procedure", aka a Sub. Your missing part of a Sub somewhere~ Re: Problem with Emoticons in Chat - Ambientiger - 14-07-2008 The part your missing Poyzin is the array of images the .count method is expecting to find. ref: Quote:4. On frmIcon, make an INDEXED image (as many as you want for emoticons), named imgIcon.Basically copy and paste imgIcon onto frmIcon as many times as you have emoticons, the first time you c+p the image box the IDE will ask you if you want to make a control array, click yes. Each new imgIcon is now refered to by its position in the array eg; imgIcon(4). Code: For i = 0 To frmMirage.imgIcon.Count - 1 'Loop through each icon Hope this helps. |