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

Go Back   Android Development Forum - Basic4android > Foreign Languages > German Forum
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

FolderChooser als Module

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-02-2009, 09:26 PM
Basic4ppc Veteran
 
Join Date: Jul 2008
Location: Germany
Posts: 366
Awards Showcase
Beta Tester 
Total Awards: 1
Default FolderChooser als Module

Hi, ich will in meinem Programm ein Verzeichnis von der Speicherkarte
auswählen, wo der Pfad dann in eine Variable als Datenpfad gespeichert werden soll.
Das Sample "Folderchooser" hab ich als Modul eingebunden, nur wie ich das Modul richtig benutzen muss, weiss ich nicht.
Ich rufe in einem Sub "Folderchooser.show(returnsub)" auf.
Returnsub ist das Sub wo nach Auswahl des Verzeichnises angesprungen wird,
da kommt dann bei mir der Fehler
" CallSub(ReturnTo,"")
Error description: Sub was not found. Did you forget the module prefix? "

Hab auch schon " Folderchooser.show(Main.returnsub) " versucht, der gleiche Fehler.

Was mache ich falsch, und wie bekomme ich das ausgewählte Verzeichnis mit Pfad in eine Variable ?
__________________
Gruß Paulsche

Samsung Galaxy S2
Reply With Quote
  #2 (permalink)  
Old 04-03-2009, 06:19 AM
klaus's Avatar
Basic4ppc Expert
 
Join Date: Oct 2007
Location: Fully, Switzerland
Posts: 4,463
Awards Showcase
Forum Contributer Beta Tester Competition Winner 
Total Awards: 3
Default

Hallo Paulsche.

Ich nehme an dass die Retourroutine 'ReturnSub' heisst.

Im Main Module brauchst Du folgendes:
Code:
FolderChooser.Show("Main.ReturnSub")

Und die Routine
Code:
Public Sub ReturnSub(Folder)
 
End Sub
Wo 'Folder' der Name des Verzeichnisses ist.

Im FolderChooser Modul brauchst Du:
Code:
Public Sub frmFolderChooser_Close
  
CallSub(ReturnTo,Verzeichniss)
End Sub
Ein Beispiel für einen FileChooser der das gleiche macht, findest Du hier:
http://www.basic4ppc.com/forum/code-...e-modules.html

Beste Grüsse.
__________________
Klaus
Switzerland

Beginner's Guide / User's Guide
Reply With Quote
  #3 (permalink)  
Old 04-03-2009, 08:39 PM
Basic4ppc Veteran
 
Join Date: Jul 2008
Location: Germany
Posts: 366
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Danke Klaus, hat jetzt Prima geklappt.
__________________
Gruß Paulsche

Samsung Galaxy S2
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
Properties module - useful module for working with properties / ini files Erel Code Samples & Tips 2 10-13-2011 09:02 PM
Unclear Module Reference HARRY Questions (Windows Mobile) 2 01-08-2009 12:46 PM
passing a module name as a variable Cableguy Questions (Windows Mobile) 4 10-24-2008 09:47 AM
Storage of module klaus Beta Versions 6 08-31-2008 02:36 PM
HiLo Game Module Wizarda2z Share Your Creations 0 05-12-2007 06:43 PM


All times are GMT. The time now is 07:41 PM.


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