Autor Beitrag
anno
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 20



BeitragVerfasst: Mo 17.09.07 15:46 
hallo zusammen, ich habe da ein Problem

weiß jemand, wie ich in DB2 als SQL-Anweisung einen Wahrheitswert (also 0 oder -1) in der Ausgabe in einen Text umwandeln kann?

So dass ich einen text wie Pass oder fail schreiben kann.

mfg anno
alias5000
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2145

WinXP Prof SP2, Ubuntu 9.04
C/C++(Code::Blocks, VS.NET),A51(Keil),Object Pascal(D2005PE, Turbo Delphi Explorer) C# (VS 2008 Express)
BeitragVerfasst: Mo 17.09.07 15:48 
schreib dir das doch schnell selber, eine If-Abfrage und fertig ;)
(if Wert = -1 then
result := 'failed'
else
usw.
)

gruß
alias5000

_________________
Programmers never die, they just GOSUB without RETURN
anno Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 20



BeitragVerfasst: Mo 17.09.07 15:55 
ja gut ok, aber das soll gleich wieder in einem db-grid ausgeben werden. Bisher lade ich ins db grid die daten über ein source objekt rein.