By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,569 Members | 1,164 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,569 IT Pros & Developers. It's quick & easy.

GetDetailsOf... help please...

P: n/a
I want show the name of a file, but only the name, without extension. I have
used this code:

var fldr = FileList.Folder
var name;
// name
name = fldr.GetDetailsOf(items, 0);
text = "<b>" + name + "</b>";

This code show the name complete (name.ext), and I want only you the name
without extension, because the extension is not useful for me in this case.
I believe that isn´t possible show only the name with the method
GetDetailsOf, and I need help to made a code that only show the name of
file, and I prefer that this code not use ActiveX, because these can be a
problem.

thanks!
Jul 20 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a

"Jack-2" <na**@nada.net> schreef in bericht
news:br************@ID-155475.news.uni-berlin.de...
I want show the name of a file, but only the name, without extension. I have used this code:

var fldr = FileList.Folder
var name;
// name
name = fldr.GetDetailsOf(items, 0);
text = "<b>" + name + "</b>";


Try:
name = fldr.GetDetailsOf(items, 0);
name = name.substring(0, name.lastIndexOf('.'));

JW

Jul 20 '05 #2

P: n/a
thanks!

"Janwillem Borleffs" <jw@jwscripts.com> escribió en el mensaje
news:3f*********************@news.wanadoo.nl...

"Jack-2" <na**@nada.net> schreef in bericht
news:br************@ID-155475.news.uni-berlin.de...
I want show the name of a file, but only the name, without extension. I

have
used this code:

var fldr = FileList.Folder
var name;
// name
name = fldr.GetDetailsOf(items, 0);
text = "<b>" + name + "</b>";


Try:
name = fldr.GetDetailsOf(items, 0);
name = name.substring(0, name.lastIndexOf('.'));

JW

Jul 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.