160 counters in FPGA. Use arrays or 160 loops?
I need to program a 7811R FPGA module to give me 160, 16 bit counters. Originally I made 4 loops (one for each connector) and put the counts from each loop in a 40 element array - mostly to make it easier to program. I'm wondering if that's a bad idea. Would it be better to use an individual loop for each counter? Or maybe use one array per 8 bit port (20, eight element arrays)? I don't have my board yet so I haven't been able to test it.
George
Hello George!
I am terribly sorry I misread your previous question. You want to check for pulses on 160 lines and then keep track of the number of pulses in a 160 element array. I believe this is the only efficent way todo this but I am concerned whether their will be enough real estate on the FPGA to handle this 160 element array. Additionally, its going to take some time to read and process 160 lines at the same time. Therefore you may want to break this up into 20 loops of 8 lines so that you are not waiting for one loop todo all the processing. This would also give you 8 arrays of 20 elements. Sorry it took me so long to get on the same page with this issue. I hope this helps and please continue to write if you have more questions.
Allan S.
National Instruments
Similar Messages
-
How do i use Arrays and For Loops in Loading Multiple Images?
I am struggling to load a sequential array of images to appear like a moving image. So when u click the button the images load one after the other.
The code below is what i have so far, but it fails to do what i seek in that there's only one image loading which is the last image in the array, so either because the images are stacking up atop each other, or because i simply dont understand the basics...
And, i am unclear about what you said kglad, that my solution will be more complicated because i need to preload my image sequence and then use a loop to load it?
import flash.net.URLRequest;
import flash.display.Loader;
var count:int = 0;
var imageArray:Array=["1.jpg","2.jpg","3.jpg","4.jpg","5.jpg","6.jpg","7.jpg",
"8.jpg","9.jpg","10.jpg","11.jpg","12.jpg","13.jpg"];
for(var i:uint=0;i<imageArray.length;i++){
var btn:YourButton=new YourButton();
btn.ivar=i;
addChild(btn);
btn.x=0;
btn.y=0;
btn.addEventListener(MouseEvent.CLICK,clickF);
var ldr:Loader=new Loader();
addChild(ldr);
ldr.x=20;
ldr.y=20;
function clickF(e:MouseEvent){
ldr.load(new URLRequest("D:/flash cs5.5/image_sequence/twirlSeq/"+imageArray[e.currentTarget.ivar]));
function loadComplete(e:Event){
// first process loaded image, then...
count++;
if(count < imageArray.length){
loadCurrentImage(); // load the next image
} else {
// sequencial loading complete, carry on to next activity
function loadCurrentImage(){
ldr.load(imageArray[count]);
ldr.contentLoaderInfo.addEventListener(Event.COMPLETE, loadComplete);create a new fla, add btn and add the code i suggested. test.
var count:int;
var imageArray:Array=["1.jpg","2.jpg","3.jpg","4.jpg","5.jpg","6.jpg","7. jpg",
"8.jpg","9.jpg","10.jpg","11.jpg","12.jpg","13.jpg"];
var ldr0:Loader=new Loader();
ldr0.contentLoaderInfo.addEventListener(Event.COMPLETE,loadCompleteF);
var ldr1:Loader=new Loader();
ldr1.contentLoaderInfo.addEventListener(Event.COMPLETE,loadCompleteF);
btn.addEventListener(MouseEvent.CLICK,clickF);
function clickF(e:MouseEvent):void{
// initialize count
count=0;
// call loadF
loadF();
function loadF():void{
// add one of the loaders to the top of the displaylist and load the next image
addChild(this["ldr"+count%2])
this["ldr"+count%2].load(new URLRequest(imageArray[count]));
function loadCompleteF(e:Event):void{
// increment count
count++;
// check if the last has loaded
if(count<imageArray.length){
// if not clear the content out of the next loader.
if(this["ldr"+count%2].content){
this["ldr"+count%2].unloadAndStop();
// and call loadF so the next loader can load the next image in the array
loadF();
} else {
// if the last has loaded.
// last load completed -
HI all,
I am working on a program that will print out my initials 'A' and 'T' using arrays. I am asked to initialize the first intial to '*' and the second intial to '@'. I wrote the code but the output is wrong. Can someone help me by letting me know what I am doing wrong in my arrray?I just get back my array of 30X30. I also wrote a driver but when I run the program, I really appreciate it so much.
public class Initial
private char whichinitial ;
private int MAX =30;//Maximum amount for 2-d Matrix
char[][] letterMatrix = new char[MAX][MAX];//2-d Array 30 x30
private boolean first = true;
public Initial()
{ //FIlls Array full of '*'s
whichinitial = '*';
for(int i=0;i< MAX;i++)
for(int j=0;i< MAX;i++)
letterMatrix[i][j] = whichinitial;
public void setLetter(char letter)
{//Setter for Letter
whichinitial = letter;
public char getLetter()
{//Getter for Letter
return whichinitial;
public void firstLetter()
{ //Creates an A shape
for(int i=0;i< MAX;i++)
for(int j=0;j< MAX;j++)
if((i>0)|| ((i<6) || ((j>0) && (j<29))))
letterMatrix[j] =whichinitial;
public void secondLetter()
{//Creates an T shape
first = false;
for(int i=0;i <MAX;i++)
for(int j=0;j <MAX;j++)
if((i>1) ||(j < 29)||(j>5)||(i>10))
letterMatrix[i][j] = whichinitial;
public void display()
{//Displays the Initials
if(first)
System.out.println("\n \n \n My First Initial," + whichinitial + ", follows:");
else
System.out.println("\n \n \n My Last Initial," + whichinitial + ", follows:");
for(int i=0;i <MAX;i++)
System.out.println();
for(int j=0;j <MAX;j++)
if(letterMatrix[i][j] == '*')
System.out.print(" ");
else
System.out.print(letterMatrix[i][j]);I am trying to write a program using a matrix. The size of the maxtrix should be 30X30. The first initial shoulld be initialized to '*' and the secind initial should be initialized to '@'. Both initials should be 30 characters high and 30 characters wide and the initials should also represent the uppercase letter of your initials. I know that the first initial's matrix needs to be filled up vertically and the second initial needs to be filled horizontally but the output is wrong....PLease Help!
Message was edited by:
apples03 -
Hi guys,
I'm developing an ADF application in JDev 11.1.1.6.0. I have problem about using arrays in jsp page. I have an iterator that brings me data from UCM. I just want to take every documents seperately and use in a Jquery division by division.
Can i have chance to use an array tag in that page? Or how can i make it possible my work in a different way?
Thank you so much,
ErdoHi Frank,
I've already use an iterator. I just want to take datas and after close the af:iterator tag. Then i will use those datas in a different block.
My code :
<af:iterator var="node" value="#{nodes}" id="i1">
<af:outputText value="#{node.propertyMap['CSGMNEWS_REGDEF:Desc'].asTextHtml}"
id="ot1"/>
</af:iterator>
I want to take all informations from node.PropertyMap[] and then i will set the values of outputText with those informations. I hope I'm clear.
Regards,
Erdo
Edited by: erdo on 20.Mar.2013 10:21 -
hi i want to know if some can guide me how to use array in apex.
i have a tabuler report with 4 columns.
i need to write a validation in the tabuler report for that i need to used array.
can I directly access the colums as i have shown below? or do i need to decleare this arrays some were in apex?
e.g
FOR i IN 1 .. ow_app.g_f01.COUNT
loop.........................
LOGIC
end loop;
from what i understand i can access each column as ow_app.g_f01,ow_app.g_f02,ow_app.g_f03,ow_app.g_f04 does this make sense?
thanks a lot.Hi user591315 (please tell us your name - we're a friendly group!),
In answer to this and your previous related post, there is an excellent example of what you're looking to accomplish provided by Denes Kubicek available at http://apex.oracle.com/pls/otn/f?p=31517:41
Hope this helps,
John
If you find this information useful, please remember to mark the post "helpful" or "correct" so that others may benefit as well. -
First, I would like to thank everyone in this forum for all the help they have given me over the past few weeks. With that said, I am currently trying to alter the following code to accept and use arrays to end to produce three seperate results. The program now as three hard coded variables which are
Amount = 200000.00;
Term = 30;
InterestRate = .0575;
I need to have the program work the same, but produce results for three different Terms and Three different periods. Below is the code the I am working on, I have added two arrays containing the required information. I am having a hard time coming up with a for statment to move the program through the two arrays. Any pushes in the right direction would be great. I left the hard code variable in place, I know that I do need to remove them and alter the equations. I just thought it would be easier for everyone to understand if I left the code in working form.
import java.math.*;
import java.text.*;
import java.util.*;
// The Payment class displays a predetermined monthly mortgage payment
public class Payment
public static void main(String[]arguments)
//Creates Two Arrays for InterestRates and Terms
double[] InterestRates = {.0535, .055, .0575};
int[] Terms = {7, 15, 30};
//Creates variables
double Amount;
int Term;
double InterestRate;
//Assigns values to variables
Amount = 200000.00;
Term = 30;
InterestRate = .0575;
//Alters the display format of Amount variable
NumberFormat n = NumberFormat.getCurrencyInstance(Locale.US);
String s = n.format(Amount);
//Creates variables
double MonthlyInterestRate;
int TotalMonths;
double Payment;
//Assigns values to variables
MonthlyInterestRate = InterestRate / 12;
TotalMonths = Term * 12;
Payment = Amount* MonthlyInterestRate / (1-(Math.pow((1+MonthlyInterestRate ),(-TotalMonths))));
//Takes Payment variable and round answer to 2 decimal points
BigDecimal bd = new BigDecimal(Payment);
bd = bd.setScale(2, BigDecimal.ROUND_DOWN);
//Instructions to display various varibles
System.out.println("Cost of Mortgage "+ s);
System.out.println("Length of Term " + Term);
System.out.println("Interest Rate 5.75% ");
System.out.println("The monthly payment of this loan is $" + bd);
System.out.println();
//Creates new set of variables
double MonthlyInterest;
double MonthlyPrincipal;
double TotalInterestPaid;
int NumberofPayments;
//Creates Balance variable
double Balance;
//Initialization of Balance variable
Balance = 200000;
TotalInterestPaid = 0;
NumberofPayments = 360;
//Creates a loop that calculates the entire term of loan
do
MonthlyInterest = Balance * (InterestRate / 12);
MonthlyPrincipal = Payment - MonthlyInterest;
Balance = Balance - MonthlyPrincipal;
TotalInterestPaid = TotalInterestPaid + MonthlyInterest;
NumberofPayments = NumberofPayments - 1;
//Takes current balance and rounds the answer to two digits
BigDecimal bb = new BigDecimal(Balance);
bb = bb.setScale(2, BigDecimal.ROUND_DOWN);
BigDecimal tip = new BigDecimal(TotalInterestPaid);
tip = tip.setScale(2, BigDecimal.ROUND_UP);
System.out.println("New Loan Balance " + bb);
System.out.println();
System.out.println("Total Interest Paid " + tip);
System.out.println();
System.out.println("Number of Payments remaining " + NumberofPayments);
System.out.println();
//The following lines of code pauses the loop to allow the user to read the output
//The speed of th display can be adujusted to a wide variety of speeds
try
Thread.sleep(400);
catch (InterruptedException exc)
//Loop condition
while (NumberofPayments > 0);
//Ends ApplicationTry this. It should give you some ideas. :)
import java.math.BigDecimal;
import java.text.NumberFormat;
import java.util.Locale;
// The Payment class displays a predetermined monthly mortgage payment
public class Payment {
public static final NumberFormat CURRENCY_FORMAT = NumberFormat.getCurrencyInstance(Locale.US);
public static final double[] INTEREST_RATES = {.0535D, .055D, .0575D};
public static final int[] TERMS = {7, 15, 30};
public static final double AMOUNT = 200000.00;
public static final int MONTHS_PER_YEAR = 12;
public static void main(String[] arguments) {
for (int t = 0; t < TERMS.length; t++) {
for (int i = 0; i < INTEREST_RATES.length; i++) {
displayPayments(AMOUNT, INTEREST_RATES, TERMS[t]);
private static void displayPayments(double amount, double interestRate, int term) {
//Creates variables
//Assigns values to variables
double monthlyInterestRate = interestRate / MONTHS_PER_YEAR;
int totalMonths = term * MONTHS_PER_YEAR;
double payment = amount * monthlyInterestRate / (1 - Math.pow(1 + monthlyInterestRate, -totalMonths));
//Instructions to display various varibles
System.out.println("Cost of Mortgage " + CURRENCY_FORMAT.format(amount));
System.out.println("Length of Term " + term);
System.out.println("Interest Rate " + new BigDecimal(interestRate * 100).setScale(2, BigDecimal.ROUND_HALF_UP) + '%');
System.out.println("The monthly payment of this loan is " + CURRENCY_FORMAT.format(payment));
System.out.println();
//Creates new set of variables
double totalInterestPaid = 0.0D;
//Creates balance variable, Initialization of balance variable
double balance = amount;
//Creates a loop that calculates the entire term of loan
System.out.println("New Loan balance, Total Interest Paid, Number of Payments remaining");
for (int numberofPayment = totalMonths; numberofPayment > 0; numberofPayment--) {
double monthlyInterest = balance * monthlyInterestRate;
double monthlyPrincipal = payment - monthlyInterest;
balance -= monthlyPrincipal;
totalInterestPaid += monthlyInterest;
//Takes current balance and rounds the answer to two digits
BigDecimal bb = new BigDecimal(balance);
bb = bb.setScale(2, BigDecimal.ROUND_DOWN);
BigDecimal tip = new BigDecimal(totalInterestPaid);
tip = tip.setScale(2, BigDecimal.ROUND_UP);
System.out.println(CURRENCY_FORMAT.format(bb.doubleValue()) + ", " +
CURRENCY_FORMAT.format(tip.doubleValue()) + ", " +
numberofPayment);
System.out.println();
//Ends Application -
Hi All!
Anybody know how to use Arrays in Forms 6?
Best regards.Hello,
have you tried collections ?
Declare
TYPE TYP_NUM_ARRAY IS TABLE OF NUMBER INDEX BY BINARY_INTEGER ;
mytab TYP_NUM_ARRAY ;
Begin
For i IN 1..10 Loop
mytab(i) := i ;
End loop ;
End ;Francois -
Hi Guys,
I always had a few problems using arrays and now I need to use them and I am stuck.
on my program i need to create an array of int with the numbers 1 to 1000 in it for this I have done:
int[ ] array;
on the class constructor
array = new int[1000];
to fill the array:
for (int i = 0; i < array.length; i++)
array[i] = i;
The problem is that I always get an ArrayIndexOutOfBoundsException error.
I know how to solve it which is to create an array with 1001 elements but is there a more elegant way of creating the array or this is the way to do it?
To put my question in another way if any of you Guys was creating this program which way would you do it.
Best regards
LuisSloppy of me. This is a bit better:
package cruft;
import java.util.Arrays;
* A class for a one-based array of ints.
public class OneBasedIntArray
private int [] values;
public static void main(String[] args)
int [] values = new int[args.length];
for (int i = 0; i < args.length; i++)
values[i] = Integer.parseInt(args);
OneBasedIntArray intArray = new OneBasedIntArray(values);
System.out.println(intArray);
public OneBasedIntArray(int[] values)
this.values = new int[values.length];
System.arraycopy(values, 0, this.values, 0, values.length);
public int getValue(int index)
if (index <= 0)
throw new IllegalArgumentException("this array is one-based");
return values[index-1];
public void setValue(int index, int value)
if (index <= 0)
throw new IllegalArgumentException("this array is one-based");
this.values[index-1] = value;
public boolean equals(Object o)
if (this == o)
return true;
if (o == null || getClass() != o.getClass())
return false;
OneBasedIntArray intArray = (OneBasedIntArray) o;
if (!Arrays.equals(values, intArray.values))
return false;
return true;
public int hashCode()
return (values != null ? Arrays.hashCode(values) : 0);
public String toString()
StringBuilder builder = new StringBuilder();
builder.append("OneBasedIntArray{");
for (int i = 0; i < values.length; i++)
builder.append("(").append(i+1).append(",").append(values[i]).append(")");
builder.append('}');
return builder.toString(); -
Using Arrays in SELECT BULK queries
Dear All,
Can we use arrays in the SELECT Bulk operations.
Example:
SELECT empno BULK COLLECT INTO v_empno FROM EMP WHERE deptno = v_deptno(m);
Is there any way we can simulate this example.
Appreciate your response on this one.
Thanks,
Madhu K.Yes you can. See the example.
SQL> set serverout on
SQL> declare
2 TYPE varr_typ IS VARRAY(2) OF NUMBER;
3 my_varr varr_typ:=varr_typ(20) ;
4 TYPE rec_typ IS RECORD (fname EMPLOYEES.First_Name%TYPE,
5 lname EMPLOYEES.LAST_NAME%TYPE);
6 TYPE tmp_tbl IS TABLE OF rec_typ;
7 my_tbl tmp_tbl;
8 BEGIN
9 --my_varr(1):=20;
10 SELECT FIRST_NAME,LAST_NAME
11 BULK COLLECT INTO my_tbl
12 FROM EMPLOYEES
13 WHERE department_id=my_varr(1);
14
15 FOR i IN 1..my_tbl.COUNT LOOP
16 DBMS_OUTPUT.put_line(my_tbl(i).fname||' '||my_tbl(i).lname);
17 END LOOP;
18 END;
19 /
Michael Hartstein
Pat Fay
PL/SQL procedure successfully completed. -
Error using Arrays.toString()
Hi there,
I am getting the following error using Arrays.toString on a String Array. 'toString() in java.lang.Object cannot be applied to (java.lang.String[]).
The line in question is at the bottom of the below code. It starts 'rtitem.appendText.....
import lotus.domino.*;
//import java.util.Arrays;
public class JavaAgent extends AgentBase {
Database curDb;
String[] dbList;
public void NotesMain() {
int dbcount = 0;
try {
Session session = getSession();
AgentContext agentContext = session.getAgentContext();
//get current database
Database curDb = agentContext.getCurrentDatabase();
//build a list of servers;
String[] servers = {"Norwich002/Norwich/MoneyCentre","Norwich003/MoneyCentre","Norwich004/MoneyCentre","Norwich005/MoneyCentre","Norwich007/Norwich/MoneyCentre","Norwich008/Norwich/MoneyCentre","Norwich010/Norwich/MoneyCentre","Norwich020/Norwich/MoneyCentre","Norwich021/Norwich/MoneyCentre"};
//loop through server list
int arraylen = servers.length;
for(int i=0;i <= arraylen;i++){
//create a notesdbdirectory collection for the current server iteration
DbDirectory dbdir = session.getDbDirectory(servers);
//get first database
Database db = dbdir.getFirstDatabase(DbDirectory.DATABASE);
//loop through databases in dbdir
while (db != null){
//add database details to our list
dbList[dbcount] = db.getTitle() + " - " + db.getFilePath();
dbcount++;
} catch(Exception e) {
e.printStackTrace();
private boolean sendEmail(String subject){
try{
Document mailDoc = curDb.createDocument();
mailDoc.replaceItemValue("SendTo","Hayleigh S Mann/Norwich/MoneyCentre");
mailDoc.replaceItemValue("Subject",subject);
RichTextItem rtitem = mailDoc.createRichTextItem("Body");
rtitem.appendText(java.util.Arrays.toString(dbList));
mailDoc.send();
return true;
}catch(Exception e){
e.printStackTrace();
return false;No, that doesn't make any sense. Arrays.toString can take any array as an arg: [http://java.sun.com/javase/6/docs/api/java/util/Arrays.html#toString(java.lang.Object[])]
import java.util.*;
public class A {
public static void main(String[] args) {
String str = Arrays.toString(args);
System.out.println(str);
:; java -cp . A abc 123 xxx
[abc, 123, xxx] -
Can i use array.count in line?
All,
I have one small oracle program that take a ',' separated string as an input
and assigns the individual string to a nested table.
I am wondering if I can directly use array.count in my sql below
instead of assigning the count of the array 1st and then
using it.
l_cause_codes_array := util_pkg.tokenize_string(p_cause_codes_csv, ',');
l_count := l_cause_codes_array.count;
My current sql:
delete from po_complaint_cause p
where p.po_number = p_po_number
and p.comp_code = p_comp_code
and l_count > 1;
I would like to do something like:
delete from po_complaint_cause p
where p.po_number = p_po_number
and p.comp_code = p_comp_code
and l_l_cause_codes_array.count> 1;
I just want to reduce one context switch if possible.
Thanks.Hi,
did it give an error? Did you try? But it is possible.
But why not the next code:
l_cause_codes_array := util_pkg.tokenize_string(p_cause_codes_csv, ',');
if l_cause_codes_array.count >1
then
delete from po_complaint_cause p
where p.po_number = p_po_number
and p.comp_code = p_comp_code
end if;Do only the delete if it is bigger than 1, that is I think the fastest switch.
Herald ten Dam
http://htendam.wordpress.com -
How to use array of Point Class
I use Point class as array. I already create that. However I can't access to setLocation.
Ex.
Point myPoint[] = new Point[10];
myPoint[0].setLocation(10, 2);
It has a error.
Please Explain me.DeltaGeek wrote:
BalusC wrote:
Or use [Arrays#fill()|http://java.sun.com/javase/6/docs/api/java/util/Arrays.html]. Point[] points = new Point[10];
Arrays.fill(points, new Point());
That doesn't do what you think it does, unless you want your array to contain 10 references to the same Point object.The OP has received a good answer, I believe. So it's worth risking diverting this thread into the weeds by pointing out that if Java had closures then BalusC's code could be modified to work. -
How to use Array in Formcalc?
Please share syntax for using Array in Formcalc.
Hi,
FormCalc is a simple scripting language and does not support objects like arrays.
The only function that come close to an array in JavaScript is Choose(),
This first parameter selects the nth value of the following comma separated strings.
Choose(3, "String1", "String2", "String3", "String4")
returns String3 -
How to use Array in Calc script.
Hi, <BR> I want to use Array in Calc scripts. Can anyone provide me some examples. <BR><BR>Thanks<BR>Murali
For information on the ARRAY command, check out <a target=_blank class=ftalternatingbarlinklarge href="http://dev.hyperion.com/techdocs/essbase/essbase_712/Docs/techref/techref.htm">this hyperlink</a>.<BR><BR>Click on <b>Calculation Commands</b>, then choose <b>ARRAY</b>.<BR><BR>Can you give me some information explaining why you want to use ARRAY? It's use is pretty rare and I would like to understand what you're trying to do.
-
Using array binding to perform multiple rowupdates in one pass
For the first time I am attempting to use array binding in VB.NET to update multiple rows via a single execution of a stored procedure. My subroutine is:
Friend Sub UpdateSolutionStatusUsingArrays(ByVal intNumBeingUpdated As Integer, ByVal arrScenarioID() As Integer, ByVal arrSolutionID() As Integer, ByVal arrInOrOut() As Integer, ByVal arrTimePeriod() As Integer)
Try
'Set up the Command object
Dim cmdUpdateSolutionStatus As OracleCommand
cmdUpdateSolutionStatus = New OracleCommand
cmdUpdateSolutionStatus.CommandType = CommandType.StoredProcedure
cmdUpdateSolutionStatus.CommandText = "ProcUpdateSolutionStatus"
cmdUpdateSolutionStatus.Connection = cnnORACLE
cmdUpdateSolutionStatus.ArrayBindCount = intNumBeingUpdated - 1
cmdUpdateSolutionStatus.CommandTimeout = CInt(tblOptions.Rows(intDatabaseIndex).Item("ConnectionTimeout"))
'Add ScenarioID array as parameter
Dim p_ScenarioID As New OracleParameter("ScenarioID", OracleDbType.Int32)
p_ScenarioID.Direction = ParameterDirection.Input
p_ScenarioID.Value = arrScenarioID
cmdUpdateSolutionStatus.Parameters.Add(p_ScenarioID)
'Add SolutionID array as parameter
Dim p_SolutionID As New OracleParameter("SolutionID", OracleDbType.Int32)
p_SolutionID.Direction = ParameterDirection.Input
p_SolutionID.Value = arrSolutionID
cmdUpdateSolutionStatus.Parameters.Add(p_SolutionID)
'Add InOrOut array as parameter
Dim p_InOrOut As New OracleParameter("InOrOut", OracleDbType.Int32)
p_InOrOut.Direction = ParameterDirection.Input
p_InOrOut.Value = arrInOrOut
cmdUpdateSolutionStatus.Parameters.Add(p_InOrOut)
'Add TimePeriod array as parameter
Dim p_TimePeriod As New OracleParameter("TimePeriod", OracleDbType.Int32)
p_TimePeriod.Direction = ParameterDirection.Input
p_TimePeriod.Value = arrTimePeriod
cmdUpdateSolutionStatus.Parameters.Add(p_TimePeriod)
'Open connection
cnnORACLE.Open()
'Run stored procedure
cmdUpdateSolutionStatus.ExecuteNonQuery()
'Tidy up
cmdUpdateSolutionStatus = Nothing
cnnORACLE.Close()
Catch ex As Exception
WriteLog("Subroutine UpdateSolutionStatusUsingArrays:" & ex.Message.ToString)
strState = "Error"
'Update Run Status to show error has occurred
cnnORACLE.Close()
UpdateRunStatusORACLE(7)
End Try
End Sub
When the routine tries to run cmdUpdateSolutionStatus.ExecuteNonQuery() I get the error message:
Unable to cast object of type 'System.Int32[]' to type 'System.IConvertible'.
I have tried all sorts of variants of the code but with no success. The arrays are being set up correctly. Anyoneone know what I'm missing?
StewartTry declaring the arrays as OracleNumber datatype instead of Integer. I've had this issue before, and I believe this is what I did to solve the problem.
Maybe you are looking for
-
I lost my recent purchases again! My phone synced automatically and didn't save any new purchases. Not the 1st time this has happened!! I don't want to have to go into tabs in iTunes to tell it to remember to save my purchased iTunes items!! It shoul
-
HI, I have created a material and maintained the view of batch managment in MM01 and now the problem is coming that while creating invoice it gives error of maintainance batch managment. now i want to remove the view of batch managment. plzz help me
-
Send mail to a specific user group when an Inbound Idoc processing fails
I am using standard Message type DEBMAS, but the process code is customed (say ZDEBM as the function module is customed). Can you tell me what configurations are required to activate the error notification message to a user when the inbound idoc fail
-
Changing the extract structure MC02M_0ITM
Hi, When I am trying to change the extract structure MC02M_0ITM, I am getting the following error: "struct. from appl. 02 due to open v3 proc. not changed -> Long text" , "Message No. MCEX 140". All I was doing was adding more fields from communicat
-
Web Services - Uploading Related Accounts
Hi, I'm having a few problems uploading Related Accounts through web services. I'm using the AccountInsertOrUpdate method on the Account service from a .NET client (this is something that worked in earlier versions of Siebel OnDemand). The exception