Autor Beitrag
mrmiagi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 31


Delphi 7 pro
BeitragVerfasst: Mo 19.01.04 09:07 
Hallo,
ich habe ein Stringgrid und schiebe per OLE jedes Feld in eine Exceltabelle. Das Problem dabei ist das im Stringgrid in einem Feld "12.15" steht, aber im Excel dann 12,15 erscheint. Ich nehme mal an das es als Zahl interpretiert wird, weil bei "44.78 56.78" übernimmt er es einfach so!
Wie kann ich es so machen das er alles übernimmt ohne etwas umzuformatieren?? :cry:
Keldorn
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 2266
Erhaltene Danke: 4

Vista
D6 Prof, D 2005 Pro, D2007 Pro, DelphiXE2 Pro
BeitragVerfasst: Mo 19.01.04 09:40 
Hallo

hast du mal probiert '12.15 zu übergeben?

dann wärs als Text

Mfg Frank

_________________
Lükes Grundlage der Programmierung: Es wird nicht funktionieren.
(Murphy)
mrmiagi Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 31


Delphi 7 pro
BeitragVerfasst: Mo 19.01.04 10:05 
HI,
ich versteh nicht ganz was du damit meinst?
Mit "übergeben"?
mrmiagi Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 31


Delphi 7 pro
BeitragVerfasst: Mo 19.01.04 10:10 
Ach jetzt habe ich verstanden was damit gemeint ist, habe das ' überlesen!
Gibt es da denn keine elegantere Lösung als ein ' hinzufügen?
Keldorn
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 2266
Erhaltene Danke: 4

Vista
D6 Prof, D 2005 Pro, D2007 Pro, DelphiXE2 Pro
BeitragVerfasst: Mo 19.01.04 10:16 
hat funktioniert? mit dem ' nimmts Excel als Text (bzw sollte es ;) ).

ansonsten keine Ahnung, das Format der Zelle ändern? aber dann bist du mit dem ' schneller.

_________________
Lükes Grundlage der Programmierung: Es wird nicht funktionieren.
(Murphy)