LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Question about VB constants

48 is 16 + 32, so it means it has the attributes of directory and archive.

To check if your attribute is set, do something like

GetAttr(filename) AND 16

A non-zero result means it is set.

HTH

Bob

"turnerje" wrote in
message ...

I am using the GetAttr constant, with the reference being "P:\", and it
returns 48, when I would expect 16, because it is a directory. What
does the 48 reference to?
I know what the constants 0,1,2,4,8,16,32 mean. Is there a full listing
somewhere? I have also recieved the constant 22 for my "C:\"

Many Thanks in advance

Justin


--
turnerje
------------------------------------------------------------------------
turnerje's Profile:
http://www.excelforum.com/member.php...o&userid=25694
View this thread: http://www.excelforum.com/showthread...hreadid=473066



 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Formula constants? Glenn L.[_2_] Excel Worksheet Functions 2 August 29th 08 01:47 PM
Manifest Constants in VBA Bill Martin Excel Discussion (Misc queries) 4 September 20th 05 04:27 AM
Newbie question.. what does [somedata] represent? Constants?? Alex Wolff[_2_] Excel Programming 1 March 11th 05 04:25 PM
constants Confused Excel Discussion (Misc queries) 3 December 2nd 04 05:05 PM
constants alekm Excel Programming 1 September 9th 04 12:16 PM


All times are GMT +1. The time now is 08:31 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"