Click here to Skip to main content
16,019,618 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
C#
websnapme.TransmissionMessageData[] objData = new mClkWeb.websnapme.TransmissionMessageData[10];
objData[0].TextData ="Text Message";



I am creating first array of class websnapme.TransmissionMessageData then

I am having object objData of class websnapme.TransmissionMessageData.
in above code its giving error for
C#
objData[0].TextData ="Text Message";
Posted
Updated 29-Jun-10 21:21pm
v3

1 solution

You need to do objData[0] directly.
 
Share this answer
 
Comments
tejasvee 30-Jun-10 3:16am    
then it is giving error cant implicitly convert type string to mClkWeb.websnapme.TransmissionMessageData
Abhinav S 30-Jun-10 12:18pm    
You need to set obhData[0] to an object of type mClkWeb.websnapme.TransmissionMessageData - not a string directly.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900