Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Empfohlene Antworten

Veröffentlicht

Jo Leutz.

Helft mir mal bitte, ich hab nen Riesen Problem.

Also ich versuche mit dem Borland C++ Builder 5 in eine MySQL Datenbank ein Datensatz zu schreiben.

hier mal der Code:


        Table1->Open();

        char Termin[160] = {"Das ist nur ein Test"};

        AnsiString s1 = "2002-09-07";

        AnsiString s2 = "2002-09-07";


        char um_std[] = {12};

        int um_min[] = {46};

        int bis_std[]= {16};

        int bis_min[]= {27};

        char Ort[80] = {"im Raum 011"};

        char Dozent[40]= {"ich"};

        char Memo[80] = {"Hoffentlich funzt es"};


Table1->InsertRecord(OPENARRAY(TVarRec, (Termin, um_std,

                um_min, bis_std, bis_min,Item4, Item5, Ort, Dozent, Memo)));

Wenn ich das ding dann ausführe kommt ein Laufzeitfehler:

Projet raised exception class EConvertError with message: "%○Ã is not a valid date".

Also anscheinend ist der Datumsstring (s1 und s2) in einem falschen Format.

Aber wie sieht dann das Format richtig aus???

Original geschrieben von Hoppo

AnsiString s1 = "2002-09-07";

AnsiString s2 = "2002-09-07";

Projet raised exception class EConvertError with message: "%○Ã is not a valid date".

Also anscheinend ist der Datumsstring (s1 und s2) in einem falschen Format.

Aber wie sieht dann das Format richtig aus???

Tja das sollte eigentlich Deine DBMS-Doku Dir sagen. Schau halt mal unter Date/Time nach, dort findest sicher Beispiele !

Evtl. will er am Anfang keine Jahreszahlen..:rolleyes:

hehe mein Fehler :)

Item4 = s1

Item5 = s2

Aber funzt trotzdem nicht :(

und mit anderen Schreibweisen hab ichs auch schon probiert:

"07.09.02"

"07.09.2002"

"07/09/02".....

und was bitte is eine DBMS-Doku

also die Borland-Doku ist ja echt der größte $#|][, da kannste auch ein Fremdwörterbuch nehmen :)

DBMS=Database Management System

Und zwar das von Borland. (Kenn ich leider nicht) Aber aus Deinem Fehler zu schliessen muss ein nicht der Syntax entsprechendes Datum sein.

ey ****e mann da steht nur *******e

bitte entschuldigt mich für meine Ausdrucksweise :)

also im SQL Explorer steht:

SQL Data Out: MySQL ODBC 3.51 Driver - Column = 7, Name = Datum_bis, Type = fldDATE, Precision = 10, Scale = 0, Data = 5/12/2003

Also ist der Datentyp der SQL-DB: fldDATE

so und ich will jetzt in dieses Feld (Datum_bis) ein Datum reinschreiben. (Natürlich mit dem Borland C++ Builer)

geht aber nicht. Weil ich nicht weiss wie dieses Datumsformat aussieht.:marine

lasst uns doch alle lieb haben :e@sy

Erstelle ein Konto oder melde dich an, um einen Kommentar zu schreiben.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.