Page 1 of 1
Text Component Expression invalid (2014)
Posted: Wed Apr 30, 2014 9:54 am
by ChrDressler
Hi,
I have a Text-Component, bound on an DataTable with this expression {Print1.text}. This works fine in V2013.3
In V 2014.1, i receive this Error:
The error of compilation
The error of compilation is found in the 'RechKass' report:
'Reports.RechKass.Print1DataSource' nor definition for 'text', nor Extension method... (missing Using or Assembly...).
If I change the expression to {Print1.text_} (added underline!), it works
Ath the moment, I try to "convert" this expressions an runtime. But, ist there a better solution?
Christoph
Re: Text Component Expression invalid (2014)
Posted: Wed Apr 30, 2014 12:37 pm
by Alex K.
Hello
Please try to add this Text component in new version again and let us know about the result.
Thank you.
Re: Text Component Expression invalid (2014)
Posted: Mon May 05, 2014 11:50 am
by ChrDressler
unfortunately, this doesn't help. Always the same error

( That would be no solution, because we have some customized report, wich we can't simpy replace )
Christoph
Re: Text Component Expression invalid (2014)
Posted: Tue May 06, 2014 6:10 am
by HighAley
Hello.
text is a reserved word and could not be used as column name. So our report engine adds underline symbol to avoid errors.
Please, use the {Print1.text_} or rename the column.
Thank you.
Re: Text Component Expression invalid (2014)
Posted: Wed May 07, 2014 2:56 pm
by ChrDressler
Ok, I add the underline (Columns in DataTables) an runtime. It's not elegant, but works.
Are there another "reserved words"?
Christoph
Re: Text Component Expression invalid (2014)
Posted: Thu May 08, 2014 10:58 am
by HighAley
Hello.
Here is a full list of the reserved words:
Code: Select all
abstract
addhandler
addressof
alias
and
andalso
andif
ansi
as
assembly
auto
base
beginepilogue
binary
bool
boolean
break
byref
byte
byval
call
case
catch
cbool
cbyte
cchar
cchr
cdate
cdbl
cdec
char
checked
chr
chrw
cint
class
clng
cobj
compare
const
continue
convert
cshort
csng
cstr
ctype
date
decimal
declare
default
delegate
dim
do
double
each
else
elseif
end
endif
endprologue
enum
erase
error
event
exdouble
exfloat
exit
explicit
extern
externalsource
finally
fixed
float
for
foreach
friend
function
get
gettype
gosub
goto
handles
if
implements
implicit
imports
in
inherits
int
integer
interface
internal
is
let
lib
like
lock
long
loop
me
mod
module
mustinherit
mustoverride
myclass
mythis
namespace
namespace
new
next
not
nothing
notinheritable
notoverridable
null
object
off
on
operator
option
optional
or
orelse
out
overloads
overridable
override
overrides
paramarray
preserve
private
property
protected
public
raiseevent
readonly
redim
ref
region
rem
removehandler
resume
return
sbyte
sealed
select
set
shadows
shared
short
single
sizeof
static
step
stop
strict
string
struct
structure
sub
switch
synclock
text
then
this
throw
to
try
try
typeof
uint
ulong
unchecked
unicode
unsafe
until
ushort
using
variant
virtual
void
when
while
with
withevents
writeonly
xor
FALSE
TRUE
Thank you.