![]() ![]() ‘For Each Next extracts the fruit names stored in the array and msgbox displays the output. result msgbox ('Please select Yes or No', 4, 'Select yes or no') If result6 then. ‘Using For Each Next we have displayed all the names of the fruits which was entered and kept in fruits array. Here is a simple VBScript example: dim result. ‘Redim keyword resets the number of elements that can be accommodated in the array. ‘we do not know how many fruit names we are going to enter and so, we have declared the array size as 100įruits(i)=inputbox(“Enter the name of a fruit separated by comma”)Īns = MsgBox(“Do you want to continue”, vbYesNo, “Confirm Continuation…”) “Develop a function that accepts a string of names separated by comma (example given below), add those names in an array and display the names added in the array”Įxample: rajani Disha Dhara Hunny moon Rajani replied the topic: function in vb script I would recommend you going through this url as well to learn more about it…… Rajeshkumar replied the topic: function in vb script Rajani created the topic: function in vb scriptĭevelop a function that accepts a string of names separated by comma add those names in an array and display the names added in the array. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |