What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » GetFileOpenName problem

GetFileOpenName problem
Author: Message:
-dt-
Scripting Contest Winner
*****

Avatar
;o

Posts: 1819
Reputation: 74
36 / Male / Flag
Joined: Mar 2004
RE: GetFileOpenName problem
quote:
Originally posted by SpunkyLoveMuff
quote:
Originally posted by -!Felu!-
code:
function BrowseForFile(InitialDir){
BrowseFilter = "Text Files (*.txt)|*.txt|All Files|*.*";
var BrowseDialog = new ActiveXObject("UserAccounts.CommonDialog")
BrowseDialog.Filter = BrowseFilter;
BrowseDialog.InitialDir = InitialDir;
BrowseDialog.Flags = "&H4";
BrowseDialog.ShowOpen()
return BrowseDialog.FileName;
}

Will that still work in JScript or should it be 0x4 or something :S

EDIT: Pasted code twice

you're right its susposed to be 0x4, &H just means hex in another langauge, but in js you use 0x. Also passing "&H4" is like passing "safswdfasdf" it means nothing to the program because its the wrong type and it has not a clue what &H4 means
[Image: dt2.0v2.png]      Happy Birthday, WDZ
12-11-2006 12:18 PM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
GetFileOpenName problem - by deAd on 12-10-2006 at 09:48 PM
RE: GetFileOpenName problem - by Ezra on 12-10-2006 at 09:51 PM
RE: GetFileOpenName problem - by Felu on 12-11-2006 at 10:45 AM
RE: GetFileOpenName problem - by Spunky on 12-11-2006 at 10:58 AM
RE: GetFileOpenName problem - by Felu on 12-11-2006 at 11:10 AM
RE: GetFileOpenName problem - by Spunky on 12-11-2006 at 12:12 PM
RE: GetFileOpenName problem - by -dt- on 12-11-2006 at 12:18 PM
RE: GetFileOpenName problem - by deAd on 12-11-2006 at 10:38 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On