Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > microsoft.public.scripting.vbscript > #11143

Re: VbScript and .NET objects

From "Dave \"Crash\" Dummy" <invalid@invalid.invalid>
Newsgroups microsoft.public.scripting.vbscript
Subject Re: VbScript and .NET objects
Date 2015-08-31 07:40 -0400
Organization A noiseless patient Spider
Message-ID <ms1ebk$3n3$1@dont-email.me> (permalink)
References (2 earlier) <mrsgqv$p51$1@dont-email.me> <mrvamc$6es$1@dont-email.me> <mrvc7v$d91$1@dont-email.me> <ms0bfn$l4$1@dont-email.me> <ms0g7v$7pk$1@dont-email.me>

Show all headers | View raw


Mayayana wrote:
> | I use the Mid function to emulate the lacking Mid statement:
> |
> | s1=mid(s1,1,100) & "sample" & mid(s1,101)
> |
> 
>   That doesn't improve efficiency over the Left/Right code.
> It's just another way to do the same thing. You're still
> allocating 2 new strings, even though you're not declaring
> them, and then concatenating those strings in a 3rd new
> string. There is no substitute for the Mid statement, which
> is an entirely different operation, writing directly to the
> string bytes with no new allocations.
> 
>   Any of the Mid/Left/Right/Replace methods is fine for
> small string operations, but for extensive operations it's
> worthwhile to try to find a way to do it with Array/Join.

I don't understand how you turn the initial string of x characters into 
an array of x elements.
-- 
Crash

A line in the sand doesn't mean much if it disappears at high tide.

Back to microsoft.public.scripting.vbscript | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

VbScript and .NET objects noone@no.void (Reventlov) - 2015-08-29 12:40 +0000
  Re: VbScript and .NET objects "Mayayana" <mayayana@invalid.nospam> - 2015-08-29 10:39 -0400
    Re: VbScript and .NET objects "Mayayana" <mayayana@invalid.nospam> - 2015-08-29 10:55 -0400
      Re: VbScript and .NET objects GS <gs@v.invalid> - 2015-08-30 12:25 -0400
        Re: VbScript and .NET objects "Mayayana" <mayayana@invalid.nospam> - 2015-08-30 12:55 -0400
          Re: VbScript and .NET objects GS <gs@v.invalid> - 2015-08-30 13:02 -0400
            Re: VbScript and .NET objects GS <gs@v.invalid> - 2015-08-30 13:10 -0400
              Re: VbScript and .NET objects "Mayayana" <mayayana@invalid.nospam> - 2015-08-30 13:42 -0400
                Re: VbScript and .NET objects GS <gs@v.invalid> - 2015-08-30 14:04 -0400
                Re: VbScript and .NET objects "Mayayana" <mayayana@invalid.nospam> - 2015-08-30 17:05 -0400
                Re: VbScript and .NET objects GS <gs@v.invalid> - 2015-08-30 17:14 -0400
          Re: VbScript and .NET objects "Dave \"Crash\" Dummy" <invalid@invalid.invalid> - 2015-08-30 21:45 -0400
            Re: VbScript and .NET objects "Mayayana" <mayayana@invalid.nospam> - 2015-08-30 23:09 -0400
              Re: VbScript and .NET objects "Dave \"Crash\" Dummy" <invalid@invalid.invalid> - 2015-08-31 07:40 -0400
                Re: VbScript and .NET objects "Mayayana" <mayayana@invalid.nospam> - 2015-08-31 09:50 -0400
    Re: VbScript and .NET objects johnbeschler@gmail.com - 2017-03-15 10:24 -0700
      Re: VbScript and .NET objects "Mayayana" <mayayana@invalid.nospam> - 2017-03-15 14:40 -0400
        Re: VbScript and .NET objects "Mayayana" <mayayana@invalid.nospam> - 2017-03-15 21:38 -0400

csiph-web