Substr question..

Results 1 to 2 of 2

Thread: Substr question..

  1. #1
    Join Date
    Dec 1969

    Default Substr question..

    I want to show the last 4 digits of a customers credit card information but when I use this command in the asp page is not recognizing doesnt turn a color showing its a command when I run it it says object needed here is how I did it:<BR><BR>substr(rscustomer.fields("creditnumber" ), 16 , 4)<BR><BR>using a credit number in this format 1234-1234-1234-1234

  2. #2
    Join Date
    Dec 1969

    Default RE: Substr question..

    Where do you see that SubStr is a valid VBScript function?<BR><BR>Instead, try:<BR><BR>Right(rscustomer.fields("creditnumber" ), 4)

Posting Permissions

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