PDA

View Full Version : How Can i Add ReFresh CTRL_BUTTON_BROWSE


code83z
03-08-2007, 08:20 PM
Well...
am newbie to SUF7.
i hv many Question but i'll ask timebeing.
i want to Refresh CTRL_BUTTON_BROWSE to its default Value in SELECT INSTALL FOLDER.
well, i used a lil trick for Giving Database Path By Browsing.
See Picture 1. and picture 2
i want to view only *.mdb files in directory View, where rite now am only viewing the Folders & SubFolders Tree, not Files, bcoz am using SELECT INSTALL FOLDER Screen.
Please Help me! if still my problem is not clear then i'll try to Explore more.

ThanxXx! in Advance!
Best Regards
Bilal Ahmed

Adam
03-09-2007, 11:44 AM
Sorry but I don't totally understand your question. Please explain further

Adam Kapilik

code83z
03-09-2007, 12:37 PM
Sorry but I don't totally understand your question. Please explain further

Adam Kapilik

ThanxXx! for Reply! Sir!
ok, lemme Xplain wt i Xactly want to do..., nd Sorry! my English is not better!

Am Trying to create a Setup file, for configuring DSN for MS Access, in which user will tell only 2 things.
1 - DSN Name
2 - Database File Path

lets suppose,
User Enter DSN Name, "MyDSN"
Database File Path, "D:\Database\Backup.mdb"

i want to Pass Both Values to below code at run time, nd when i click Next or Create DSN button, setup create a DSN with the name MyDSN. and Database File Path should change or modify or insert in Setup.
i want to pass Variables to "DSN=SOMVARIABLE\\0DBQ=files

ODBC.ConfigDataSource("Microsoft Access Driver (*.mdb)", "DSN=QandA\\0DBQ=J:\\DATABASE\\QandA.mdb\\0FIL=MS Access;\\0DESCRIPTION=Questions and Answers Database\\0DRIVERID=25\\0UID=\\0\\0", ODBC_ADD_DSN);



am using this code for Browsing nd selecting Database File from Drives.
files = Dialog.FileBrowse(true, "Open File", _DesktopFolder, "MS Access Files (*.mdb)|*.mdb", "", "", false, false);

how can i modify these both values in setup ?
DSN NAME & DBQ...

or if anyother possible solution for this purpose you have tell me.
am 101% newbie! for SUF7

Please Guide Me!