Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- MICROSYS C & Clipper Functions - <b>b_spltpath()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
b_spltpath()


Syntax:     b_spltpath(<expC>,<expN>)

Purpose:    Split directory and path into seperate pieces

Arguments:  <expC> is the full path and filename

            <expN> return request

            1 drive letter
            2 directory
            3 file name
            4 file extention

Returns:    A Character String

Library:    MICROSYS.LIB

----------------------------------- Example ----------------------------------

   local mPath := "s:\bhq\systest\dbf\hq_wel.dbf"

   qout( b_spltpath(mPath,1) )
   qout( b_spltpath(mPath,2) )
   qout( b_spltpath(mPath,3) )
   qout( b_spltpath(mPath,4) )

   Output:

   s:
   \bhq\systest\dbf\
   hq_wel
   .dbf

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson