Estoy intentando programar un space invaders en ABAP -ya saben el de las navecitas- y bueno... tengo la necesidad de ejecutar eventos que se repitan en un intervalo establecido, y ya que aprendí a usar el timer, decidí poner un ejemplo super sencillo aca.
blablabla blablablabl bnalblablaba
Este programa, escribe "hola" en un report y luego cada 3 segundos escribe "hola otra vez!!"
*&---------------------------------------------------------------------*
*& Autor: Carlos Agreda *
*& Fecha: Feb 29 (Es biciesto) 2008 *
*&---------------------------------------------------------------------*
REPORT ZEJ_TIMER.
data: temporizador type ref to cl_gui_timer.
* Definición del manejador de eventos ------------------------------------
class lcl_event_handler definition.
public section.
class-methods: on_Timer for event finished of cl_gui_timer
importing sender.
endclass.
* Implementación del manejador de eventos ------------------------------
class lcl_event_handler implementation.
method on_Timer.
write: 'Hola otra vez!!'.
sender->run( ).
endmethod.
endclass.
start-of-selection.
create object temporizador.
set handler lcl_event_handler=>on_Timer for temporizador.
temporizador->interval = 3. "el tiempo va en segundos
temporizador->run( ).
write: 'Hola'.
viernes, 29 de febrero de 2008
Timer para ABAP
Suscribirse a:
Enviar comentarios (Atom)
9 comentarios:
Excelente!.
Creo que se pueden hacer cosas buenas con los Timers...
Salu2. =D
que es za waaaaaaa y para que sirve y como lo puedo usar jajaja :P
of course like your website however you need to take a look at the spelling
on several of your posts. Many of them are rife
with spelling issues and I in finding it very bothersome to tell the truth nevertheless I will surely come again again.
Also visit my web-site: green coffee extract weight loss
Thanks for sharing your thoughts about extranjeros.
Regards
Also visit my web site :: http://doggieblogs.com
What a material of un-ambiguity and preserveness of valuable experience about unpredicted feelings.
Feel free to visit my homepage - no deposit casino
I know this is kind of off topic but I was curious if you
knew where I could download a captcha plugin for my
feedback form? I'm using the same blog system as you and I'm having
trouble getting one?
my blog :: Diet Supplements Reviews
Just wanted to inform you that I found your page on and while
I really liked looking through your article, it looks like your blog acts
up in a couple web browsers. When I check out your web-site in Safari, it
looks fine however, when opening in IE, it has a bunch of overlapping issues.
I simply wanted to provide you with a quick heads up, that's all.
My blog post RF
Hello, I'm Dusty and I've recently started to
get involved with what you're going over. I am not certain where you’re getting your facts, but great job regardless. I need to spend some time learning and understanding much more. Thanks for this: I was looking for this info for my goal.
Check out my homepage - reticente
Greetings, I noticed your website on http://carlosagreda.
blogspot.com/ while browsing for a corresponding topic, your blog came up,
it seems interesting. I've saved it in my google bookmarks.
my webpage ... Krankenpflege
Publicar un comentario