Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SET("PATH")

Status
Not open for further replies.

MrFancyteeth

Programmer
Mar 18, 2003
90
GB
I'm using Visfox 8 & can't find this in the help file
- it goes from SET("NOTIFY") to SET("PRINTER")

With intellisense i get can pass the parameters 1, 2 & 3

but what do they mean?

They all seem to return the same path - even when my SET PATH TO command has multiple paths.

Any Ideas?

MrF
 
Look up the Set() function in the help, not the Set command. Type Set(), mark it and press F1, there it is explained. Not all Set()-Function calls will give other information back with a second parameter given.

If you thought set("path",n) will give you the Nth path you've misunderstood that. set('path') will give you back one string with a list of , or ; delimited paths.

Do you set multiple path with multiple Set Path To commands?

Then try ADDITIVE as an option and Set('path') will give you the complete list of paths you set...

Bye, Olaf.
 
HI

1. SET("PRINTER",1) fetches FileName or PortName
SET("PRINTER",2) fetches Default Windows printer name
SET("PRINTER",3) fetches Default Visual FoxPro Printer
SET PRINTER TO myPrinter does not change the windows default printer shown in 2. It changes the VFPs default printer shown in 3.

2.SET NOTIFY CURSON ON
SET NOTIFY OFF
? SET("NOTIFY")
? SET("NOTIFY",1)
You can see the difference.

System messages display in the graphical, not character-based, status bar at the bottom of the main Visual FoxPro window.

When SET NOTIFY CURSOR is set to OFF, Visual FoxPro suppresses all data-related messages from displaying in the status bar. These messages include alias, data source, record pointer, record count and exclusive/record unlocked status.

The setting of SET NOTIFY CURSOR does not affect SET NOTIFY.

You can use the SET("NOTIFY",1) function to return the current value of SET NOTIFY CURSOR.

:)

____________________________________________
ramani - (Subramanian.G) :)
 
OlafDoscke - that's exactly what i meant - THERE IS NO HELP for set("PATH") ( PATH under the set() function help)

ramani - thanks but I can see all that in the help - just that the path explaination is missing - my VFP8 help just goes from notify to printer - missing out path (& the parameters)

Totally my fault - I kind of missed out my Question about set("Path") in the question text & only put it in the heading.

To rephrase my question... What do the 1,2 & 3 parameters mean in set("path") and have i got a version of help where this is missing?

mrF






 
To rephrase my question... What do the 1,2 & 3 parameters mean in set("path") and have i got a version of help where this is missing?

According to the help file, the parameter are only used for those commands that need them. SET('PATH') does not need additional parameters.
Including an argument doesn't return additional information for all SET commands, just those listed with 1, 2, or 3 in the following table.

Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
MrF,
The IntelliSense for SET() includes all possible options for the generic SET("") command - cSETCommand [, 1 | cExpression | 2 | 3]. (Note in 9.0 there is also a 4 option for TEXTMERGE and it doesn't list PATH either!)

In other words, IntelliSense doesn't actually look at what's between the quotes to alter the option list - it just lists them all for all variants of this command.

For SET("PATH"), the optional 1 -> 3 (or 4, 999 or anything else!) are simply ignored. It appears that in this case the parser quits after the close quote, but it does check for no more than one additional parameter (ignoring the value) and the close parenthesis.

Rick
 
Mike

thanks - I was just wondering why intellisense was showing the parameter options for set("path") when there are non

I tried it with set("alternate") (which is in the help) which has no parameters and intellisense still showing parameters.

I guess i was expecting intellisense to be a bit more intelligent, and not show the extra parameters for a command that doesn't require them.

no worries

mrF
 
RGBean-

thanks too

good to know that my help isn't corrupt.

mrF
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top