Re: GWBASIC conversion
From: Michael C# (xyz_at_abcdef.com)
Date: 01/26/05
- Next message: Jay B. Harlow [MVP - Outlook]: "Re: .net FrameWork 1.1"
- Previous message: Michael C#: "Re: GWBASIC conversion"
- In reply to: Michael C#: "Re: GWBASIC conversion"
- Next in thread: Al Jones: "Re: GWBASIC conversion"
- Reply: Al Jones: "Re: GWBASIC conversion"
- Reply: Al Jones: "Re: GWBASIC conversion"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 25 Jan 2005 22:41:55 -0500
BTW, cb400Hurdles appears to be a Checkbox. To retrieve its value, you need
to use something like:
Dim Hurdles400Flag as Boolean = Me.cb400Hurdles.Checked
This assigns the Boolean value (True = checked, False = unchecked) of
cb400Hurdles.Checked to a Boolean variable named Hurdles400Flag.
cb400Hurdles.value will be invalid.
Thanks,
Michael C#
"Michael C#" <xyz@abcdef.com> wrote in message
news:HlEJd.1197$mq6.691@fe08.lga...
> Try this:
>
> strC = Me.cb400Hurdles.value
>
> Form1 is most likely your main form Class, and you can only call "Shared"
> properties and methods directly from the class definition as in your code.
> "Me" should be the actual object representing your current Form1 object.
>
> Thanks,
> Michael C#
>
> "Al Jones" <alfredmjones@shotmail.com> wrote in message
> news:opsk6stxfxxhg4go@aljones...
>> 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
>> vious - 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
>>
>> --
>> Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
>
>
- Next message: Jay B. Harlow [MVP - Outlook]: "Re: .net FrameWork 1.1"
- Previous message: Michael C#: "Re: GWBASIC conversion"
- In reply to: Michael C#: "Re: GWBASIC conversion"
- Next in thread: Al Jones: "Re: GWBASIC conversion"
- Reply: Al Jones: "Re: GWBASIC conversion"
- Reply: Al Jones: "Re: GWBASIC conversion"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|