468,316 Members | 2,078 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,316 developers. It's quick & easy.

'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="format");
numberOfFields = 0;
repeat with j from 1 to SELECT_FIELDS-NAME.dim;
numberOfFields = numberOfFields + 1;
fieldname = "GS_SEARCH_FIELD-";
fieldlabelPre2 = "GV_TEXT_";

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

fieldnameTab[numberOfFields] = fieldname & SELECT_FIELDS-NAME[j]`
`if(j == 4 || GV_ADDITIONAL_CRITERIA.value == "X");
if(numberOfFields == 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_FIELD-CATEGORY");
fieldname = "GS_SEARCH_FIELD-CATEGORY_GUID" ;
end; `
---------------------------------------------------------------------------------------------------------------

Thanks in advance.
-- Poonam
Feb 6 '08 #1
3 1091
Markus
6,050 Expert 4TB
This isnt html.

Post in the relevant forum.
Feb 6 '08 #2
drhowarddrfine
7,435 Expert 4TB
If you tell me what language that is, I'll move it to the appropriate forum.
Feb 6 '08 #3
harshmaul
490 Expert 256MB
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...


Expand|Select|Wrap|Line Numbers
  1. 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.
Feb 6 '08 #4

Post your reply

Sign in to post your reply or Sign up for a free account.

By using this site, you agree to our Privacy Policy and Terms of Use.