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 / uday kumar. a

Just use the mod operator.

Say x=1234567
then modValue=x mod 10000

The modValue has a value of 4567

Another technique is by using substring function.

Try solution for substring function

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

2616


What is multi-tagging?

608


How to create and edit a testplan?

575


How load testing can be done with silk international?

547


How to include a test case into a testplan?

558






How to define new testplan attributes?

520


What are the default testplan attributes?

622


What is 4test?

596


How to select a group of test cases in a testplan to run?

552


How to test your defaultbasestate?

607


How dom browser extension identify a web application ui object?

627


How to download latest silk test trial version?

662


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

592


What is stored in a test frame?

602


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

2041