Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using two variables to open a file
Message
De
30/01/2002 09:27:32
Lutz Scheffler (En ligne)
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
 
 
À
30/01/2002 08:48:00
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00612617
Message ID:
00612684
Vues:
27
>>USE don't like variables.
>>I have little trouble to understand your var (gcMainDBF) as data path.
>>Assuming you mean PATH and FILE NAME try:
>
>I'm not looking for a solution. As I mentioned, I already use '' to separate both variables in order to force the evaluation.
>
>What I'm saying is that I believe that as soon as a + sign is present that this should be evaluated.

Beg your pardon, it was beyond my english. <s>.

It looks like a "+" sign will be result in nothing. This seems to be normal since "+" is a regular sign within a filename. On the other hand "+''" is regular as well. I wood simple call the way USE LcVar1+'' works a bug, since syntax is USE Table and not USE cTable.
In USE "C:\My Files\blabla.dbf" "c:\My Files\blabla.dbf" is not realy a String. It is a filename encapsulted for the use of space in "My Files".


You might call a table "lcVar1+''+l" as long as you like.
Try
CREATE TABLE "la+''+l" (Ix i)
USE
USE la+''+l &&error
USE
USE "la+''+l"
?'ALias: '+Alias()+' >>dbf: 'dbf()

CREATE TABLE la+l (Ix i)
USE
USE la+l &&no error
?'ALias: '+Alias()+' >>dbf: 'dbf()
.

Look also on the way the Alias is named.

I love this xbase stuff. Realy, I do.
Agnes
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform