first. check in your data environment the parameters option:

1. data_type adBSTR
2. Host_data_type String (VT_BSTR)

second, check the code.. dataenvironment.command txt.text

it has to work.. let me know