List Info

Thread: passing Array via property




passing Array via property
user name
2006-11-29 20:36:10
You are so close. So very close. Try:
 
Private _x As byte()

Public Property X() As byte()
Get
Return _x
End Get
Set(ByVal value As byte())
_x = value
End Set
End Property

 


  _____  

From: AspNetAnyQuestionIsOk@yahoogroups.com
[mailto:AspNetAnyQuestionIsOk@yahoogroups.com] On Behalf Of
Abdulla Abd
Al Haq
Sent: Wednesday, November 29, 2006 3:24 PM
To: AspNetAnyQuestionIsOk@yahoogroups.com
Subject: [AspNetAnyQuestionIsOk] passing Array via property



Hi Group;
I wana ask how can I pass an array for example array of
integer values
into property?
I try the following Code but it does not work!
Class A
private _x as byte( )

public property X() as byte
get
return _x
end get
set (value as byte)
_x = value
end property
end Class
Now in the page i used the class:
dim xx as new A
dim y(3) as byte
y = {1,2,3}
xx.X = y

I do not know how to pass the Array via this property?????

Thanks in Advance 


---------------------------------
Everyone is raving about the all-new Yahoo! Mail beta.

[Non-text portions of this message have been removed]



 


[Non-text portions of this message have been removed]



 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    
http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/join

    (Yahoo! ID required)

<*> To change settings via email:
    mailto:AspNetAnyQuestionIsOk-digest@yahoogroups.com 
   
mailto:AspNetAnyQuestionIsOk-fullfeatured@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
    AspNetAnyQuestionIsOk-unsubscribe@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.c
om/info/terms/
 
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )