How do you create a string and reverse a string in visual basic?
Dim x As String
x = "HELLO"
Dim tmpString As String
tmpString = Nothing
For j = 0 To x.Length - 1
Dim int
int=x.Length - 1
int=int-j
tmpString=x(j)
Next
Why is BASIC considered to be a user friendly language?
It's English-like syntax is much easier to learn than many other languages.
How do you re size the label in visual studio?
If you mean font, then you can use the font property of the label. Otherwise, you can't because there is no point to.
How do you connect Visual Basic with SQL server database?
It depends on what version of VB you are using, and what version of SQL Server you're attempting to connect to. Also, there are several ways to connect from each version of VB to each version of SQL Server (ODBC, ADODB, DSN-less, etc.). Since your question does not provide enough specifics to answer adequately, I refer you to the "Connection Strings" link at the bottom of this page (or you may just type in www.connectionstrings.com in your browser).
How do you use string in visual basic?
A string is a data set in the form of alphanumeric characters and symbols. For example, if you wanted to use a string to concatenate and display a welcome message displaying a user's name, your code would look something like this:
Dim WelcomeMessageString as String = "Welcome to the string demonstration "
Dim FormResponseString as String = form1.text
Message(WelcomeMessageString + FormResponseString)
Here is a simple Hello World application I whipped up using Visual Basic 6:
Private Sub cmdButton_Click()
MsgBox "Hello world!", vbInformation, "Notice"
'displays a message box with an information icon, _
the message that says "hello world", and _
a title that says "notice".
End Sub
The preceding code is for a command button that when clicked, evokes the
button's subroutine.
All comments start with an apostrophe.
They are basically words or simbles written out to make a program. Here is a simple one if you want to make one open a website
1 open notepad by doing Start>all programs>accessories>notepad
2 paste this in
@echo off
cls
title Website opener
color 4b
Set /p website= Type The website you would like to goto
echo Opening %website%
start www.%website%.com
exit
3 goto file save as whatever.bat
4 bellow that select All files instead of txt document.
5 open and enjoy
You will need an internet connection
Toolbox in Visual Basic.net 2008 consist of Controls, Containers, Menu Options, Crystal Report Controls, Data Controls, Dialogs, Components, Printing controls, that are used in a form to design the interfaces of an application.
What is a visual pass in track?
The receiver for the baton runs before he receives the baton and looks back at the person with the baton to receive the baton.
What is the difference between ASP Net and visual studio Net?
Visual Studio is an IDE, whereas DotNet is a framework. A Framework is a set of usable components which can be used to develop some application, hence Visual Studio is a development environment for DotNet based applications.
Vb program to find roots of quadratic equation?
Dim a, b, c, undroot, root, posx, negx, x1, x2 As Single
Private Sub cmdcompute_Click()
a = txta.Text
b = txtb.Text
c = txtc.Text
If txta.Text = "" Then
MsgBox "Please enter the value of A ", 0 + 32
Exit Sub
End If
If txtb.Text = "" Then
MsgBox "Please enter the value of B ", 0 + 32
Exit Sub
End If
If txtc.Text = "" Then
MsgBox "Please enter the value of C ", 0 + 32
Exit Sub
End If
If a = 0 Then
MsgBox "A can't equal 0 ", 0 + 32
Exit Sub
End If
If (b ^ 2) - 4 * a * c < 0 Then
txtx1.Text = ""
txtx2.Text = ""
MsgBox "Imaginary solution : (b^2)-4*a*c < 0", 0 + 48
Exit Sub
End If
'Calcualtions
undroot = (b ^ 2) - 4 * a * c
root = undroot ^ (0.5)
posx = (b * -1) + root
negx = (b * -1) - root
x1 = posx / (2 * a)
x2 = negx / (2 * a)
'Displaying results
txtx1.Text = " " & x1
txtx2.Text = " " & x2
End Sub
How you can generate an random unique number in visual basic studio?
You can use this function:
Function Random(ByVal Lowerbound As Long, ByVal Upperbound As Long)
Randomize()
Random = Int(Rnd * Upperbound) + Lowerbound
End Function
And use it by using:
whatever.Text = Random(1, 1000)
This example gives a number between 1 and 1000.
Basic defferences between general procedures and event procedures in Visual Basic language?
Although these two terms refer to similar processes there is a technical difference. A procedure is a snippit of code that is a specific list on instructions that a program may execute once or twice. Basically a procedure will only run once everytime it's action is called. A function is kind of like a loop. A function mainly concerns variables where the variable is increasing each time delivering different numbers each time the function is repeated. Here are some examples. A program saves your work when you click the save button is a procedure. A video converter convertes 7,000 frames is a function.
What are the difference between vb studio and vbnet?
VB can be run with native support means you don't have to install any framework, library, run time environment etc in order to run an App which is built by VB.
Whereas VB.Net must requires a Dotnet Framework as a prerequisite for VB.Net app.........
VB app is run efficiently as compared to VB.Net......Because there VB app runs directly On OS kernel whereas VB.Net is firstly run on .Net Framework (CLR)* and then this CLR(Common Language Runtime) executes it on Os kernel so For VB.Net there is an extra of one layer for executing......
*CLR is a .Net Framework core component which translates the VB.Net app (or any other app which is built using .Net) into Machine language code.
What is the scope of variables declared in an if then else statement is false path?
Only the true path in the If...Then...Else statement
What are visual methods of illustrating that would be described in text?
all of theses answers are correct
That's easy to do!
This script will get the POST data from an HTML form and check if it is a vowel.
$vowels = array('a','e','i','o','u'); // Make variable "vowels" an array with all vowels in it
$_POST['string'] = $string;
if (strlen($string) != 1) { // String is not one character.
echo 'The "character" is not one character!";
} else if (in_array($string, $vowels)) { // Check if string is a vowel based on array
echo $string.' is a vowel!'; // Is a vowel
} else {
echo $string.' is not a vowel.'; // Is not a vowel
}
?>
NOTE: Sorry about horrible looking code, Wiki messed up my indenting.
What are the disadvantages of visual studio?
not much really. The only thing is, is that it costs and takes up alot of room on your pc. if you are downloading, prepare for a long download. Visual Basic is free!
Ifthenstatement visual basic 6.0?
Like most languages Visual basic also uses the 'If' keyword to implement the decision control statement. The syntax of 'If' statement is as follow
If <condition> Then
Statements ...........
.............................
End If
For Example:
Private Sub Form1_click()
Dim marks As Integer
marks= InputBox("Enter Marks : ")
If marks >60 Then
MsgBox "First Devision"
End If
End Sub
What is the difference between C plus plus and MS Visual C plus plus computer programming?
C++ is simply the generic implementation, based upon the version originally developed by Bjarne Storustrup, and which is considered the standard implementation. Visual C++ is Microsoft's implementation of the language, which follows much of the standard, but is not 100% compliant. However, VC++ includes an extensive and exclusive library that is specific to Windows programming. Competitors such as Embarcadero's C++ Builder have similarly extensive Windows libraries but which are not compatible with Microsoft's.
Write a programe to find whether a number is odd or even?
#include
#include
int main(int argc, char *argv[]){
if(argc != 2) {
printf("pass one integer as an argument.\n");
exit(1);
}
if(atoi(argv[1]) % 2){
printf("That is an odd number\n");
}else{
printf("That is an even number\n");
}
return 0;
}
What are appropriate means for leaving evidence of presence
the features of V B is we are creating a programme and it is run in similar window ..... this software powered by a great sintest of amaroka .............and this is