A
Al Jones
Yep,you read it right, I have the pleasurable task of converting a very
old GWBASIC program to VB, problem is I know GWBASIC and not VB.
I've designed a form with the required fields, given them reasonable names
(cbHurdle, txtName, dtComletionDate, etc). I also taken the original code
and 'plopped' it into a private sub btn_onclick. I've made all the
obvious necessary linguistic changes and globally renamed many of the
variables (VB gets upset over x and y and doesn't seem to know the
difference between c and c$,
)
Now the question, since the form is in that little black box called
'windows designer code' (yes, I know I can look at it and I have) I
figured that I could 'strC = Form1.cb400Hurdles.value' but not so obvious
- vb complains with 'Reference to non-shared member requires an object
reference' ...??? I would have thought that Form1 was the object .... any
suggestions. If wanted, I can cut & paste code, but would have to snip
the excess and I'm not sure, at this point, that I'd snip the right parts.
Thanks for *any* consideration //al
old GWBASIC program to VB, problem is I know GWBASIC and not VB.
I've designed a form with the required fields, given them reasonable names
(cbHurdle, txtName, dtComletionDate, etc). I also taken the original code
and 'plopped' it into a private sub btn_onclick. I've made all the
obvious necessary linguistic changes and globally renamed many of the
variables (VB gets upset over x and y and doesn't seem to know the
difference between c and c$,
)Now the question, since the form is in that little black box called
'windows designer code' (yes, I know I can look at it and I have) I
figured that I could 'strC = Form1.cb400Hurdles.value' but not so obvious
- vb complains with 'Reference to non-shared member requires an object
reference' ...??? I would have thought that Form1 was the object .... any
suggestions. If wanted, I can cut & paste code, but would have to snip
the excess and I'm not sure, at this point, that I'd snip the right parts.
Thanks for *any* consideration //al