Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 112
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3368: Cannot modify header information - headers already sent by (output started at /includes/bbcode.php:472)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3370: Cannot modify header information - headers already sent by (output started at /includes/bbcode.php:472)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3371: Cannot modify header information - headers already sent by (output started at /includes/bbcode.php:472)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3372: Cannot modify header information - headers already sent by (output started at /includes/bbcode.php:472)
OrbWorks Community Forum • View topic - applet

applet

Postby cialix on Wed Mar 05, 2003 1:37 pm

Why the appletremains in an infinite loop?

repeticiones()
{
int e,v,s,m,h,d;
string st;
dbopen ("Descanso");
dbrec (valoranterior);
dbreadx (&leo,'sz');

v = trans (leo);

if (v == 0)
{

REPT = 100;
}
else
REPT = v;


st = "Valor actual en segundos : " + REPT;
alert(st);

GInit("");
menu();

GText(0,"Segundos",7,6,9);
GText(1,"Minutos",7,9,9);
GText(2,"Horas",7,12,9);
GText(3,"Dias",7,15,9);
GEntry(4,"0",15,6,3);
GEntry(5,"0",15,9,3);
GEntry(6,"0",15,12,3);
GEntry(7,"0",15,15,3);
GButton(8,"Aceptar",4,21,9);
GButton(9,"Cancelar",14,21,9);
GText(10,"Intervalo para repeticiones :",3,1,33);
GFrame(11,5,4,15,15);
GRefresh();

while(1)
{
e = GEvent();
if (e == 40)
{
break;
}
if (e == 4)
{
s = GGet(4);
GSet(4,s);
}
if (e == 5)
{
m = GGet(5);
GSet(5,m);
}
if (e == 6)
{
h = GGet(6);
GSet(6,h);
}
if (e == 7)
{
d = GGet(7);
GSet(7,d);
}
if (e == 8)
{
v = 0;
v = s + m*60 + h*3600 + d*86400;
REPT = v;
leo = (int)(REPT);
dbrec(valoranterior);
dbwritex(&leo,'sz');
// alert(leo);
dbbackup(1);
dbclose();
alert(v);
//return;
}
if( e == 9 )
{
return;
}
// return;
}
//return;
}
cialix
 
Posts: 4
Joined: Wed Mar 05, 2003 1:07 pm
Location: Spain

Postby soinsg on Wed Mar 05, 2003 6:44 pm

What makes e = 9 or e = 40?
Also switch() makes cleaner code:
Code: Select all
switch(e) {
case 9:
  return;
  break;
..
case 5:
  m = GGet(5);
  GSet(5,m);
  break;
..
}
soinsg
 
Posts: 198
Joined: Thu May 17, 2001 4:26 pm


Return to PocketC for Palm OS KB

Who is online

Users browsing this forum: No registered users and 2 guests

cron