How to initialise a DB dataset entirely from code?

edited 5:25PM in FastReport 4.0
I can get it to work when I create it from the form, but I wish to be able to change the stored procedure called (and its parameters) based on input from the user.

Yet, I keep getting errors like this:
---------------------------
Error
---------------------------
The following error(s) have occured:

Memo6: Could not convert variant of type (Null) into type (Double)

Unknown variable or datafield: rep008."HwId"

Unknown variable or datafield: rep008."SrchKey"

Unknown variable or datafield: rep008."SysTm"

---------------------------

Where rep008 is the name of the stored procedure and ."X" are of course values returned by this stored procedure.

I am unable to find some specifics on how this is done entirely from code.

Leave a Comment