Catalog's Code Type: Number vs. String

Understanding basics of 1C:Enterprise platform. To start working with 1C:Enterprise platform visit Getting started page

#1
People who like this:0Yes/0No
Active user
Rating: 4
Joined: Sep 16, 2011
Company: Oksley Shipping

And one more question: There is Code Type field in Change form of any catalog. Which can have Number or String value. Please explain which one should I use in which cases and why?

 
#2
People who like this:0Yes/0No
Active user
Rating: 4
Joined: Sep 16, 2011
Company: Oksley Shipping

Can anyone help?

 
#3
People who like this:0Yes/0No
Just came
Rating: 0
Joined: Jan 20, 2012
Company:

If you want to use more complicated numbering (e.g. ABC-001, ABC-002 etc) then select string type.

 
#4
People who like this:0Yes/0No
Just came
Rating: 1
Joined: Dec 6, 2011
Company:

Code of type String is commonly used. I don't remember the case when I needed a Number code. Moreover, internal representation of the code is always a string. Choosing the number type will affect only on representation of the code for users.

 
#5
People who like this:0Yes/0No
Active user
Rating: 4
Joined: Sep 16, 2011
Company: Oksley Shipping

OK, I will use String in all cases then, thank you very much!

 
Subscribe
Users browsing this topic (guests: 1, registered: 0, hidden: 0)
Be the first to know tips & tricks on business application development!

A confirmation e-mail has been sent to the e-mail address you provided .

Click the link in the e-mail to confirm and activate the subscription.