PC SOFT

GRUPOS DE DISCUSSÃO PROFISSIONAL
WINDEVWEBDEV e WINDEV Mobile

Inicio → WINDEV (versões anteriores) → recieve a undefined size array parameter
recieve a undefined size array parameter
Iniciado por César Ecf, fev., 20 2010 10:49 AM - 4 respostas
Publicado em fevereiro, 20 2010 - 10:49 AM
Hi all

I'm using windev express 12 and i have the next question: How can i recieve a parameter that is a numeric array type, but i don't know the exact size with it will enter.

In other languages like java would be "<visibility> <returns> name(int array[]){}"

i'm developing in WLanguage, i need the answer for WLanguage. Thanks


Hola a todos

Estoy usando windev express 12 y tengo la siguiente pregunta: ¿Cómo puedo recibir un parámetro que sea de tipo numerico, pero sin un tamaño específico.

En otros lenguages, como java, la linea seria "public retorno nombre(int arrego[]){}"

Estoy utilizando WLanguage, necesito la respuesta en WLanguage
Publicado em fevereiro, 20 2010 - 2:55 PM
Hi Cesar

Receive from where?

Best regards


--
Fabrice Harari
Consultant WinDev, WebDev et WinDev Mobile International

Plus d'information sur http://fabriceharari.com/index_FR.html


On 2/20/2010 4:49 AM, César Ecf wrote:
Hi all

I'm using windev express 12 and i have the next question: How can i recieve a parameter that is a numeric array type, but i don't know the exact size with it will enter.

In other languages like java would be "<visibility> <returns> name(int array[]){}"

i'm developing in WLanguage, i need the answer for WLanguage. Thanks


Hola a todos

Estoy usando windev express 12 y tengo la siguiente pregunta: ¿Cómo puedo recibir un parámetro que sea de tipo numerico, pero sin un tamaño específico.

En otros lenguages, como java, la linea seria "public retorno nombre(int arrego[]){}"

Estoy utilizando WLanguage, necesito la respuesta en WLanguage
Publicado em fevereiro, 21 2010 - 1:25 AM
more details about:

i'm developing an academical software that has to run 5 sorting algorythms, the size of that array must be defined by user in a edit box (already did that part, it's working) i have made that array GLOBAL in my window, so i can use it everytime i need, but, i'm writing now the QuickSort algorythm and needs to call another function partition who needs the actual status of the array and other two limit numbers, so since the size it's defined by the user at the beginning of the process, i can't define a exactly size of the array to recieve it in the procedure.
Publicado em fevereiro, 22 2010 - 11:51 PM
Hi César...

considering that you know the size in question (entered by the user),
you just need to pass it as a parameter of the sort procedure...

If you don't know how to pass parameter, just look at 'procedure' and
'parameter' in the help file

Best regards

--
Fabrice Harari
International WinDev, WebDev and WinDev mobile Consulting

More information on http://www.fabriceharari.com


On 2/20/2010 7:25 PM, César Ecf wrote:
more details about:

i'm developing an academical software that has to run 5 sorting algorythms, the size of that array must be defined by user in a edit box (already did that part, it's working) i have made that array GLOBAL in my window, so i can use it everytime i need, but, i'm writing now the QuickSort algorythm and needs to call another function partition who needs the actual status of the array and other two limit numbers, so since the size it's defined by the user at the beginning of the process, i can't define a exactly size of the array to recieve it in the procedure.
Publicado em fevereiro, 23 2010 - 7:58 AM
ok think i found how to resolve it: just writing the name of variable without typing