Operation on a STRING of characters 
Author Message
 Operation on a STRING of characters

Asked and answered in the ...inetsdk.programming.scripting.VBScript newsgroup

<advice type="friendly">

It's better to cross-post a question as one post to multiple newsgroups than as separate posts.
That way the post and any replies posted from any of the groups is seen in all of them.

</advice>

--
Michael Harris
MVP Scripting


Hello,

I have the following simple (for you simple, for me impossible) problem, I
hope you can help me.

I have a string of characters:

String = "abcdefgh"

I would like to assign every two letters of that string to different
variables:

A = "ab"
B = "cd"
C = "ef"
D = "gh"

Can you show me a code in VBscript (ASP) to do that?

Thank you for your help.



Wed, 18 Dec 2002 03:00:00 GMT  
 Operation on a STRING of characters
Hello,

I have the following simple (for you simple, for me impossible) problem, I
hope you can help me.

I have a string of characters:

String = "abcdefgh"

I would like to assign every two letters of that string to different
variables:

A = "ab"
B = "cd"
C = "ef"
D = "gh"

Can you show me a code in VBscript (ASP) to do that?

Thank you for your help.



Thu, 19 Dec 2002 03:00:00 GMT  
 Operation on a STRING of characters
How do you do that?


Quote:
> Asked and answered in the ...inetsdk.programming.scripting.vbscript
newsgroup

> <advice type="friendly">

> It's better to cross-post a question as one post to multiple newsgroups

than as separate posts.
Quote:
> That way the post and any replies posted from any of the groups is seen in
all of them.

> </advice>

> --
> Michael Harris
> MVP Scripting



> Hello,

> I have the following simple (for you simple, for me impossible) problem, I
> hope you can help me.

> I have a string of characters:

> String = "abcdefgh"

> I would like to assign every two letters of that string to different
> variables:

> A = "ab"
> B = "cd"
> C = "ef"
> D = "gh"

> Can you show me a code in VBscript (ASP) to do that?

> Thank you for your help.



Thu, 19 Dec 2002 03:00:00 GMT  
 Operation on a STRING of characters
In OE's help, click on the index tab and look up "posting newsgroup messages".

There you will find the following:

<snip>
Note: To send your message to multiple newsgroups on the same news server, click the icon next to
Newsgroups in the New Message dialog box. In the Pick Newsgroups dialog box, click one or more
newsgroups from the list (hold down the CTRL key to select multiple newsgroups), and then click Add.
You can choose from all newsgroups or only those you subscribe to by clicking the Show only
subscribed newsgroups button.
</snip>

Just be sure to crosspost to only the 2 (or maybe 3) *most* relevant newsgroups.  In this particular
case, microsoft.public.scripting.vbscript was probably the only NG you needed.

--
Michael Harris
MVP Scripting


How do you do that?


Quote:
> Asked and answered in the ...inetsdk.programming.scripting.vbscript
newsgroup

> <advice type="friendly">

> It's better to cross-post a question as one post to multiple newsgroups

than as separate posts.
Quote:
> That way the post and any replies posted from any of the groups is seen in
all of them.

> </advice>

> --
> Michael Harris
> MVP Scripting



> Hello,

> I have the following simple (for you simple, for me impossible) problem, I
> hope you can help me.

> I have a string of characters:

> String = "abcdefgh"

> I would like to assign every two letters of that string to different
> variables:

> A = "ab"
> B = "cd"
> C = "ef"
> D = "gh"

> Can you show me a code in VBscript (ASP) to do that?

> Thank you for your help.



Thu, 19 Dec 2002 03:00:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Operation on a String of characters

2. Character operations on Strings

3. Search a string and change a character if it exists in the string

4. How can I replace an arbitrary character in a string (String functions in general)

5. string append operation

6. string operations

7. String operations question/problem

8. Wanted - Faster VB string operations

9. How to retreive the result of an operation contained in a string

10. convert string to mathematical operation

11. Help with String operation

12. String operation

 

 
Powered by phpBB® Forum Software