Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 156751
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T10:22:57+00:00 2026-05-11T10:22:57+00:00

That’s what I’ve written so far: string omgwut; omgwut = textBox1.Text; omgwut = omgwut.Replace(

  • 0

That’s what I’ve written so far:

string omgwut; omgwut = textBox1.Text; omgwut = omgwut.Replace(' ', 'snd\\space.wav'); omgwut = omgwut.Replace('a', 'snd\\a.wav'); 

Now, the problem is that this code would turn

'snd\space.wav' 

into

'snd\spsnd\a.wavce.wsnd\a.wavv' 

in line four. Not what I’d want! Now I know I’m not good at C#, so that’s why I’m asking.

Solutions would be great! Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T10:22:57+00:00Added an answer on May 11, 2026 at 10:22 am

    You’ll still need to write the getSoundForChar() function, but this should do what you’re asking. I’m not sure, though, that what you’re asking will do what you want, i.e., play the sound for the associated character. You might be better off putting them in a List<string> for that.

    StringBuilder builder = new StringBuilder(); foreach (char c in textBox1.Text) {     string sound = getSoundForChar( c );     builder.Append( sound ); } string omgwut = builder.ToString(); 

    Here’s a start:

    public string getSoundForChar( char c ) {      string sound = null;      if (sound == ' ')      {          sound = 'snd\\space.wav';      }      ... handle other special characters      else      {          sound = string.Format( 'snd\\{0}.wav', c );      }      return sound; } 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

For some reason, after submitting a string like this Jack’s Spindle from a text
I've got a string that has curly quotes in it. I'd like to replace
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
that seems tricky. My IPad freezes and it seems that this line of code
That is, all text and subtags, without the tag of an element itself? Having
this is what i have right now Drawing an RSS feed into the php,
That should be simple web site but with an editable tree. This tree will
That show up on menu bar It's like this question: How to create a
That above is basically my problem. I already browsed some other questions on SO,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.