VisDosEnumPath( ) returns incorrect values

forum.gupta.bugreport (2005-2010)
James McCall

VisDosEnumPath( ) returns incorrect values

Post by James McCall » 14 Mar 2008, 22:15

 Posted by:  James McCall 

The VisDosEnumPath( ) function does not return all directories in the path
variable. It is performing as advertised in the help file but I think it's
fair to call it a bug. The help file says ...


Windows does not support directories on the path with trailing backslashes;
if a path directory contains a trailing backslash, it is not returned.


While that might have been a valid statement in Windows 95 (and maybe even
98 and 2000) I am pretty sure Windows isn't fussy anymore. In fact there
are Microsoft and Gupta installed directories in my PATH environment
variable that have trailing slash.

OK, this is only tested on CTD2000 but there's a chance it hasn't been
changed in later versions of TD. Take a look at the sample app. attached.

I guess this hasn't bothered anyone because I haven't seen it mentioned in
the newsgroups before now. But if you do need VisDosEnumPath( ) with all
the directories this will do the job:

! Set nSearchPathCount = VisDosEnumPath( saSearchPath )
Set nSearchPathCount = SalStrTokenize( VisDosGetEnvString( 'PATH' ), '',
';', saSearchPath )

James McCall

You do not have the required permissions to view the files attached to this post.

Geert_Schröder
Germany
Posts: 328
Joined: 01 May 2019, 08:04
Location: Germany

Re: VisDosEnumPath( ) returns incorrect values

Post by Geert_Schröder » 05 Apr 2008, 13:21

 Posted by:  Geert Schroeder 

Hello James

Please include your test-app in apt-format (or zipped?).
Outlook automatically deletes files with suffix app.

Best Regards
Geert

RainerE
Germany
Posts: 2204
Joined: 27 Apr 2021, 12:40
Location: Germany

Re: VisDosEnumPath( ) returns incorrect values

Post by RainerE » 07 Apr 2008, 10:16

 Posted by:  Rainer Ebert 

In the options, tab "Security" you can change this behaviour of Outlook
Express.
Rainer

Geert_Schröder
Germany
Posts: 328
Joined: 01 May 2019, 08:04
Location: Germany

Re: VisDosEnumPath( ) returns incorrect values

Post by Geert_Schröder » 09 Apr 2008, 11:58

 Posted by:  Geert Schroeder 

Hello Rainer

Thanks for the tipp.

Geert

Return to “gupta.bugreport”

Who is online

Users browsing this forum: [Ccbot] and 0 guests