473,699 Members | 2,487 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 14276
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
1516
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
54326
by: mike parr | last post by:
What is the equivalent of Space in C#? Space(10 - Len(Trim(txtAccessAccountsID.Text))) Thanks, Mike
5
16786
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
2725
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
22638
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
1184
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 function just like in case of Space(). Now what should i do to resolve this issue. Can anybody help...
3
1505
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. I was able to trace the problem to either the Space function or the font. When writing to a file,...
1
2011
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
8623
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9197
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9054
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7785
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6549
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5881
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4390
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3071
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
2
2362
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.