How to get the buzzer work after storing Serial.read()?

@PaulS - I am sorry if it sounds so newbie, and have not reach your level yet. I just started and still learning. I got the sample codes somewhere and I simply copied it and did some changes to it. The codes work pretty well if I were to use LCD display instead of the buzzer though.

@MarkT - Thank you so much!! I got the buzzer working finally! I think I understand the rationale behind your modifications. Yeap. You hit on the nail. Before I posted these codes, I know there is 1 or 2 lines that is not relevant but I can't seem to find it as I was pretty in mess. You are right. I don't need the "inString"

  1. Can you explain this line? inData[index++] = inChar; If I understand correctly, it is a form of post-increment. So, the counter will automatically increase by 1 count after it store the char in one of its element? I guess its the same as
inData[index] = inChar;   
index++;

?