Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using two variables to open a file
Message
From
30/01/2002 09:27:32
Lutz Scheffler (Online)
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
 
 
To
30/01/2002 08:48:00
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00612617
Message ID:
00612684
Views:
26
>>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]
Previous
Reply
Map
View

Click here to load this message in the networking platform