# valuelist usage

**URL:** <https://forum.servoy.com/t/valuelist-usage/7181>\
**Category:** Classic Servoy\
**Created:** [March 4, 2007, 3:11am UTC](https://forum.servoy.com/t/valuelist-usage/7181 "2007-03-04T03:11:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![faheemhameed](https://avatars.discourse-cdn.com/v4/letter/f/7ea924/32.png) [@faheemhameed](https://forum.servoy.com/u/faheemhameed)\
**Post date:** [March 4, 2007, 3:11am UTC](https://forum.servoy.com/t/valuelist-usage/7181/1 "2007-03-04T03:11:05Z")

</div>

Hi there,

I am trying to use the same valuelist for two fields of type number and integer. But I get the following error message. Is there any reason I cannot use it this way?

> The valuelist was already created for type: NUMBER  
> for the dataproviders: globals.mod\_reportmaker\_srch\_fld\_1\_number  
> So it can’t be uses also for type: INTEGER for the dataprovider: globals.mod\_reportmaker\_srch\_fld\_1\_integer  
> Please check these dataproviders of this valuelist: mod\_reportmaker\_srch\_9

Thanks!

---

<div class="post-metadata">

**Author:** ![automazione](https://avatars.discourse-cdn.com/v4/letter/a/8797f3/32.png) [@automazione](https://forum.servoy.com/u/automazione)\
**Post date:** [March 4, 2007, 12:25pm UTC](https://forum.servoy.com/t/valuelist-usage/7181/2 "2007-03-04T12:25:51Z")

</div>

Integers and Numbers are a different kind of fields. Integer data type stores whole numbers while Number stores decimal numbers (in float format). They are not stored in the same way in the db and I think that’s the reason why you cannot use it as you are trying to do.
