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

Datum editieren und wieder speichern ?

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-25-2008, 07:04 PM
Basic4ppc Veteran
 
Join Date: Jul 2008
Location: Germany
Posts: 366
Awards Showcase
Beta Tester 
Total Awards: 1
Default Datum editieren und wieder speichern ?

Editieren des Geburtstages wie folgt funktioniert:
txtboxGeburtstag.Text = Date(contact.Birthday)

zurückschreiben wie folgt bringt Fehler:
contact.Birthday = txtboxGeburtstag.Text

Fehlermeldung: FormatExeption

Auch contact.Birthday = date(txtboxGeburtstag.Text)
bringt den Fehler.

Am Programmanfang hab ich stehen: DateFormat("dd.mm.yyyy")


Was ist daran falsch ? Ich komme nicht drauf.
__________________
Gruß Paulsche

Samsung Galaxy S2
Reply With Quote
  #2 (permalink)  
Old 09-25-2008, 07:09 PM
specci48's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: Germany
Posts: 1,057
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Hallo Paulsche,

contact.Birthday ist vom Typ Long und erwartet daher kein textliches Datum sondern die Angabe in Ticks!

Die Zuweisung (eine korrekte Datumseingabe in der TextBox vorausgesetzt) muss also lauten:
Code:
contact.Birthday = DateParse(txtboxGeburtstag.Text)

Gruß
specci48
Reply With Quote
  #3 (permalink)  
Old 09-26-2008, 08:39 AM
Basic4ppc Veteran
 
Join Date: Jul 2008
Location: Germany
Posts: 366
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Funktioniert, danke.

Äh, jetzt hab ich gerade bemerkt, dass nach Neustart meines Programmes die geänderten Daten
nicht gespeichert wurden, während der Laufzeit hatte er alle geänderten Daten,
was fehlt denn hier noch ?

Nachtrag: Habs gefunden, "contact.update" fehlte.
__________________
Gruß Paulsche

Samsung Galaxy S2

Last edited by Paulsche : 09-26-2008 at 09:24 AM.
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
Neuer Kontakt wie wieder löschen ? Paulsche German Forum 4 10-21-2008 04:43 PM
Kontakt editieren, Tastatur ? Paulsche German Forum 2 09-23-2008 11:49 AM
Konvertierung Zeit und Datum in String Holger.D German Forum 5 05-12-2008 07:49 AM
Treeview in CVS-Datei und wieder zurück mamuen German Forum 6 04-24-2008 11:44 AM
combobox in den Globels editieren Bobbes German Forum 6 12-23-2007 08:45 AM


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


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