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

Hi All, An newbiee to silk test tool. I wanted to write a function which checks the browser type installed in the local machine & then based on the browser type test case should run. I tried little bit writing the function : Void Func_ValidateBrowserType() Window myWin myWin = Browser.GetRealBrowser () print (myWin) Any help please.. Thanks, V

2036


How to assign attribute values to test cases?

626


Want to lear from basic about silktest and how to write scripts. Please let me know if you know any website

2612


How load testing can be done with silk international?

544


What is stored in a test frame?

589






How to open an existing silktest project?

555


How to record a test case?

589


Can silktest run on mac?

637


How to specify a browser extension to a web application?

591


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

2165


What are the important aspects of a test case?

562


Where is a testplan stored?

569


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

587


What is silktest host?

577


What are the types of text lines in a testplan file?

584