Click here to Skip to main content
15,561,685 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I built an array and now I use:

MIDL
for(i=0; i< num; i++)
      loadNotes(texto[i]);
//array of strings)


The problem is, what should be the header of my functions?

function loadNotes(texto []) {


Thanks in advance.
Posted
Updated 22-Dec-10 19:51pm
v2

No type information is needed in JavaScript

C#
for( i = 0; i <num; ++i)
  loadNotes( texto[i]);


function loadNotes( notes ){
  // use the notes variable
}
 
Share this answer
 
v2
Comments
Maxdd 7 23-Dec-10 9:40am    
I tried that but I had a variable bad written that was corrupting my JS, that's why when I tried didnt worked :)
It will be simply:
JavaScript
function loadNotes(texto){}

While using it you need to take care of array part.
 
Share this answer
 
v2
C#
for(i=0; i< num; i++)
      loadNotes(texto[i]);


function loadNotes(Val) {

 //your code
}
 
Share this answer
 
v5

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900