473,324 Members | 2,002 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

Character Limit on file property value returned by getDetailsOf?

63
I'm using Access/VBA to traverse a file directory and produce a table of contents, including the keywords in the files' extended properties.

I've been able to successfully do this using the getDetailsOf method of the shell.namespace.folder object. However, I've noticed that for files with lengthy keyword strings, only a part of the keyword value is returned--not the entire thing.

Does anyone know if there is a limit to the size of the value that can be returned by this method?

Thanks.
Jun 29 '10 #1
3 2701
NeoPa
32,556 Expert Mod 16PB
I had a look for you and found BSTR (referring to the Type of the return value). I could find no indication of such a short limit. It implies a string of approximately 2GB is allowed. How this is handled within VBA and, more specifically your code, is something I don't know. It sounds like it may be cutting off at 255 chars.
Jun 29 '10 #2
postman
63
@NeoPa
It is cutting off at 260 characters. The file is storing all the keywords, so there must not be a limit on the file system side.

Strange side note--not sure if it's signifcant: when I view a file's properties in Windows XP, on the Summary tab if it's in the "Simple" view and I click in the Keyword field and scroll over, it's cut off at 260 characters. If I then click the "Advanced" view--still only the first 260 characters show. However, if I open the properties and go to the "Advanced" view without first clicking in the Keywords field in the "Simple" view, the entire value is there.
Jun 29 '10 #3
NeoPa
32,556 Expert Mod 16PB
Strange indeed.

Unfortunately not an area I have much experience in myself.
Jun 29 '10 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: clintonG | last post by:
How do I get a TreeNode.Parent property when using the 2.0 TreeView control? When the data source is an XML file there may be redundant names in the tree. For example, when a child node with the...
3
by: Shamil Salakhetdinov | last post by:
Hi All, This works for .MDBs: ?Currentdb.Containers!Databases.Documents!UserDefined.Properties("<YourPrope rtyNameHere>").Value How to get user defined property for .adp? Thanks,
1
by: Mudassar | last post by:
i want to get the property value using reflection. Scenerio: i have a status bar on MDI form. it has property named "Panels" and i want to get a specific panel from that panels collection using...
2
by: Andrzej Kaczmarczyk | last post by:
Hi, I have following problem: (warning, quite long post with lots of code) I have an object of a known type like this. class MyClass { public int Property1; public string Property2; }
5
by: Jefferis NoSpamme | last post by:
Hi all, I'm trying to limit the file size of an image submission and I keep running into various problems. I've got most of it working, but I'm stumped and I have a basic question as to WHY this...
6
by: Andrew Robinson | last post by:
assuming that I have a class public class MyClass { public string FirstName { get {...} set {...} } } how can I assign the FirstName property using reflection on a generic class
0
by: yp.yean | last post by:
Hi, I created a custom control, and encountered a dirty property value persistence problem. I created a property with a custom class type, call SQLSettings which holds the SQL connection...
4
by: shapper | last post by:
Hello, I am creating a class where I have various properties. How to I set a default property value in case the property is not defined by the user. For example, I have the property: '...
1
by: José Joye | last post by:
We have created some Assembly level Custom Attribute and we are searching for a way to display them when using the file property menu for the assembly ("version" tab). So far, we did not find any...
2
by: Chris Riesbeck | last post by:
I assume the answer to this is "no" with no workarounds, but just checking. I have a page I open locally from my filesystem for "scrubbing" Microsoft Word generated junk from HTML. In Firefox 2,...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.