Subscript out of Range

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kirubagari
    New Member
    • Jun 2007
    • 158

    #1

    Subscript out of Range

    Code:
    if operation = "EDIT" then 
    		loadplanname = id2(3)
    		loadnewqty = id2(4)
    		loaddpml = cdbl(id2(5))
    		response.end
    			'ni utk FW AUTO STARTS; if qty/dpml is change will call edit first then add into FW AUTO START table
    			call listFWautoCreate(wafersdt,loadtech,loaddevice,loadplanname,loadnewqty,loaddpml,id2(6),id2(7),id2(8),id2(9),id2(10),id2(11),id2(12))
    		   'response.write "NAK EDIT " & loadnewqty %>
    		<script languange="javascript">
    			document.operation.submit();
    		</script>	<%			
    	end if
    Hi Experts,
    When i add in id(13) having issue where i get error message subscript out of range.Where should i declare this
  • India777
    New Member
    • Apr 2012
    • 61

    #2
    Could you please provide "listFWautoCrea te" Function Details? It will be useful to give solution to your problem.

    Comment

    • Rabbit
      Recognized Expert MVP
      • Jan 2007
      • 12517

      #3
      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.

      Comment

      • kirubagari
        New Member
        • Jun 2007
        • 158

        #4
        Hi,
        Please help me.Im not sure how the code get the array data.

        Code:
        function getcell_edit(x){		
        
        
        		//EDIT - pass the new qty as well
        		if (document.getElementById(x+'|editqty').value==""){
        			alert("Please enter quantity!");
        			document.getElementById(x+'|editqty').focus();
        			return;
        		}		
        		if (!/^\d*$/.test(document.getElementById(x+'|editqty').value)){
        			alert("Only integer allowed for load quantity");
        			document.getElementById(x+'|editqty').focus();
        			return false;
        		}		
        		if (document.getElementById(x+'|editqty').value=="0"){
        			alert("Zero quantity is not allowed for load quantity");
        			document.getElementById(x+'|editqty').focus();
        			return false;
        		}		
        		if (document.getElementById(x+'|editabc').value==""){
        			alert("Please enter dpml!");
        			document.getElementById(x+'|editdpml').focus();
        			return;
        		}			
        		if (document.getElementById(x+'|fw_sosn').value==""){
        			alert("Please enter SOSN for this schedule!");
        			document.getElementById(x+'|fw_sosn').focus();
        			return;
        		}			
        		if (document.getElementById(x+'|fw_priority').value==""){
        			alert("Please enter priority for this schedule!");
        			document.getElementById(x+'|fw_priority').focus();
        			return;
        		}		
        		if (document.getElementById(x+'|fw_lottype').value==""){
        			alert("Please choose lot type for this schedule!");
        			document.getElementById(x+'|fw_lottype').focus();
        			return;
        		}			
        		if (document.getElementById(x+'|fw_material').value==""){
        			alert("Please choose start material for this schedule!");
        			document.getElementById(x+'|fw_material').focus();
        			return;
        		}			
        
        		if (document.getElementById(x+'|fw_owner').value==""){
        			alert("Please enter lot owner for this schedule!");
        			document.getElementById(x+'|fw_owner').focus();
        			return;
        		}	
        		
         
                       if (document.getElementById(x+'|fw_addcomment').value==""){
        			alert("Please enter abc for this schedule!");
        			document.getElementById(x+'|fw_addcomment').focus();
        			return;
        		}				
        			
        		var info = x.split("|");
        		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] + "?")) {
        		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;
        		document.operation.submit();
        		}
        }
        
        
        
        
        if operation = "EDIT" then 
        
        			call listFWautoCreate(wafersdt,loadtech,loaddevice,loadplanname,loadnewqty,loaddpml,id2(6),id2(7),id2(8),id2(9),id2(10),id2(11),id2(12),id2(13))
        end if

        Comment

        • Rabbit
          Recognized Expert MVP
          • Jan 2007
          • 12517

          #5
          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.

          Comment

          Working...