If you have an integer or real CustomField and you try set a value in this field it returns me type mismatch error.
The description of the function says:
procedure SetCustomField(fieldTag: string; value: string);
Stores a value in the specified custom field of the current movie.
Is it not possible to use this function with other variables different from string?
SetCustomField type mismatch error
Hi al0203,
You can not use SetCustomField function with an integer or real value directly. You have to convert integer or real value in string using this functions:
- IntToStr(value: integer): string;
- FloatToStr(vaue: double): string;
AMC will check the input string value and convert/format it automatically according to field type.
Soulsnake.
You can not use SetCustomField function with an integer or real value directly. You have to convert integer or real value in string using this functions:
- IntToStr(value: integer): string;
- FloatToStr(vaue: double): string;
AMC will check the input string value and convert/format it automatically according to field type.
Soulsnake.
Ok, I understand, thank you.soulsnake wrote:Hi al0203,
You can not use SetCustomField function with an integer or real value directly. You have to convert integer or real value in string using this functions:
- IntToStr(value: integer): string;
- FloatToStr(vaue: double): string;
AMC will check the input string value and convert/format it automatically according to field type.
Soulsnake.
Which is the name of the field that store the Date Added information?soulsnake wrote:Hi al0203,
You can not use SetCustomField function with an integer or real value directly. You have to convert integer or real value in string using this functions:
- IntToStr(value: integer): string;
- FloatToStr(vaue: double): string;
AMC will check the input string value and convert/format it automatically according to field type.
Soulsnake.
Is it a string store yyyy-mm-dd?