Howdy, Stranger!

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

Categories

Writing an If block on a single line

Hi!
Could someone show me how to write the following code on a single line instead of three?

If number > 0
Image1.Picture=LoadPicture("C:Windowsell.bmp")
End If

Thank you

Comments

  • iwilld0itiwilld0it Member Posts: 1,134
    [b][red]This message was edited by iwilld0it at 2003-11-17 12:1:57[/red][/b][hr]
    : Hi!
    : Could someone show me how to write the following code on a single line instead of three?
    :
    : If number > 0
    : Image1.Picture=LoadPicture("C:Windowsell.bmp")
    : End If
    :
    : Thank you
    :
    :

    [code]
    If number > 0 Then Image1.Picture=LoadPicture("C:Windowsell.bmp")
    [/code]


Sign In or Register to comment.