1. My program has a RunTime Error and I =?iso-8859-1?Q?can=B4t?=
- Posted by PaMpEaNo <ebonvehi at CPSARG.COM> Mar 04, 1999
- 329 views
Hi, my name is William and I´m 14 years old, call me "RedKnight" :) I´m new in this, and I want to know why my crackme program crash everytime I do this routine. procedure ENTRAR() object ppas, pppas ppas = "123" pppas = getText(Pass) if pppas != ppas then setText(Estatus, "Wrong Password") else closeWindow(Password) end if end procedure Sorry if I don´t speak english very well, but I´m from Argentina. Thanks all.
2. Re: My program has a RunTime Error and I =?iso-8859-1?Q?can=B4t?=
- Posted by Daniel Berstein <daber at PAIR.COM> Mar 04, 1999
- 330 views
[Warning: Spanish ahead] >Hi, my name is William and I=B4m 14 years old, call me "RedKnight" :) >I=B4m new in this, and I want to know why my crackme program crash >everytime I do this routine. > >procedure ENTRAR() > object ppas, pppas > ppas =3D "123" > pppas =3D getText(Pass) > if pppas !=3D ppas then > setText(Estatus, "Wrong Password") > else > closeWindow(Password) > end if >end procedure > >Sorry if I don=B4t speak english very well, but I=B4m from Argentina. >Thanks all. Guillermo o William? Creo que tu problema es la linea: if pppas !=3D ppas then Puesto que ambas variables son sequence, debes utilizar la funcion compare(). Solo puedes utilizar operadores relacionales (>, <, >=3D, <=3D, = =3D) sobre secuencia, si y solo si ambas secuancias tienen la misma longitud. Por lo tanto es recomedable que siempre uses compare() sobre variables de tipo object o sequence. Ejemplo: if compare(pppas, ppas) =3D 0 then [English resume: Use compare() for sequence type variables] Saludos, "che" ;) Daniel Berstein [daber at pair.com]