Function that works as assignment too - vb.net -


how can make function in class able support : (kinda assignment)

dim ko integer = cell(x,y) 

and

cell(c,y) = 3 

kindest regards, adoloul

*nota : works in vb, sure, ur turn verify in ur language

ok nope don't search anymore, fund using dotnotpearls

i have use property setters , getters

public property cell(byval x integer, byval y integer) integer             return cells(x, y)     end     set(value integer)         cells(x, y) = value     end set end property 
  • don't remove post, 'should usefull anyone!

;)


Comments

Popular posts from this blog

asp.net - How to correctly use QUERY_STRING in ISAPI rewrite? -

jsf - "PropertyNotWritableException: Illegal Syntax for Set Operation" error when setting value in bean -

arrays - Algorithm to find ideal starting spot in a circle -