Limit of Custom Fields

If you need help on how to use the program
Post Reply
YoungBoy
Posts: 15
Joined: 2011-11-04 13:33:09

Limit of Custom Fields

Post by YoungBoy »

Is There a limit for the custom fields?

Over about 150 are not handled. Why?

Regards
soulsnake
Posts: 756
Joined: 2011-03-14 15:42:20
Location: France

Post by soulsnake »

Hi,

Actually there is a limitation of 155 custom fields for some technical reasons.
I can increase this limitation but I never thought before that a user could have more than 150 custom fields !
Why do you need more than 150 custom fields ?

Soulsnake.
YoungBoy
Posts: 15
Joined: 2011-11-04 13:33:09

Post by YoungBoy »

Hi soulsnake

I use the custom frame to enter all the crew of the movie.
I have created many custom fields to manage this.
Each person has two fields: (name - character - role) and (link photo)
For example:
(PIRATES OF THE CARIBBEAN: ON STRANGER TIDES)
First field type string = (JOHNNY DEPP - Jack Sparrow - Actor)
Second field type URL= (http://ia.media-imdb.com/images/M/MV5BM ... @._V1_.jpg)

The actors of 'Pirates of the Caribbean' are 73!!! Add the Director, the Producer, etc etc... exceed 200!! sigh!!! 200 * 2 = 400 double sigh!!

I'd like to know where is the limit in the code... I can not find it... I would try to change it
soulsnake
Posts: 756
Joined: 2011-03-14 15:42:20
Location: France

Post by soulsnake »

Well, this is really big !
I never thought to something like that !

The limit is in fields.pas on this line :

Code: Select all

customFieldMax       = 255; // should be enough...
Unfortunately you can not just increase this value like this because we use sets and sets may have at most 256 elements.
As I said, this limit is for technical reason...
So if you want to remove the limit, you have to change the way this is handled in all code...
Not impossible but a little bit boring...

Why do you not store the 30 first principal actors like you do and you put the others actors in one text field with the same structure ?
This way you will have enough fields and principal actors will be directly accessible !

Soulsnake.
Post Reply