473,324 Members | 2,567 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

Subscript out of Range

kirubagari
158 100+
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
4 2167
Could you please provide "listFWautoCreate" Function Details? It will be useful to give solution to your problem.
Aug 13 '12 #2
Rabbit
12,516 Expert Mod 8TB
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
158 100+
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
12,516 Expert Mod 8TB
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

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

Similar topics

20
by: andy.rich | last post by:
I am getting the following error and I do not know why. Can anyone help? -------------------------------------------------------- this is what appears on the screen...
5
by: Richard Delorme | last post by:
The n869 draft says: J.2 Undefined behavior The behavior is undefined in the following circumstances: -- An array subscript is out of range, even if an object is ...
8
by: VB Programmer | last post by:
I'm acutally using VB6, not VB.NET, but I couldn't find the newsgroup for version 6.... I need help for something that should be simple. I keep getting a "subscript out of range" error and...
51
by: Pedro Graca | last post by:
I run into a strange warning (for me) today (I was trying to improve the score of the UVA #10018 Programming Challenge). $ gcc -W -Wall -std=c89 -pedantic -O2 10018-clc.c -o 10018-clc...
0
by: wennerd | last post by:
I am getting a Subscript out of range after executing the following command Set oRstPick = connTemp.Execute(sSQL) It is a simple query: sSQL = "SELECT idCategory, categoryDesc, idParentCategory...
6
by: josh | last post by:
Hi I've a dubt! when we have overloaded functions the compiler chooses the right being based on the argument lists...but when we have two subscript overloaded functions it resolves them being...
6
by: Andy | last post by:
Hi all, I started developing a little app on my Mac using XCode some month ago. The app is running fine on my mac like a sharm. Now I am nearly ready and yesterday I moved the whole source code...
2
by: subramanian100in | last post by:
For vector and deque, the 'at( )' member function throws out_of_range exception if the argument to the 'at( )' function is not in range. But the subscript operator does not throw this exception...
4
by: Han | last post by:
when I exe my project in vs.net2005,I got the error following: Debug Assertion Failed! Program:........ File:c:\program files\microsoft visual studio 8\vc\include\vector Line:756 ...
6
by: brandon01 | last post by:
Keep getting "subscript out of range" any idea why? This function is looped btw.. Thx... Private Sub getBday() bDay = List1.List(nextBday) bDayArr = Split(bDay, " - ") Text1.Text =...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.