compiling this code:
Code: Select all
nLen := oParameter:Count - 1
for nI := 0 upto nLen
cKey:= cKey
cParameter:Replace( "@" + cKey + "@", oParameter[cKey] )
next
warning XS1717: Assignment made to same variable; did you mean to assign something else?
warning XS0165: Use of unassigned local variable 'cKey'
and in fact, the compiler is right!
Thank you for discovering such (stupid) errors!
Wolfgang