Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Select() or Select
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00337143
Message ID:
00337301
Vues:
14
MyTable="c:\temp\temp order by MyKey in 0 shared"

use &mytable && Works
but
use(mytable) && Error passed by reference don't work
But:
used to ..
MyTable="temp" && Opened with a use already
used to
select &MtTable && Old way in macro (still works)
now..
select(MyTable) && By Reference (works)


>>I think you're right about that. Apparently, with the parenthesis, it doesn't need any whitespace.
>
> This is interesting: I just did some experimenting, and the same goes for just quotes:
Select"myTable"
also works. Of course
Select(myTable)
doesn't work, because it expects myTable to be a variable.
>
>But USE has an interesting quirk:
>
>
use c:\temp\temp
works fine.
>
use("c:\temp\temp")
works fine.
>
use"c:\temp\temp"
works fine.
>
>here's where it gets interesting:
>
>
use(c:\temp\temp)
doesn't work. Actually I didn't expect it to, but it failed in a way that I didn't expect. With a straight tablename
use(temp)
of course it thinks temp is a variable, but with an full path it tries to open (in the current directory) a filename that includes the parenthesis and path!
< CurrentDirectory >\(c:\temp\temp).dbf
Imagination is more important than knowledge
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform