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

Function procedures - vbscript, This is a series of VBScript statements enc...

This is a series of VBScript statements enclosed through the Function & End Function statements. A Function procedure is same to a Sub procedure, however can also return a value. T

Tooltip - intrinsic control, ToolTip: The ToolTip property is used to ...

ToolTip: The ToolTip property is used to flash a message regarding a control object when the mouse pointer moves over that object for a couple of seconds. Pick a control and c

Mfc classes, THE MFC CLASSES The CDocument, CWinAppCFrameWnd and CView ...

THE MFC CLASSES The CDocument, CWinAppCFrameWnd and CView are derived from the CObject and they give the majority of the structure and functionality.

Data control, DATA CONTROL The data control is used to connect to the d...

DATA CONTROL The data control is used to connect to the database. Three properties are very necessary to connect to the database. The primary property is the database name. You

Loan program, need help with logic part of loan program

need help with logic part of loan program

Use of wm_size message - class wizard, Use of WM_SIZE Message: Wheneve...

Use of WM_SIZE Message: Whenever the WM_SIZE message is handled and the graphical objects on the output window will also change consequently to the output window. The functi

Multiple Forms Issue, i want to use two forms in vb.net. when the progress ...

i want to use two forms in vb.net. when the progress bar in form1 reaches on a specific value then disable form1 and progress bar will stop and the second Form2 will popup which wi

Assigning values to variables, Assigning Values to Variables Values are...

Assigning Values to Variables Values are assigned to variables creating an expression as follows: the variable is on the left side of the expression & the value you desire to a

Functions, write a v.net function called is vowel that returns true for vow...

write a v.net function called is vowel that returns true for vowel letters

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