Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

wrong value

Status
Not open for further replies.

makisbest

Technical User
Mar 3, 2005
125
GR
hi

In a recordset I give.

rs!new_number=123456,78
when I debugin it I get the value 12345678 in the new_number

Why?
 
I don't know how you can set rs!new_number=123456,78 because 123456,78 would produce an error unless it's in "123456,78". If that's just a typo then 12345678 is exactly what you should get having put it into the field in the first place.
-Max
 
I have a listview with some values
when I return the values I get the wrong result.
All the values are decimal but all returnd as integer
 
>I don't know how you can set rs!new_number=123456,78

Because you don't know about internationalisation ... many countries use a comma (rather than a period) as the decimal seperator.

makibest, what language is your PC set to?
 
Very good point, strongm. But wouldn't it be just a little more professional and to start the post off with "Many countries use.." or is it something else you know that I forgot?
-Max
 
Greece

We use comma in decimal.

the value 123,45 use true for us.

In the listview I have some values like 456,24 / 879,24 6989,12
when I use
rs!new_num = ListView1.ListItems(34).Text
for the value 456,24
in the new_num I have 45624

Why?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top