Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

VisualBasic.net Value

kenikovkenikov Member Posts: 8
What value is assigned to the Me.NumLabel control when the NumLabel.Text = 73 / 25 instruction is processed?
- www10.brinkster.com/kenikov

Comments

  • leeosleeos Member Posts: 1,212
    : What value is assigned to the Me.NumLabel control when the NumLabel.Text = 73 / 25 instruction is processed?
    : - www10.brinkster.com/kenikov
    :
    is this a trick question?
  • iwilld0itiwilld0it Member Posts: 1,134
    [b][red]This message was edited by iwilld0it at 2004-3-16 23:4:57[/red][/b][hr]
    : : What value is assigned to the Me.NumLabel control when the NumLabel.Text = 73 / 25 instruction is processed?
    : : - www10.brinkster.com/kenikov
    : :
    : is this a trick question?
    :

    If Option Strict is turned off it will store "2.92" in string format within a label. Other-wise the compiler will complain, meaning you will have to cast the operation into a string like so ...

    [code]
    NumLabel.Text = (73 / 25).ToString()
    [/code]


    Personally I do not see why you would hard-code any calculation like that.



  • infidelinfidel Member Posts: 2,900
    : : What value is assigned to the Me.NumLabel control when the NumLabel.Text = 73 / 25 instruction is processed?
    : : - www10.brinkster.com/kenikov
    : :
    : is this a trick question?

    sounds more like a homework question


    [size=5][italic][blue][RED]i[/RED]nfidel[/blue][/italic][/size]

    [code]
    $ select * from users where clue > 0
    no rows returned
    [/code]

Sign In or Register to comment.