By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,879 Members | 1,809 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,879 IT Pros & Developers. It's quick & easy.

'repeat with' tag in html

P: 1
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
Share this Question
Share on Google+
3 Replies


Markus
Expert 5K+
P: 6,050
This isnt html.

Post in the relevant forum.
Feb 6 '08 #2

drhowarddrfine
Expert 5K+
P: 7,435
If you tell me what language that is, I'll move it to the appropriate forum.
Feb 6 '08 #3

harshmaul
Expert 100+
P: 490
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.