Quantcast
Channel: Xojo Programming Forum - Latest topics
Viewing all articles
Browse latest Browse all 3768

Having massive brain drain! How to create a new instance of a class array?

$
0
0

Hello all,

After all of these years, I’ve finally lost my marbles. Can someone please help me find them??

I have a Private Property TwilioSocket() As clsTwilioSocket in one class.
I need to create a new instance of this TwilioSocket array.

Tried this but got an error: Type mismatch. Expected class clsTwilioSocket but got class clsTwilioSocket. Makes no sense but???

TwilioSocket = New clsTwilioSocket
Dim Idx As Integer = TwilioSocket.LastIndex
TwilioSocket(Idx).Startup(eMFA_Transaction.RowID, Idx )

Also tried to use the Add function - Twilio.add and Twilio.AddAt function but they appear to be incorrect.

I’m sure its very simple but for some brain drain fog, I’ve forgotten and have not been able to find the correct solution.

Help anyone?

Thanks,
Tim

7 posts - 6 participants

Read full topic


Viewing all articles
Browse latest Browse all 3768

Trending Articles