Re: Are my e-mails getting through?

new topic     » goto parent     » topic index » view thread      » older message » newer message

------=_NextPart_000_0007_01C03A91.66EE8330
        boundary="----=_NextPart_001_0008_01C03A91.66F62450"


------=_NextPart_001_0008_01C03A91.66F62450
        charset="iso-8859-1"

Hi Thomas.
I've attached a version of the program that does what I think you're after.

You really must try to step through your program one statement at a time and
you will see where your assumptions are not working.

The problems I noted were...
1) You had LEFT and RIGHT mixed up.
2) You were not clearing the "old" message before putting the new message
onto the screen.
3) The message could go outside the box.

also, I've added some more variables and renamed some to help readability.
If the variables are named better, you can more easily see some bugs. So
instead of "pos1" and "pos2", I've called them "rowpos" and "colpos".
Try not to have too many numbers scattered through out the program. Give
them names by using constants or variables. It will make changes much, much
easier.

Your comments about "staircase" is wrong. It doesn't matter which column you
write the IF/THEN/ENDIF/ words, just as long as each IF has a matching THEN
and ENDIF and you put the THEN before the ENDIF.
-----
cheers,
Derek Parnell



------=_NextPart_001_0008_01C03A91.66F62450
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.3105.105" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT color=3D#0000ff face=3DArial size=3D2><SPAN =
class=3D916592001-20102000>Hi=20
Thomas.</SPAN></FONT></DIV>
<DIV><FONT color=3D#0000ff face=3DArial size=3D2><SPAN =
class=3D916592001-20102000>I've=20
attached a version of the program that does what I think you're=20
after.</SPAN></FONT></DIV>
<DIV><FONT color=3D#0000ff face=3DArial size=3D2><SPAN=20
<DIV><FONT color=3D#0000ff face=3DArial size=3D2><SPAN =
class=3D916592001-20102000>You=20
really must try to step through your program one statement at a time and =
you=20
will see where your assumptions are not working.</SPAN></FONT></DIV>
<DIV><FONT color=3D#0000ff face=3DArial size=3D2><SPAN=20
<DIV><FONT color=3D#0000ff face=3DArial size=3D2><SPAN =
class=3D916592001-20102000>The=20
problems I noted were...</SPAN></FONT></DIV>
<DIV><FONT color=3D#0000ff face=3DArial size=3D2><SPAN =
class=3D916592001-20102000>1) You=20
had LEFT and RIGHT mixed up.</SPAN></FONT></DIV>
<DIV><FONT color=3D#0000ff face=3DArial size=3D2><SPAN =
class=3D916592001-20102000>2) You=20
were not clearing the "old" message before putting the new message onto =
the=20
screen.</SPAN></FONT></DIV>
<DIV><FONT color=3D#0000ff face=3DArial size=3D2><SPAN =
class=3D916592001-20102000>3) The=20
message could go outside the box.</SPAN></FONT></DIV>
<DIV><FONT color=3D#0000ff face=3DArial size=3D2><SPAN=20
<DIV><FONT color=3D#0000ff face=3DArial size=3D2><SPAN =
class=3D916592001-20102000>also,=20
I've added some more variables and renamed some to help readability. If =
the=20
variables are named better, you can more easily see some bugs. So =
instead of=20
"pos1" and "pos2", I've called them "rowpos" and "colpos". =
</SPAN></FONT></DIV>
<DIV><FONT color=3D#0000ff face=3DArial size=3D2><SPAN =
class=3D916592001-20102000>Try=20
not to have too many numbers scattered through out the program. Give =
them names=20
by using constants or variables. It will make changes much, much=20
easier.</SPAN></FONT></DIV>
<DIV><FONT color=3D#0000ff face=3DArial size=3D2><SPAN=20
<DIV><FONT color=3D#0000ff face=3DArial size=3D2><SPAN =
class=3D916592001-20102000>Your=20
comments about "staircase" is wrong. It doesn't matter&nbsp;which column =
you=20
write the IF/THEN/ENDIF/ words, just as long as each IF has a matching =
THEN and=20
ENDIF and you put the THEN before the ENDIF.</SPAN></FONT></DIV>
<P><FONT size=3D2>-----<BR>cheers,<BR>Derek =

------=_NextPart_001_0008_01C03A91.66F62450--

------=_NextPart_000_0007_01C03A91.66EE8330
        name="Intrough.ex"
Content-Transfer-Encoding: quoted-printable

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu