another js question

Results 1 to 3 of 3

Thread: another js question

  1. #1
    Morebyte Guest

    Default another js question

    Good = "yes";<BR>for (count=0; count&#060;TransactionCode.length; count++) {<BR> if (TransactionCode.CharAt(count) == "(") {<BR> Good = "no";<BR> }<BR> if (Good == "yes") {<BR> NewTC = NewTC + TransactionCode.CharAt(count);<BR> }<BR>}<BR><BR>ity supposed to make a string like this:<BR><BR>smoetezt(test)<BR><BR>into this:<BR><BR>smoetezt<BR><BR>basicly (keep only stuff before parenthesis)<BR>what is ****ed up with my code? <BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: another js question

    Why not just use string.substring()? Look for the first (, and take everything before that.... seems easier than what you&#039;re trying. And no looping.<BR><BR>

  3. #3
    Morebyte Guest

    Default RE: another js question

    sorry - i&#039;m stupid, very stupid<BR>what does the code look like

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts