hi,
ive got a problem with the OpenFileRequester.
ive made a gui for one of my command line tools.
command line tool Parameters
tool C:\Documents and Settings\Static.txt 50
And here is my problem : Documents and settings ! how can i tell the OpenFileRequester to show that paths DOS like. Course the blank fields between documents and settings are a problem.
thx
OpenFileRequester
-
- User
- Posts: 17
- Joined: Mon Apr 05, 2004 1:27 am
- Contact:
OpenFileRequester
AMD 2800+ , 1024DDR 400, Nvidia FX 5600 Pro 256DDR, Hersules Game Theater 7.1
-
- Enthusiast
- Posts: 613
- Joined: Tue May 06, 2003 2:50 pm
- Location: Germany
- Contact:
-
- User
- Posts: 17
- Joined: Mon Apr 05, 2004 1:27 am
- Contact:
Hi
You are probably doing somthing wrong when you use chr(34)
you could pass it as a string and debug it to see if it's right
A modified ver from the help
Does this work for you ?
Best Regards
Henrik
You are probably doing somthing wrong when you use chr(34)
you could pass it as a string and debug it to see if it's right
A modified ver from the help
Does this work for you ?
Code: Select all
StandardFile$ = "C:\Documents and Settings\Static.txt 50" ; set initial file+path to display
; With next string we will set the search patterns ("|" as separator) for file displaying:
; 1st: "Text (*.txt)" as name, ".txt" and ".bat" as allowed extension
; 2nd: "PureBasic (*.pb)" as name, ".pb" as allowed extension
; 3rd: "All files (*.*) as name, "*.*" as allowed extension, valid for all files
Pattern$ = "Text (*.txt)|*.txt;*.bat|PureBasic (*.pb)|*.pb|All files (*.*)|*.*"
Pattern = 0
; use the first of the three possible patterns as standard
File$ = OpenFileRequester("Please choose file to load", StandardFile$, Pattern$, Pattern)
If File$
MessageRequester("Information", "You have selected following file:"+Chr(10)+File$, 0)
Else
MessageRequester("Information", "The requester was canceled.", 0)
EndIf
Henrik
-
- User
- Posts: 17
- Joined: Mon Apr 05, 2004 1:27 am
- Contact:
No, its working fine, couse ive got some commandline tools to use , and ive only made a gui which creates a bat file there the commands are listed in with the parameters and it runs fineYou are probably doing somthing wrong when you use chr(34)

-----------
ok its a primitive way but ive got some problems with a included programm to use it with runprogram (and with the right parameters)
AMD 2800+ , 1024DDR 400, Nvidia FX 5600 Pro 256DDR, Hersules Game Theater 7.1