1: | procedure TData.LoadFromFile; |
: |
| ich habe ein kleines Problem und zwar möchte ich wenn ich auf einen Button drücken, dass sich dort ein OpenDialog öfnnet und ich ein Textdokument in ein Memo einlesen kann. Es funktioniert eigentlich... Bis auf, dass ich nur Dokumente mit der Endung .txt ein lesen kann. |
| http://www.delphibasics.co.uk/RTL.asp?Name=TOpenDialog hat folgendes geschrieben: |
| Filter property
This allows only certain file types to be displayed and selectable. The filter text is displayed in a drop down below the file name field. The following example selects for text files only: openDialog.Filter := 'Text files only|*.txt'; The drop down dialog shows the description before the | separator. After the separator, you define a mask that selects the files you want. openDialog.Filter := 'Text and Word files only|*.txt;*.doc'; Above we have allowed two different file types, separated by a ;. openDialog.Filter := 'Text files|*.txt|Word files|*.doc'; Above we have allowed text and Word files as two options in the drop down list. |
Entwickler-Ecke.de based on phpBB
Copyright 2002 - 2011 by Tino Teuber, Copyright 2011 - 2025 by Christian Stelzmann Alle Rechte vorbehalten.
Alle Beiträge stammen von dritten Personen und dürfen geltendes Recht nicht verletzen.
Entwickler-Ecke und die zugehörigen Webseiten distanzieren sich ausdrücklich von Fremdinhalten jeglicher Art!