473,574 Members | 2,914 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Space function

In Vb 6 exist the SPACE function
How to replace this function in vb dot net?
Nov 21 '05 #1
22 14265
Pippo,

Although this is more a question to be answered by Ken.

http://msdn.microsoft.com/library/de...vafctSpace.asp

I hope this helps,

Cor
Nov 21 '05 #2
Hi Pippo:

Try:

Microsoft.Visua lBasic.Strings. Space(number)

--

Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio .NET, VB6, VB5 and VBA
You can code, design and document much faster.
Free resources for add-in developers:
http://www.mztools.com

"Pippo" <Pi***@discussi ons.microsoft.c om> escribió en el mensaje
news:10******** *************** ***********@mic rosoft.com...
In Vb 6 exist the SPACE function
How to replace this function in vb dot net?

Nov 21 '05 #3
Thanks for your help...

But in yours replies you use the Microsoft.Visua lBasic namespace

In my project i want to use a native dot net function and not a old vb
function

Is there an another way?

"Carlos J. Quintero [.NET MVP]" wrote:
Hi Pippo:

Try:

Microsoft.Visua lBasic.Strings. Space(number)

--

Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio .NET, VB6, VB5 and VBA
You can code, design and document much faster.
Free resources for add-in developers:
http://www.mztools.com

"Pippo" <Pi***@discussi ons.microsoft.c om> escribió en el mensaje
news:10******** *************** ***********@mic rosoft.com...
In Vb 6 exist the SPACE function
How to replace this function in vb dot net?


Nov 21 '05 #4
"Pippo" <Pi***@discussi ons.microsoft.c om> schrieb
In Vb 6 exist the SPACE function
How to replace this function in vb dot net?

new string(" "c, 17)
Armin
Nov 21 '05 #5
Then use:

New String(" "c, n)

--

Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio .NET, VB6, VB5 and VBA
You can code, design and document much faster.
Free resources for add-in developers:
http://www.mztools.com

"Pippo" <Pi***@discussi ons.microsoft.c om> escribió en el mensaje
news:6A******** *************** ***********@mic rosoft.com...
Thanks for your help...

But in yours replies you use the Microsoft.Visua lBasic namespace

In my project i want to use a native dot net function and not a old vb
function

Is there an another way?


Nov 21 '05 #6
Thanks it works fine

Thanks guys

"Carlos J. Quintero [.NET MVP]" wrote:
Then use:

New String(" "c, n)

--

Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio .NET, VB6, VB5 and VBA
You can code, design and document much faster.
Free resources for add-in developers:
http://www.mztools.com

"Pippo" <Pi***@discussi ons.microsoft.c om> escribió en el mensaje
news:6A******** *************** ***********@mic rosoft.com...
Thanks for your help...

But in yours replies you use the Microsoft.Visua lBasic namespace

In my project i want to use a native dot net function and not a old vb
function

Is there an another way?


Nov 21 '05 #7
Pippo wrote:
Thanks for your help...

But in yours replies you use the Microsoft.Visua lBasic namespace

In my project i want to use a native dot net function and not a old vb
function

Is there an another way?


How about

"".padright (n)

where n is the number of spaces you need.
--
Rinze van Huizen
C-Services Holland b.v.
Nov 21 '05 #8
Pippo,

Endless those replies.

The Microsoft.Visua lBasic namespace is a full part of the Net Framework

In that are the namespaces system.net And Microsoft.Visua lBasic

Standard uses VisualBasic both.

If you want to use both in C#, C++ or J# than you have to set in those a
reference to that.

That is all.

Cor
Nov 21 '05 #9
"Pippo" <Pi***@discussi ons.microsoft.c om> schrieb:
But in yours replies you use the Microsoft.Visua lBasic namespace

In my project i want to use a native dot net function and not a old vb
function


As it's impossible to write VB.NET applications which don't reference
"Microsoft.Visu alBasic.dll", there is absolutely no reason for not using the
functionality of this library. Developing in VB.NET without using
'Microsoft.Visu alBasic' is developing with VB.NET without actually using it.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
1511
by: Killer | last post by:
Good Morning, I have a question. Is there a function like ISNULL but for the space value(example ISSPACE)? THANKS
3
54317
by: mike parr | last post by:
What is the equivalent of Space in C#? Space(10 - Len(Trim(txtAccessAccountsID.Text))) Thanks, Mike
5
16782
by: ad | last post by:
Is there fucntion in C#, which will return a string consist of a given number of space, like Space(5)-> " ";
4
2715
by: kollatjorva | last post by:
Hi all I'm trying to get a value from an xml node 'Publisher' use the value as a name of an .css class. This works fine until I get a value from the Publisher node with white space in it. I've been trying to use normalize-space function on this but I can't make this work here is what I'm trying to do
10
22604
by: kevinliu23 | last post by:
HI, I am new to Python and wanted to know how to check for the remaining disk space on my Windows machine using Python? I was thinking of using the command line "dir" and trying to extract the output from there. But I'm not sure how to extract command line strings using Python either. Anyway help would be appreciated. :)
0
1181
by: ajay pratap singh111 | last post by:
I have used space() and format() function in one of my project on excel vba. The project was running on my system but when i made its setup file using innoSetup and gave it to my client then it's giving error as Space() not defined . Then i made my customized space function and registered VBES6.DLL FILE ALSO. now it's giving error on format...
3
1497
by: preethi303 | last post by:
Hi, I'm using VB 2005 and I have a problem formatting a string when I use the print preview dialog box. I'm using just the vbCrLf character and the Space function to correctly align my data and when I write this data to a textfile, it's formatted the way I want it to be. But when I display it with the print preview dialog, the format is wrong....
1
2004
by: nassegris | last post by:
Hello everyone! I'm trying to write a regular expression to capture VB6 function definitions and I'm abit stuck. The rules are: Function header: * Must contain the words SUB or FUNCTION * May contain the words PUBLIC or PRIVATE * May NOT contain the word DECLARE * Ends at the first newline that is not preceded by an underscore (_)
0
7726
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8053
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7817
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
8098
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5301
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3741
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
2245
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1341
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1060
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.