Information générale
Titre:
Could not pass array through addobject method.
hello friends,
i want to pass complete array to my class. i am using addobject method. but it always pass first element of array instead of complete array.
i am doing this.
dimension lapara[2]
lapara[1] = 'A'
lapara[2] = 'B'
x = addobject('oClass','cClasstoCreate',@lapara)
i could only get first element of laPara Array in init of cClasstoCreate.
Same thing work in following statement. follwing work perfect
x = createobject('cClasstoCreate',@lapara)
pl. help
thanks
john still
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement