Re: [Gambas-user] Math Operation

2017-05-05 Thread cheikh diabang
] coeff_v_c_w_2 = get_coef[0] Thank you very much   De : Jussi Lahtinen <jussi.lahti...@gmail.com> Envoyé : vendredi 5 mai 2017 12:43 À : mailing list for gambas users Objet : Re: [Gambas-user] Math Operation Ah, of course... Jussi On Fri, May 5, 2017 at 9

Re: [Gambas-user] Math Operation

2017-05-05 Thread Jussi Lahtinen
l_coefficients[2] > >>coeff_v_c_w_1 = calcul_coefficients[1] > >> coeff_v_c_w_2 = calcul_coefficients[0] > >> > >> Thank for help. > >> > >> > &

Re: [Gambas-user] Math Operation

2017-05-05 Thread Fabien Bodard
or your help > > > > De : Jussi Lahtinen <jussi.lahti...@gmail.com> > Envoyé : jeudi 4 mai 2017 15:12 > À : mailing list for gambas users > Objet : Re: [Gambas-user] Math Operation > > Declare the function as: > > Function calcul_coeffi

Re: [Gambas-user] Math Operation

2017-05-04 Thread cheikh diabang
I think the copy is not necessary. I want just access in one element on return array. Thank for your help De : Jussi Lahtinen <jussi.lahti...@gmail.com> Envoyé : jeudi 4 mai 2017 15:12 À : mailing list for gambas users Objet : Re: [Gambas-user] Math Ope

Re: [Gambas-user] Math Operation

2017-05-04 Thread Jussi Lahtinen
; À : mailing list for gambas users > Objet : Re: [Gambas-user] Math Operation > > Thank you very much Julio Sanchez . Its working fine > > > > De : Julio Sanchez <jusabejus...@gmail.com> > Envoyé : jeudi 4 mai 2017 10:30 > À : m

Re: [Gambas-user] Math Operation

2017-05-04 Thread cheikh diabang
] coeff_v_c_w_2 = calcul_coefficients[0] Thank for help. De : cheikh diabang <cheikhdiab...@hotmail.com> Envoyé : jeudi 4 mai 2017 10:42 À : mailing list for gambas users Objet : Re: [Gambas-user] Math Operation Thank you very much

Re: [Gambas-user] Math Operation

2017-05-04 Thread cheikh diabang
Thank you very much Julio Sanchez . Its working fine De : Julio Sanchez <jusabejus...@gmail.com> Envoyé : jeudi 4 mai 2017 10:30 À : mailing list for gambas users Objet : Re: [Gambas-user] Math Operation cheikh diabang: In addition if you are going to

Re: [Gambas-user] Math Operation

2017-05-04 Thread Julio Sanchez
cheikh diabang: In addition if you are going to return several float values, you should put float[]... Function calcul_coefficients(x As Integer, y As Integer, degre As Integer) As Float[] Dim ArrayABC as new float[] . ArrayABC.add(A) ArrayABC.add(B) ArrayABC.add(C) Return

Re: [Gambas-user] Math Operation

2017-05-04 Thread cheikh diabang
r_coef * x ^ 2) - (x ^ 2)) Else Message.Info("unavalaible coefficients") Endif Next Return a, b, c; End De : Tobias Boege <tabo...@gmail.com> Envoyé : jeudi 4 mai 2017 10:13 À : mailing list for gambas users Objet : Re: [Gambas-us

Re: [Gambas-user] Math Operation

2017-05-04 Thread Tobias Boege
On Thu, 04 May 2017, cheikh diabang wrote: > hello. i have write this code below on gambas 3.9.2 and when i run that, he > indique syntaxe error > > > Function calcul_coefficients(x As Integer, y As Integer, degre As Integer) As > Float > 'Dim ak As Float > Dim a As Float > Dim b As

[Gambas-user] Math Operation

2017-05-04 Thread cheikh diabang
hello. i have write this code below on gambas 3.9.2 and when i run that, he indique syntaxe error Function calcul_coefficients(x As Integer, y As Integer, degre As Integer) As Float 'Dim ak As Float Dim a As Float Dim b As Float Dim c As Float Dim nbr_coef As Integer Dim k As