Check whether a number is palindrome or not, Visual Basic Programming

Assignment Help:

Function IsPalindrome(str)

Dim iStart,iEnd,ctr,blnPalin str=trim(str)

blnPalin=true iEnd=len(str) iCnt=round(iEnd / 2) iStart=1

for ctr=1 to cint(iCnt)

if(mid(str,iEnd,1)<>mid(str,iStart,1))then

IsPalindrome=false

Exit Function end if iStart=cint(iStart)+1 iEnd=cint(iEnd)-1 next if(blnPalin=true)then IsPalindrome=true else IsPalindrome=false end if

End Function

Sub blankStr() str=text1.value if(trim(str)="")

then

msgbox "Please enter a number"

exit sub end if

if(IsPalindrome(str))then msgbox "Yes"

else

msgbox "No"

end if

End Sub


Related Discussions:- Check whether a number is palindrome or not

Dynamic link library - database applications, DYNAMIC LINK LIBRARY   T...

DYNAMIC LINK LIBRARY   The dynamic link library (dll) permits one copy of a function to be shared among some parallel executing programs. The dll is a file that contains a num

Mechanical project, sir , i need visual basic form design & coding for Reyn...

sir , i need visual basic form design & coding for Reynolds number & type of flow .

Data types, what are the basic vb data types

what are the basic vb data types

Odbc, ODBC   The ODBC gives an API which distinguishes the data base v...

ODBC   The ODBC gives an API which distinguishes the data base vendors implementation via the ODBC drivers specific to a DBMS. The program will use the API to call the ODBC dr

John Galt requests a program to double-check his Gas Bill, John''s gas supp...

John''s gas supply is read from a 4-digit meter each month that shows the current total gas used in cubic meters. The amount of gas used that month is determined by subtracting t

Module - dialog box in visual basic, MODULE The Modules are the collect...

MODULE The Modules are the collection of VB statements. Modules are used to simplify the program development. To add a module to your project, choose the project tabpage, and t

Drawing, #questiontypes of lines and how to draw

#questiontypes of lines and how to draw

Create vb to play a variation of hangman, Goal Create a Visual Basic th...

Goal Create a Visual Basic that allows a user to play a variation of Hangman. User Inputs • The user types a letter into the textbox. Functional Items 1. Read a series

Application for loan, Scenario GetLoan is a new company that will provid...

Scenario GetLoan is a new company that will provide a loan of money to individual members of the public.   There are two types of loan to be offered: Secured Loan wher

Arrays, I need to design a logic for a program that allows a user to enter ...

I need to design a logic for a program that allows a user to enter 15 numbers, then displays each number and its difference from the numeric average of the numbers entered

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd