lovais
August 3rd, 2005, 02:53 PM
Hi,
Does any one know how to create a database field name dynamically or is there a function in crystal similar to the "eval" function in javascript.
I am tyring to loop thru 10 fields ... key0 thru key9 and I want to dynamically create them
Local StringVar str := "";
Local NumberVar i;
For i := 0 To 9 Do
(
str := str + totext({tablename.key[i]})
);
str
Eventually I want to get the value for str.
thanks
Does any one know how to create a database field name dynamically or is there a function in crystal similar to the "eval" function in javascript.
I am tyring to loop thru 10 fields ... key0 thru key9 and I want to dynamically create them
Local StringVar str := "";
Local NumberVar i;
For i := 0 To 9 Do
(
str := str + totext({tablename.key[i]})
);
str
Eventually I want to get the value for str.
thanks