How to execute string as method

RajKumarJain

New member
Joined
Sep 5, 2007
Messages
4
Programming Experience
Beginner
PLEASE CORRECT THE CODE
HOW I CAN CALL THE METHOD SPECIFIED IN STRC STRING

DIM STRC AS STRING
strc = "ME.BackColor =Color.BlueViolet "
 
PLEASE CORRECT THE CODE
HOW I CAN CALL THE METHOD SPECIFIED IN STRC STRING

DIM STRC AS STRING
strc = "ME.BackColor =Color.BlueViolet "

You delete the bits in red:

VB.NET:
[SIZE="4"][B][COLOR="Red"]DIM STRC AS STRING
strc = "[/COLOR]ME.BackColor =Color.BlueViolet[COLOR="red"] "[/COLOR][/B][/SIZE]
and now it will compile and run like it should..
 
Back
Top