[Gambas-user] shell and exec with wait
José María Lucero
gambas at ...913...
Wed Mar 16 17:56:16 CET 2005
I am having problems using shell and exec comands with Wait For Read, it seems
to ignore the wait.
i make a shell or exec that calls a command that retrieves some information
from internet which i read through the process_read event, according to what
i read i classify that information in variables in the object and then call
another subroutine that uses this data, however inspite of using wait gambas
continues with the next line of code before entering the process_read event,
this causes the next line to fail as it needs the information from
process_read(i know process_read works ok, since i can read what
am i doing something wrong or is this a bug in gambas.
a.getData(sym)
a.guardarNombreAccion(set) 'this function needs information set in
process_read but fails because of being executed before process_read
PUBLIC SUB getData(simbolo AS String)
'obtiene la información de la acción o símbolo indicado
datosleidos=0
EXEC ["yahooquote","--verbose", simbolo] WAIT FOR READ AS pr
'SHELL "yahooquote --verbose " & simbolo WAIT FOR READ AS pr
PRINT "GETS HERE BEFORE RUNNING PROCESS_READ"
END
public sub process_read()
print "enters here after a.guardarNombreAccion"
...
end su
More information about the User
mailing list