Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Foxpro telling me porky pies again
Message
De
27/01/2005 13:13:02
Nancy Folsom
Pixel Dust Industries
Washington, États-Unis
 
 
À
27/01/2005 12:16:36
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
00981259
Message ID:
00981303
Vues:
20
Terry-

>Hi chaps

Hope you don't mind if a lass replies? <g>

>I have the following code
>
>
>lcSeekKey	 = thisform.cRoute + thisform.cGen + thisform.cDirectn + "1 " + STR( ZONE, 4)
>
>where thisform.cRoute = "1 "
> thisform.cGen = "A"
> thisform.cDirectn = "O" and
> ZONE = 3, (table field) so:
> STR( ZONE, 4) = " 3"
>
>(all verified in debugger - watch)
>
>So how come cSeeKey ends up as: "1 AO1 132"? Where the blithering hell does "132" come from?

Did you take the tinfoil off the the top of your CPU? Seriously, when I just set variables to be what you say they are in the debugger the value is is what one would expect. So, I'd say there's something missing in either your description, or elsewhere. When I get stuck on these sort of X-Files type problems, I break it down (in the code) to parts. So, you might put in local variables, assign them to the values you're concatenating, and then concatentate those. Break the program just before you start setting the variables, and step through it, checking the values in the Locals window of the debugger at each step.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform