'repeat with' tag in html

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • poonampal
    New Member
    • Feb 2008
    • 1

    'repeat with' tag in html

    Can you plz tell me the significance of 'repeat with' tag ? For reference please see below given code:

    ---------------------------------------------------------------------------------------------------------------
    TABLE(class="fo rmat");
    numberOfFields = 0;
    repeat with j from 1 to SELECT_FIELDS-NAME.dim;
    numberOfFields = numberOfFields + 1;
    fieldname = "GS_SEARCH_FIEL D-";
    fieldlabelPre2 = "GV_TEXT_";

    fieldlabelTab[numberOfFields] = fieldlabelPre2 & SELECT_FIELDS-NAME[j];

    fieldnameTab[numberOfFields] = fieldname & SELECT_FIELDS-NAME[j]`
    `if(j == 4 || GV_ADDITIONAL_C RITERIA.value == "X");
    if(numberOfFiel ds == 4 || j == SELECT_FIELDS-NAME.dim);
    TR();
    repeat with k from 1 to numberOfFields;
    TD(class="label ",nowrap="X ");
    fieldlabel = fieldlabelTab[k];
    fieldname = fieldnameTab[k];
    if(fieldname == "GS_SEARCH_FIEL D-CATEGORY");
    fieldname = "GS_SEARCH_FIEL D-CATEGORY_GUID" ;
    end; `
    ---------------------------------------------------------------------------------------------------------------

    Thanks in advance.
    -- Poonam
  • Markus
    Recognized Expert Expert
    • Jun 2007
    • 6092

    #2
    This isnt html.

    Post in the relevant forum.

    Comment

    • drhowarddrfine
      Recognized Expert Expert
      • Sep 2006
      • 7434

      #3
      If you tell me what language that is, I'll move it to the appropriate forum.

      Comment

      • harshmaul
        Recognized Expert Contributor
        • Jul 2007
        • 490

        #4
        Hi,
        Sorry if i undermine you guys experts. It looks like apple script, and there don't look like theres an apple script forum.

        And if thats the case the line can be translated as so...


        Code:
        repeat with k from 1 to numberOfFields
        this line is begining of a loop, which basically loops through incrementing k each time until k reaches the numberOfFields variable.

        the loop starts at repeat, and finishes at end.

        Comment

        Working...