John,
I don't know if this is practical or not, but can't Advisor pay someone externalk a few bucks to spot check articles and tips before they are published? I have been asked by other publications to do this when an article was going to be published that mentioned VFP.
>You should send this to the following address:
>
>foxpro@advisor.com
>
>Thanks for posting this... If more folks do this, maybe FPA will start to listen.
>
>>In light of or more of the recent threads in this area, here's a little something from the "Advisor Tips" section of FPA. As a side note, I find it interesting that Steve Sawyer is no longer the editor of this column.
>>
>>The title of this gem is "Determine if a Drive Exists". Without getting into any of the text, it has the following RETURN:
RETURN (DISKSPACE(tcDrive) > 0)
where tcDrive is the drive in question.
>>
>>Only one problem...under NT you get a nasty error dialog if SetErrorMode() isn't properly called (and later restored to it's original state) to disable it.
>>
>>Now if you're going to be mucking about with API anyway, then...
DECLARE INTEGER GetLogicalDrives IN Win32API
>>RETURN BITTEST(GetLogicalDrives(), ASC(UPPER(tcDrive)) - 65)
>>
>>gets the job done very cleanly.
>>
>>Back in the January, 2000 issue, while Steve was still the Contributing Editor, there was a tip that synchronized the VFP _DBLCLICK system variable with the setting the user had established in the Control Panel:
DECLARE INTEGER GetDoubleClickTime IN Win32API
>>_DBLCLICK = GetDoubleClickTime() / 1000
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05