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

Subscript out of Range

kirubagari
100+
P: 158
Expand|Select|Wrap|Line Numbers
  1. if operation = "EDIT" then 
  2.         loadplanname = id2(3)
  3.         loadnewqty = id2(4)
  4.         loaddpml = cdbl(id2(5))
  5.         response.end
  6.             'ni utk FW AUTO STARTS; if qty/dpml is change will call edit first then add into FW AUTO START table
  7.             call listFWautoCreate(wafersdt,loadtech,loaddevice,loadplanname,loadnewqty,loaddpml,id2(6),id2(7),id2(8),id2(9),id2(10),id2(11),id2(12))
  8.            'response.write "NAK EDIT " & loadnewqty %>
  9.         <script languange="javascript">
  10.             document.operation.submit();
  11.         </script>    <%            
  12.     end if
  13.  
Hi Experts,
When i add in id(13) having issue where i get error message subscript out of range.Where should i declare this
Aug 13 '12 #1
Share this Question
Share on Google+
4 Replies


India777
P: 61
Could you please provide "listFWautoCreate" Function Details? It will be useful to give solution to your problem.
Aug 13 '12 #2

Rabbit
Expert Mod 10K+
P: 12,370
I don't see id(13) anywhere in your code. You probably mean id2(13) but I don't see that anywhere in your code either. Also, I don't see where you declare you id2 array. We can't answer your question without knowing this information.
Aug 13 '12 #3

kirubagari
100+
P: 158
Hi,
Please help me.Im not sure how the code get the array data.

Expand|Select|Wrap|Line Numbers
  1. function getcell_edit(x){        
  2.  
  3.  
  4.         //EDIT - pass the new qty as well
  5.         if (document.getElementById(x+'|editqty').value==""){
  6.             alert("Please enter quantity!");
  7.             document.getElementById(x+'|editqty').focus();
  8.             return;
  9.         }        
  10.         if (!/^\d*$/.test(document.getElementById(x+'|editqty').value)){
  11.             alert("Only integer allowed for load quantity");
  12.             document.getElementById(x+'|editqty').focus();
  13.             return false;
  14.         }        
  15.         if (document.getElementById(x+'|editqty').value=="0"){
  16.             alert("Zero quantity is not allowed for load quantity");
  17.             document.getElementById(x+'|editqty').focus();
  18.             return false;
  19.         }        
  20.         if (document.getElementById(x+'|editabc').value==""){
  21.             alert("Please enter dpml!");
  22.             document.getElementById(x+'|editdpml').focus();
  23.             return;
  24.         }            
  25.         if (document.getElementById(x+'|fw_sosn').value==""){
  26.             alert("Please enter SOSN for this schedule!");
  27.             document.getElementById(x+'|fw_sosn').focus();
  28.             return;
  29.         }            
  30.         if (document.getElementById(x+'|fw_priority').value==""){
  31.             alert("Please enter priority for this schedule!");
  32.             document.getElementById(x+'|fw_priority').focus();
  33.             return;
  34.         }        
  35.         if (document.getElementById(x+'|fw_lottype').value==""){
  36.             alert("Please choose lot type for this schedule!");
  37.             document.getElementById(x+'|fw_lottype').focus();
  38.             return;
  39.         }            
  40.         if (document.getElementById(x+'|fw_material').value==""){
  41.             alert("Please choose start material for this schedule!");
  42.             document.getElementById(x+'|fw_material').focus();
  43.             return;
  44.         }            
  45.  
  46.         if (document.getElementById(x+'|fw_owner').value==""){
  47.             alert("Please enter lot owner for this schedule!");
  48.             document.getElementById(x+'|fw_owner').focus();
  49.             return;
  50.         }    
  51.  
  52.  
  53.                if (document.getElementById(x+'|fw_addcomment').value==""){
  54.             alert("Please enter abc for this schedule!");
  55.             document.getElementById(x+'|fw_addcomment').focus();
  56.             return;
  57.         }                
  58.  
  59.         var info = x.split("|");
  60.         if (confirm("Are you sure you want to save the changes made on start schedule \nfor technology "+info[0]+" device " + info[1] + " planname " + info[2] + "?")) {
  61.         document.operation.info.value="EDIT" + "|" + x + "|" + document.getElementById(x+'|editqty').value + "|" + document.getElementById(x+'|editabc').value + "|" + document.getElementById(x+'|fw_customer').value  + "|" + document.getElementById(x+'|fw_priority').value + "|" + document.getElementById(x+'|fw_lottype').value + "|" + document.getElementById(x+'|fw_material').value + "|" + document.getElementById(x+'|fw_sosn').value + "|" + document.getElementById(x+'|fw_owner').value+ "|" + document.getElementById(x+'|fw_devicefw').value+ "|" + document.getElementById(x+'|fw_addcomment').value;
  62.         document.operation.submit();
  63.         }
  64. }
  65.  
  66.  
  67.  
  68.  
  69. if operation = "EDIT" then 
  70.  
  71.             call listFWautoCreate(wafersdt,loadtech,loaddevice,loadplanname,loadnewqty,loaddpml,id2(6),id2(7),id2(8),id2(9),id2(10),id2(11),id2(12),id2(13))
  72. end if
  73.  
Aug 15 '12 #4

Rabbit
Expert Mod 10K+
P: 12,370
I don't see how this relates to your original question in any way. If this is a new question, you need to create a new thread for it.
Aug 15 '12 #5

Post your reply

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