Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Questions (Windows Mobile)
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Questions (Windows Mobile) Post any question regarding Basic4ppc.

How to select a directoty

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-03-2007, 09:15 AM
sloopa's Avatar
Knows the basics
 
Join Date: Apr 2007
Location: Germany
Posts: 60
Default How to select a directoty

I need a dialog to select a directory?

Has somebody a solution?
__________________
sL00Pa

-1- HTC Diamond / WM6.1
-2- Asus A636 / WM5

(I'm not a native english-speaker - if I make mistakes, please correct me!)
Reply With Quote
  #2 (permalink)  
Old 05-03-2007, 09:29 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,734
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

See the FolderChooser example.
Attached Files
File Type: zip FolderChooser.zip (6.6 KB, 130 views)
Reply With Quote
  #3 (permalink)  
Old 05-03-2007, 01:16 PM
sloopa's Avatar
Knows the basics
 
Join Date: Apr 2007
Location: Germany
Posts: 60
Default

my fault, ...

(My lazy bones - First look at examples than ask...)
__________________
sL00Pa

-1- HTC Diamond / WM6.1
-2- Asus A636 / WM5

(I'm not a native english-speaker - if I make mistakes, please correct me!)
Reply With Quote
  #4 (permalink)  
Old 05-03-2007, 01:22 PM
sloopa's Avatar
Knows the basics
 
Join Date: Apr 2007
Location: Germany
Posts: 60
Default

Second question:

What is to do that it works on the desktop with all partitions - hard drives?
__________________
sL00Pa

-1- HTC Diamond / WM6.1
-2- Asus A636 / WM5

(I'm not a native english-speaker - if I make mistakes, please correct me!)
Reply With Quote
  #5 (permalink)  
Old 05-03-2007, 02:37 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,734
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

Attached is an improved example that allows the user to choose the drive (on the desktop).
It checks for available drives using the following code:
Code:
<font size="2"><font color="#0000ff">for </font></font><font size="2">i = </font><font size="2"><font color="#0000ff">asc</font></font><font size="2">("A") </font><font size="2"><font color="#0000ff">to asc</font></font><font size="2">("Z")
</font><font size=
"2"><font color="#0000ff">  if DirExist</font></font><font size="2">(</font><font size="2"><font color="#0000ff">chr</font></font><font size="2">(i) & ":\") = true </font><font size="2"><font color="#0000ff">then </font></font><font size="2">cmbDrives.Add(</font><font size="2"><font color="#0000ff">chr</font></font><font size="2">(i) & ":")
</font><font size=
"2"><font color="#0000ff">next
</font></font>
Attached Files
File Type: sbp FolderChooser.sbp (2.6 KB, 72 views)
Reply With Quote
  #6 (permalink)  
Old 05-03-2007, 04:49 PM
sloopa's Avatar
Knows the basics
 
Join Date: Apr 2007
Location: Germany
Posts: 60
Default

thx

as every time superb and fast support
__________________
sL00Pa

-1- HTC Diamond / WM6.1
-2- Asus A636 / WM5

(I'm not a native english-speaker - if I make mistakes, please correct me!)
Reply With Quote
  #7 (permalink)  
Old 07-02-2007, 02:23 PM
Junior Member
 
Join Date: Jun 2007
Location: Alabama, US
Posts: 10
Send a message via Skype™ to adukes
Default

I have been experimenting with the FolderChooser example, trying to make my own OpenDialog. I understand the OpenDialog is somehow resticted by the OS. That brings up 2 questions:

1. Could the FooderChooser example be modified a made a library that acted as a Open Save dialog with no folder restrictions? Is there a good reason for the restrictions? Maybe there is something fundamental here I am not aware of.

2. I have noticed a number of differences in the way my modified FolderChooser sample operates on the destop, in the VS emulator, and on the device. This makes it difficult to troubleshoot and debug. Is there any reference that describes differences in the file system between XP and Windows Mobile?
Reply With Quote
  #8 (permalink)  
Old 07-02-2007, 03:06 PM
dzt's Avatar
dzt dzt is offline
Basic4ppc Veteran
 
Join Date: May 2007
Location: Ioannina, Greece
Posts: 356
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

1. Don't forget that PPCs are simple devices targeting to non experienced users. A developer should take care of that.

2. I'm not aware of a guide describing that

Regards
__________________
Dimitris Zacharakis
http://www.terracom.gr
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
select case syntax tremara1 Basic4ppc Wishlist 4 10-31-2008 11:12 AM
SQL-lite select using AND operator mozaharul Questions (Windows Mobile) 5 06-04-2008 07:27 AM
Table select doesn't react tvrman Questions (Windows Mobile) 5 09-19-2007 11:49 AM
How can I select parts of an Image francisco cobos Questions (Windows Mobile) 1 06-07-2007 08:07 AM
About Select ... case JJM Questions (Windows Mobile) 2 05-22-2007 06:55 AM


All times are GMT. The time now is 10:49 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0