Home
Screenshots
Showcase
Features
Download
Purchase
Online Community
Documentation
Contact Us
Download the free trial version
Features
Tutorials and manuals
Showcase
Screenshots
Android Development Forum - Basic4android
>
Foreign Languages
>
German Forum
Datum editieren und wieder speichern ?
User Name
Remember Me?
Password
Documentation Wiki
Register
Members List
B4P Search
Today's Posts
Mark Forums Read
Datum editieren und wieder speichern ?
LinkBack
Thread Tools
Display Modes
#
1
(
permalink
)
09-25-2008, 07:04 PM
Paulsche
Basic4ppc Veteran
Join Date: Jul 2008
Location: Germany
Posts: 366
Awards Showcase
Total Awards
: 1
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
#
2
(
permalink
)
09-25-2008, 07:09 PM
specci48
Basic4ppc Expert
Join Date: Apr 2007
Location: Germany
Posts: 1,057
Awards Showcase
Total Awards
: 2
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
#
3
(
permalink
)
09-26-2008, 08:39 AM
Paulsche
Basic4ppc Veteran
Join Date: Jul 2008
Location: Germany
Posts: 366
Awards Showcase
Total Awards
: 1
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
.
«
Previous Thread
|
Next Thread
»
Currently Active Users Viewing This Thread: 1
(0 members and 1 guests)
Thread Tools
Show Printable Version
Email this Page
Display Modes
Linear Mode
Switch to Hybrid Mode
Switch to Threaded Mode
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
.
Contact Us
-
Basic4android - Android programming
-
Top
Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by
vBSEO
3.3.0
LinkBack
LinkBack URL
About LinkBacks