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

Which event is triggered when mouse focus comes out of an element in the vbscript language?

509


How can the spaces from the string be removed?

589


When to use function procedures and what are its characteristics?

549


what is the use of QCUtil? explain with one example?

6318


What is byref and byval parameters in vbscript?

604






i have a problem with this error(this error related edit and delete button,when i click this button in datagrid..i will get this error)"Invalid postback or callback argument. Event validation is enabled using in configuration or <%@ Page EnableEventValidation="true" %> in a page. For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them. If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation." this is my code : <%@ Page Language="VB" Debug="false" %> <%@ import Namespace="Sytem.Data" %> <%@ import Namespace="System.Data.OleDB" %>

(Search Based On Staff I.C No) IC.No (XXXXXX-XX-XXXX)   ' runat="server"> ' runat="server"> ' runat="server"> ' runat="server"> ' runat="server"> ' runat="server"> ' runat="server"> ' runat="server"> ' runat="server"> ' runat="server"> ' runat="server"> ' runat="server"> ' runat="server"> ' runat="server"> ' runat="server"> Total Leave Taken : Days

2342


What is vbscript language used for and which earlier language is it modeled upon?

529


Mention what is the difference between vbscript and vba?

516


Write a test case using Test if the images,a particular test exists,check if the page links match,page response is within a certain range,parameterization of the test,the test should comprise of actions,the test should use a custom function,the test should use global repository

1790


How to assign a date value to a variable?

589


Can u describe what kind of testing are for OTC derivates by banks.

1668


What is the purpose of on error resume next statement?

575


What is the use of option explicit in vbscript?

542


1.I want to establish connection with excel and also want to fetch the data using SQL queries. 2.the code should be written in such a way that in future if I want to migrate from excel to MS excess database , then there should be minimal changes.

1514


Why to use option explicit in vb script?

596