Revivo y recontra reviso y no logro dar con el fallo - Please helpme - Forum

Forum Navigation
You need to log in to create posts and topics.

Revivo y recontra reviso y no logro dar con el fallo - Please helpme

@roccocogliano,@luishp

I have created a small app that only has a button, which reads a file and then must place the different lines in the variables of a page.

I have followed the routine to the letter but I can't get it to work, I check and check and I can't find where the error is

the button reads the file

neoPhpFileToVar "file.txt" [result] "parseData"

This is the routine that runs

StrParse "[result]" "\n" [myArray]
ArrayLen [myArray] [totalLines]

SetVar [line1] [myArray(0)]
SetVar [line2] [myArray(1)]
SetVar [line3] [myArray(2)]
SetVar [line4] [myArray(3)]

Then on the page it should take the value of the variables but I can't get it to do so...

 

He creado una pequeña app que solo tiene un boton, el cual lee un archivo y luego debe colocar las distintas lineas en las variables de una pagina.

He seguido la rutina al pie de la letra pero no logro ni consigo que funcione, reviso y reviso y no puedo encontrar donde esta el fallo

el boton lee el archivo

neoPhpFileToVar "file.txt" [resultado] "parseData"

Esta es la rutina que ejecuta

StrParse "[resultado]" "\n" [miArray]
ArrayLen [miArray] [totalLineas]

SetVar [linea1] [miArray(0)]
SetVar [linea2] [miArray(1)]
SetVar [linea3] [miArray(2)]
SetVar [linea4] [miArray(3)]

Luego en la pagina deberia tomar el valor de las varibles pero no logro que lo haga...

 

Uploaded files:
  • You need to login to have access to uploads.

@joferar333 ,

Tienes un parametro puesto en la subroutina, por eso no te funciona. Eliminalo

Gracias amigo @emo igual aun habiendo sacado el parametro no logro que funcione

La verdad que me tiene saturado no puedo lograr algo tan simple... en fin gracias

@joferar333

porque tambien tienes mal puestas las varibles

Aqui tienes todo corregido

 

Uploaded files:
  • You need to login to have access to uploads.
luishp has reacted to this post.
luishp

@emo te debo la vida! no tienes idea de cuanto me has salvado... llevo mas de 6 dias dando vueltas con esto

Realmente eternamente agradecido

Un cordial saludo.