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

Answer Posted / aparajita mohapatra

val="apple"
For i=1 to len(val)
val1=mid(val,1,i)
print val1

Next

Is This Answer Correct ?    4 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which operator can be used to check if two numbers are equal or not in vbscript?

654


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

2351


What are the different types of loops available in the vbscript language?

536


What is the extension of the vbscript file?

555


1) How can we use VB script in testing the application? 2) What all are the things(Software application to be installed in PC) we need to learn VBscript?

3557






how to write a vb script in QTP for yahoo registration form, i want to check the performance also like performance test, stress, load test like that.

4751


What are the data types supported by vbscript?

582


what is the differance between BYVAL,BYREF?

1772


Mention what are the rules to name variable in vbscript?

540


What is difference between vbscript and vba?

613


Which object provide information about a single runtime error in a vbscript?

607


How many types of procedures are available in the vbscript language?

536


Mention what is the main difference between function and sub-procedure?

553


Why is it recommended to close the database connection every time after the work is completed?

505


Explain the arrays in vb script?

596