Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using two variables to open a file
Message
 
 
À
30/01/2002 01:59:59
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00612617
Message ID:
00612683
Vues:
21
>I've faced that situations at few occasions and was wondering what you think.
>
>Lets say I have a data path and a file name variables. So, to open that file, I would then use:
>
>
>USE gcMainDbf+''+tcChildTable IN 0
>
>
>as if I use:
>
>
>USE gcMainDbf+tcChildTable IN 0
>
>
>that won't work.
>
>I personally never used a file name that contains a +. Is that possible? If not, then, this should be calculated and not searched as is for a file that matches that entire string.

I think that foxpro parser, fllowing it's internal rules, considers "gcMainDbf + '' + tcChildTable" an expression and 'gcMainDbf+tcChildTable' a name.
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform