Re: I cant do change string to int.



santosh wrote:
In article <871wawzm9a.fsf@xxxxxxxxx>, Ben Bacarisse
<ben.usenet@xxxxxxxxx> wrote on Sunday 11 Nov 2007 11:40 pm:
....
there is a 'z=1;' in there. Proof, if it were needed, that good names
and good layout are important. The code is uninviting so I have not
had a look at it.

Ah yes. Good spot. However it comes _after_ the if/else construct so
it's of no consequence to it.

It's defined outside of a loop, and both set and tested inside the loop. If it's set in the first pass through the loop, the else clause should be triggered on the following pass. I still haven't bothered looking closely at this code, so I'm not sure what's wrong with it, but the fact that z is first set to a non-zero after the first time it's value is tested isn't in itself sufficient explanation.
.



Relevant Pages

  • Re: Conditional formatting
    ... Keep your enter/edit layout separate from your viewing layout. ... without having to use a timeconsuming loop all ... looping altogether by setting the strikethrough formatting at the same ... # Redraw the screen by showing only uncompleted projects ...
    (comp.databases.filemaker)
  • Re: Removing Duplicates In Filemaker The Easy Way
    ... End Loop ... I also use this in a Comparator db for comparing table filed names, ... The second script is more entertaining and parses the field lines of two fields containing lists, ... Go to Layout ...
    (comp.databases.filemaker)
  • Wiring KATO double crossover
    ... My layout is basically two loops connected by a KATO double crossover. ... outer loop the circuit is interrupted on the rail closest to the center ...
    (rec.models.railroad)
  • Re: Heathrow T4 tube station open again
    ... Probably a stupid question, but why was the decision taken to construct ... the line in that layout, rather than extending the loop so trains would ...
    (uk.transport.london)
  • Re: Heathrow T4 tube station open again
    ... construct the line in that layout, rather than extending the loop so ... Have you looked where Terminals 4 and 5 actually are? ... Are the terminals really so far apart that a three station loop would ...
    (uk.transport.london)