Jump to content

PermclipPrePress

Registered Users - Approved
  • Posts

    4
  • Joined

Posts posted by PermclipPrePress

  1. I am trying to combine 2 rules the first is font size according to character length the second rule is the vertical text rule. I have tried all different combinations with no luck. I have tried the font rule according to character length and using the Vertical Text checkbox in the advanced text effects and it is not cooperating with me. Any help is greatly appreciated.

     

    my coding that works separately is below:

     

    if (Len(Trim(Field("TEXT"))) < 28) {

    return '<z newsize="14.3"/>' + Trim(Field("TEXT"));

    } else {

    return '<z newsize="12"/>' + Trim(Field("TEXT"));

    }

     

    retstr = "";

     

    for (i = 0; i <= Field("TEXT").length; i++)

    {

    if (Mid(Field("TEXT"),i,1) == " ")

    retstr = retstr + "<p>"

    else

    retstr = retstr + Mid(Field("TEXT"),i,1) + "<p>"

    }

    return retstr;

  2. Please forgive me I am very new to FusionPro and I am trying to combine several rules together. I need my rule to select the first 3 positions of a field, horizontal scale it and set it vertically. So far my code can select the first 3 positions and horizontal scale it. But when I try to add in the Vertical code it dismisses the selection of the first 3 characters or is voided with adding to the top or bottom of my code. My current code that selects the first 3 and horizontal scales is:

     

    if(Field("No_Only")!="")

    return '<setwidth newsize="53.6">' + Left(Field("No_Only"), 3,3);

     

    ______________________________________________________________

     

    When I add the below to the top of my code it dismisses the 3 position selection and when I add the code below it is ignored.

     

    __________________________________________________________

     

    retstr = "";

     

    for (i = 0; i <= Field("No_Only").length; i++)

    {

    if (Left(Field("No_Only"),i,1) == " ")

    retstr = retstr + "<p>"

    else

    retstr = retstr + Left(Field("No_Only"),i,1) + "<p>"

    }

    return retstr;

     

    Any help would be greatly appreciated.

×
×
  • Create New...