If you want to return a string that contains the specified numbers of spaces or if you want to append a number with specified number of spaces then below example will help you solve the problem.
You can use below code too if you want to append or add blank spaces to the right of the string or number.
Dim part2 as Integer
Dim part3 As String
part2 = 12345
part3 = part2.ToString() + Space(5)
MsgBox(part3.Length())
Above example will add 5 blank spaces to the number 12345. So the Length of the number is 10 and the messagebox will return 10.
The .NET Framework allows developers to use the same set of skills to rapidly buid great applications for the web, windows, services and more.
Open a new Window in JavaScript
How to Open a new Window in Javascript/using Javascript is easy. Copy below code in your page.
If you want to open a new window on button clik then use below code,
<input type="button" value="Open New Window" onClick="OpenNewWindow('http://www.google.com')" />
If you want to open a new window using hyperlink then use below code,
<a href="javascript:OpenNewWindow('http://www.google.com/')">Open Google</a>
Copy below javascript code between your <head> and </head> tags on the page.
<script type="text/javascript">
function OpenNewWindow(url)
{
newwindow = window.open(url, 'mywindow', 'width=600,height=700');
newwindow.focus();
}
</script>
If you want to open a new window on button clik then use below code,
<input type="button" value="Open New Window" onClick="OpenNewWindow('http://www.google.com')" />
If you want to open a new window using hyperlink then use below code,
<a href="javascript:OpenNewWindow('http://www.google.com/')">Open Google</a>
Copy below javascript code between your <head> and </head> tags on the page.
<script type="text/javascript">
function OpenNewWindow(url)
{
newwindow = window.open(url, 'mywindow', 'width=600,height=700');
newwindow.focus();
}
</script>
Subscribe to:
Posts (Atom)