Autor Beitrag
Nightfly
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 163



BeitragVerfasst: Mo 10.11.03 12:50 
Folgender Ausdruck funktioniert mit einer Paradox Tabelle, jedoch nicht mit der baugleichen ADS Tabelle.
ausblenden Quelltext
1:
Table2.Filter := 'Stelle = ' + QuotedStr(IntToStr(Table1Stelle.Value)) + ' AND Bereich =' + QuotedStr(Table1Bereich.value) + ' AND Monat =' +QuotedStr(IntToStr(month)) + ' AND Jahr = ' + QuotedStr(IntToStr(year));					


Woran kann das liegen?

Die fehler Meldung ist "Unsupported Data Type in function parameter in a record Filter expression" ...
smiegel
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 992
Erhaltene Danke: 1

WIN 7
D7 Prof., C#, RAD XE Prof.
BeitragVerfasst: Mo 10.11.03 12:57 
Hallo,

ich kenne ADS nicht, könnte mir aber vorstellen, dass die Angabe von QuotedStr für Zahlen zum Fehler führt.

_________________
Gruß Smiegel
Ich weiß, daß ich nichts weiß, aber ich weiß mehr als die, die nicht wissen, daß sie nichts wissen. (Sokrates)
Nightfly Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 163



BeitragVerfasst: Mo 10.11.03 13:04 
Es sind ja keine Zahlen, schließlich mach ich vorher noch ein IntToStr ... das isses also nich.
smiegel
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 992
Erhaltene Danke: 1

WIN 7
D7 Prof., C#, RAD XE Prof.
BeitragVerfasst: Mo 10.11.03 13:10 
Hallo,

wie sind die Werte von Monat und Jahr in der Tabelle gespeichert? Als String? Wenn nicht, dann sind es zahlen.

Was passiert, wenn Du dort QuotedStr weglässt?

_________________
Gruß Smiegel
Ich weiß, daß ich nichts weiß, aber ich weiß mehr als die, die nicht wissen, daß sie nichts wissen. (Sokrates)
Nightfly Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 163



BeitragVerfasst: Mo 10.11.03 13:23 
Ah, jetzt weiß ich was du meinst. Aber nein, daran liegt es nicht, hab es grad ausprobiert :(
hwb
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 91

Win98 SE, Win2000
D5 Prof
BeitragVerfasst: Mo 10.11.03 14:13 
Vermutlich mag er die Funktionen -INTTOSTR- nicht innerhalb des Filterausdruckes.
Sonst bau doch mal eine Variable die den ganzen Filterausdruck als Inhalt
hat und setz damit den Filter.

Filterausdruck := (Blah+Inttostr(Hallo) usw
Adssetfilter(Filterausdruck);

So kannst du dir den Inhalt der Variablen mal anzeigen lassen.

Und schau mal unter Adssetfilter(). Dort in der Hilfe stehen auch die Funktionen die ADS unterstützt.

Hans