VISUAL BASIC

VISUAL PROGRAMMING

VISUAL BASIC

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Which is the correct code to enter the numerical value in the program?
A
x = Val(Textbox1.Text)
B
x = Val(label1.Text)
C
x = Val(Text1.Text)
D
x = Val Text1.Text
Explanation: 

Detailed explanation-1: -The val() method returns or sets the value attribute of the selected elements. When used to return value: This method returns the value of the value attribute of the FIRST matched element. When used to set value: This method sets the value of the value attribute for ALL matched elements.

Detailed explanation-2: -Start Visual Studio. On the menu bar, choose File → New → Project. Choose Visual Basic from templates. Choose Console Application. Specify a name and location for your project using the Browse button, and then choose the OK button. The new project appears in Solution Explorer. More items

There is 1 question to complete.