Imagine you have a string variable that holder a credit
card (16digit). There are multiple ways of obtaining last
four digits of this number programmatically on a run time.
Name one; for practical purpose variables name is sCCnumber?

Answer Posted / smitha

Use Right function
sSubstring = Right (sString, iNumChars)

Eg. sCCnumber = "123456786543245"

Print ( right (sCCnumber ,4)

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to run all test cases in a testplan?

834


How to test your defaultbasestate?

811


How to create a new silktest project?

789


How to record a test case?

784


How to download latest silk test trial version?

884


What is the dom browser extension?

807


How to open an existing silktest project?

785


What is the syntax of ui object identifier used by dom extension?

788


How to create group and sub group descriptions in a testplan?

794


Is there any way of passing values at runtime? Like scanf does in C.

2412


How to run a test case from a testplan file?

828


How to specify a browser extension to a web application?

802


What is multi-tagging?

782


What is silktest agent?

768


How to define values for a testplan attribute?

828