
Scope of non declared variable
Quote:
>I could get on your soapbox too. We actually hired an external
>company to develop this program because we already had too much to do.
>When I started rewriting it (since it doesn't work correctly) it has
>no variable declarations, variables that are used, comments like
>"Doesn't use this but I put it here anyway", and 26 page long
>procedures. I learned all this in "Intro to Programming I".
I can't pass this by... If you hired a consulting firm, then you ( your
company this is ) should have taken a good look at the work produced
before signing off on it. Additionally, most quality consulting firms have
a warranty that goes with their products.
Quote:
>The reason I am asking this question is because I have gone back and
>used option explicit and declared variables. The application is a
>barcoding system and I am trying to parse strings returned via radio
>frequency. The first 9 times the string is returned correctly, but
>the 10th time it is half full of garbage characters. All my instincts
>tell me this is a program problem and not a hardware problem because
>it is too consistant (10 time only). I though maybe a variable was
>getting too full or something like that and wanted to verify I wasn't
That would produce a memory error and VB would complain loudly
about it.
Quote:
>skipping something easy.
>Any suggestions where to look will be really appreaciated!!
Try where the string is being returned. Set a break point just before
it, Add a watch to the de{*filter*} and step through the code. Watch the
string in the debug window. The problem will become evident.
Peter Mikalajunas
http://www.*-*-*.com/ ~kd9fb