Is There a limit for the custom fields?
Over about 150 are not handled. Why?
Regards
Limit of Custom Fields
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
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
Well, this is really big !
I never thought to something like that !
The limit is in fields.pas on this line :
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.
I never thought to something like that !
The limit is in fields.pas on this line :
Code: Select all
customFieldMax = 255; // should be enough...
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.