Exists some form to do it with "script option" when the field is created?


Also I would like to know as a text can be put in vertical position

Thanks

Code: Select all
begin
shortActorsList := Copy([Actors], 1, 50);
end;
Code: Select all
begin
shortActorsList := Copy([Actors], 1, 22) + '(...)';
end;
Hiantp wrote:Hi,
By vertical you mean rotated of 90/270°, or with letters like
T
E
X
T
?
in first case, you can chose the orientation of text blocks using a button of the toolbar. In second case it is not possible.
To limit the Length of a field, you can do the following:
Instead of having for example [Actors] in the text block, enter a new name, e.g. [shortActorsList]
Then check the "Script" option and enter the following in the bottom area:To keep 50 characters starting at the 1st one.Code: Select all
begin shortActorsList := Copy([Actors], 1, 50); end;
Of course it may cut in the middle of a name...Really you are in thel ine, but I have tried the 2 options (2ª is really better), but it use same "actors" data for all the filmsantp wrote: You can add "(...)" at the end:Code: Select all
begin shortActorsList := Copy([Actors], 1, 22) + '(...)'; end;
(you will understand better in the image), and i have and error message when i try to print in a PDF "undefined symbol "actors"
Thanks for your help Antp![]()
I hope that it can serve to you for something. New things are always discovered. I found it by chance, and knew that to put, thanks to the data that you gIve me.antp wrote:I didn't even know that it was possible to add variables like that
When "actors" is the variable originated in AMC?If “actors” lenght >0 then insert the text “actor list”
If “actors” lenght =0 then don't insert the text “actor lists”
Code: Select all
begin
Visible := [Actors] <> '';
end;