write a vb script to display apple that is 1st a should be
displayed then ap then app then appl then apple

Answer Posted / prathyusha

str="apple"
For i=1 To Len(str)
var=Mid(str,i,1)
char=char&var
newchar=newchar&vbcrlf&char
Next
MsgBox newchar

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

PLz send me the VB scripts which is having more examples my email id : hareen_11@yahoo.com

1667


Explain what is loose binding? Why is it not a good practice to use it?

583


What is the difference between for loop and while loop?

556


How will you get a combined string from array of string in vbscript?

551


What is the output of a + b in vbscript if a = 5 and b = 10?

2130






Mention what are the rules to name variable in vbscript?

540


Why to use option explicit in vb script?

602


Mention what is vbscript procedures?

543


How to find the font in qtp. Scenario:After entering the username and passwd you will be navigate into the "welcome:Username" page.Now I want to extarct font for this message.

1746


How to Convert Hex color code to color name in VB Script?

3935


What is the difference between a dictionary and an array?

583


Write a function for Instr(). We need to write a function that works as same as Instr(). Code or Even pseudo code is good enough for me.?

2037


How will you get the natural logarithm of the given number in vbscript?

607


Explain different types of segment?

575


Mention what is variant in vbscript?

561