Space function

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Pippo

    Space function

    In Vb 6 exist the SPACE function
    How to replace this function in vb dot net?
  • Cor Ligthert

    #2
    Re: Space function

    Pippo,

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



    I hope this helps,

    Cor


    Comment

    • Carlos J. Quintero [.NET MVP]

      #3
      Re: Space function

      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:
      MZ-Tools has a single goal: To make your everyday programming life easier. As an add-in to several Integrated Development Environment (IDEs) from Microsoft, MZ-Tools adds new menus and toolbars to them that provide many new productivity features.


      "Pippo" <Pippo@discussi ons.microsoft.c om> escribió en el mensaje
      news:1002E82B-4880-4BE0-8779-126D29074B98@mi crosoft.com...[color=blue]
      > In Vb 6 exist the SPACE function
      > How to replace this function in vb dot net?[/color]


      Comment

      • Pippo

        #4
        Re: Space function

        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:
        [color=blue]
        > 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" <Pippo@discussi ons.microsoft.c om> escribió en el mensaje
        > news:1002E82B-4880-4BE0-8779-126D29074B98@mi crosoft.com...[color=green]
        > > In Vb 6 exist the SPACE function
        > > How to replace this function in vb dot net?[/color]
        >
        >
        >[/color]

        Comment

        • Armin Zingler

          #5
          Re: Space function

          "Pippo" <Pippo@discussi ons.microsoft.c om> schrieb[color=blue]
          > In Vb 6 exist the SPACE function
          > How to replace this function in vb dot net?[/color]


          new string(" "c, 17)


          Armin

          Comment

          • Carlos J. Quintero [.NET MVP]

            #6
            Re: Space function

            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:
            MZ-Tools has a single goal: To make your everyday programming life easier. As an add-in to several Integrated Development Environment (IDEs) from Microsoft, MZ-Tools adds new menus and toolbars to them that provide many new productivity features.


            "Pippo" <Pippo@discussi ons.microsoft.c om> escribió en el mensaje
            news:6AC95AC3-9214-4BE4-8926-42708062F2A0@mi crosoft.com...[color=blue]
            > 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?
            >[/color]

            Comment

            • Pippo

              #7
              Re: Space function

              Thanks it works fine

              Thanks guys

              "Carlos J. Quintero [.NET MVP]" wrote:
              [color=blue]
              > 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" <Pippo@discussi ons.microsoft.c om> escribió en el mensaje
              > news:6AC95AC3-9214-4BE4-8926-42708062F2A0@mi crosoft.com...[color=green]
              > > 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?
              > >[/color]
              >
              >[/color]

              Comment

              • C-Services Holland b.v.

                #8
                Re: Space function

                Pippo wrote:[color=blue]
                > 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?[/color]

                How about

                "".padright (n)

                where n is the number of spaces you need.
                --
                Rinze van Huizen
                C-Services Holland b.v.

                Comment

                • Cor Ligthert

                  #9
                  Re: Space function

                  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


                  Comment

                  • Herfried K. Wagner [MVP]

                    #10
                    Re: Space function

                    "Pippo" <Pippo@discussi ons.microsoft.c om> schrieb:[color=blue]
                    > 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[/color]

                    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/>

                    Comment

                    • Alex

                      #11
                      Re: Space function

                      "Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message
                      news:%23ut2B4Qb FHA.2768@tk2msf tngp13.phx.gbl. ..[color=blue]
                      > 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.[/color]

                      I noticed that there doesn't seem to exist a Microsoft.CShar p.dll. What's the
                      significance of that, if any?



                      Comment

                      • Alejandro Lapeyre

                        #12
                        Re: Space function

                        It means that the capabilities added by the VisualBasic.dll can also be used
                        by c# users.
                        No need to define things twice.


                        Best regards,
                        Alejandro Lapeyre

                        "Alex" <pleaszze@no.me ssages> escribió en el mensaje
                        news:OiyNMzjbFH A.2128@TK2MSFTN GP14.phx.gbl...[color=blue]
                        > "Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message
                        > news:%23ut2B4Qb FHA.2768@tk2msf tngp13.phx.gbl. ..[color=green]
                        >> 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.[/color]
                        >
                        > I noticed that there doesn't seem to exist a Microsoft.CShar p.dll. What's
                        > the
                        > significance of that, if any?
                        >
                        >
                        >[/color]


                        Comment

                        • Herfried K. Wagner [MVP]

                          #13
                          Re: Space function

                          "Alejandro Lapeyre" <AlejandroLapey re@jotmail.com> schrieb:[color=blue]
                          > It means that the capabilities added by the VisualBasic.dll can also be
                          > used by c# users.
                          > No need to define things twice.[/color]

                          LOL...

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

                          Comment

                          • Carlos J. Quintero [.NET MVP]

                            #14
                            Re: Space function



                            ;-)

                            --

                            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:
                            MZ-Tools has a single goal: To make your everyday programming life easier. As an add-in to several Integrated Development Environment (IDEs) from Microsoft, MZ-Tools adds new menus and toolbars to them that provide many new productivity features.


                            "Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> escribió en el mensaje
                            news:uU5$5%23mb FHA.3032@TK2MSF TNGP10.phx.gbl. ..[color=blue]
                            > "Alejandro Lapeyre" <AlejandroLapey re@jotmail.com> schrieb:[color=green]
                            >> It means that the capabilities added by the VisualBasic.dll can also be
                            >> used by c# users.
                            >> No need to define things twice.[/color]
                            >
                            > LOL...
                            >
                            > --
                            > M S Herfried K. Wagner
                            > M V P <URL:http://dotnet.mvps.org/>
                            > V B <URL:http://classicvb.org/petition/>[/color]


                            Comment

                            • Cor Ligthert

                              #15
                              Re: Space function

                              Carlos,



                              When I am able will I show it as soon as possible in the General newsgroup
                              to Jon Skeet, that will give a long thread again.

                              I once translated a VBNet sample literally to C# in the CSharp newsgroup
                              using this reference, however there was not any comment

                              :-)

                              Cor


                              Comment

                              Working...