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


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

Re: VbScript and .NET objects

Path csiph.com!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail
From "Mayayana" <mayayana@invalid.nospam>
Newsgroups microsoft.public.scripting.vbscript
Subject Re: VbScript and .NET objects
Date Sun, 30 Aug 2015 23:09:37 -0400
Organization A noiseless patient Spider
Lines 19
Message-ID <ms0g7v$7pk$1@dont-email.me> (permalink)
References <55e1a84f.4061562@nntp.aioe.org> <mrsftt$lp0$1@dont-email.me> <mrsgqv$p51$1@dont-email.me> <mrvamc$6es$1@dont-email.me> <mrvc7v$d91$1@dont-email.me> <ms0bfn$l4$1@dont-email.me>
Injection-Date Mon, 31 Aug 2015 03:04:31 +0000 (UTC)
Injection-Info mx02.eternal-september.org; posting-host="44399d2aa6e1aaa74660fc0017e9dad9"; logging-data="7988"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19RRreJycwsgt2U0Tb4/MDajWsb3rbnKao="
X-MimeOLE Produced By Microsoft MimeOLE V6.00.2900.5512
X-Newsreader Microsoft Outlook Express 6.00.2900.5512
Cancel-Lock sha1:NcoMDaTb9jiH7fRRhEA2273ly5M=
X-Priority 3
X-MSMail-Priority Normal
Xref csiph.com microsoft.public.scripting.vbscript:11142

Show key headers only | View raw


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


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