hello guys , i got a problem with string let's say:

i got a string like this :
dim Amount As string
no error Amount = 0000780080
error Amount =000060005A

the problem now is the amount contain a value A at the end of the string.
how am I suppose to identify that the string got an alpha . without changing the
dim Amount As Integer.

I wanna take out the error onto the notepad ..
I hope that it;s clear and understandable ,
please if someone could help me...

regards
coco

you can use the isnumeric function like this

if IsNumeric(Amount)=True Then
error="false"
else
error="true"
end if

thank you!! i'll have a try..

coco

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.