Problem with Custom Fileds in script
Posted: 2012-03-01 10:27:10
In the script I'm trying to use the code below:
Unfortunately, getting an error:
That is in line:
A similar problem I have with the function SetCustomField. The field fieldCustomMusic is defined as a String.
How, then use the custom fields?
Please help!
Code: Select all
Value := GetMaterials(Page, 'muzyka');
Zmienna := CustomFieldExists(fieldCustomMusic)
if (Length(Value) > 0) then
begin
if CustomFieldExists(fieldCustomMusic) then
begin
SetCustomField(fieldCustomMusic, Value)
end
else
begin
Value := GetField(fieldActors) + #13#10 + 'Muzyka: ' + Trim(Value) + '; ';
SetField(fieldActors, Value);
end;
end;
Code: Select all
unknown identifier: FIELDCUSTOMMUSIC at line 814
Code: Select all
Zmienna := CustomFieldExists(fieldCustomMusic)
How, then use the custom fields?
Please help!