Mirage Source
http://web.miragesource.net/forums/

Problem with Emoticons in Chat
http://web.miragesource.net/forums/viewtopic.php?f=93&t=3981
Page 1 of 1

Author:  Poyzin [ Mon Jul 14, 2008 4:36 pm ]
Post subject:  Problem with Emoticons in Chat

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?

Attachments:
File comment: This is in modText.
error.jpg
error.jpg [ 85.67 KiB | Viewed 2984 times ]

Author:  Coke [ Mon Jul 14, 2008 6:32 pm ]
Post subject:  Re: Problem with Emoticons in Chat

A method is essentially what in VB is called an "event procedure", aka a Sub. Your missing part of a Sub somewhere~

Author:  Lea [ Mon Jul 14, 2008 6:48 pm ]
Post subject:  Re: Problem with Emoticons in Chat

It means imgIcon doesn't have a "Count" "data member"

Which makes sense.. Why would an image control have to count anything?

Author:  Ambientiger [ Mon Jul 14, 2008 7:01 pm ]
Post subject:  Re: Problem with Emoticons in Chat

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

The frmMirage.imgIcon.Count defines the upper value of the For loop as - the number of imgIcon images in the array minus 1.

Hope this helps.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/