Re: GWBASIC conversion

From: Michael C# (xyz_at_abcdef.com)
Date: 01/26/05


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/
>
>



Relevant Pages

  • Re: Y&R Kevins Return
    ... Michael ought to sue JT on Kevin's behalf in civil court. ... he'd never get a jury to convict and Michael said two words that were ... The thinking is that a judge isn't going to be emotionally ...
    (rec.arts.tv.soaps.cbs)
  • Re: New Topic - OLAP Server Performance etc (moved on from "Re: Hyperion Vs EPB and OFA")
    ... (then on his Rockport sabbatical from Oracle) ... I guess it's no longer possible for employees of ... which shows that Michael used to know that Applix had submitted TM1 to ...
    (comp.databases.olap)
  • Re: Just got flamed in alt.food.barbeque
    ... Quite a rude fella, had to be rude back unfortunately ... end snip> ... Michael <- never tasted Dinty Moore ...
    (rec.food.cooking)
  • Re: Semi-newbie, rolling my own __deepcopy__
    ... Michael Spencer wrote: ... Shouldn't this generate a TypeError when given a complex, ... Is there another section of the Python docs that will clarify all this ...
    (comp.lang.python)
  • GWBASIC conversion
    ... old GWBASIC program to VB, problem is I know GWBASIC and not VB. ... 'windows designer code' I ... vb complains with 'Reference to non-shared member requires an object ... the excess and I'm not sure, at this point, that I'd snip the right parts. ...
    (microsoft.public.dotnet.languages.vb)