Just define relevant variables in the shader with suitable default values in the usual way and pass the values to the shader using the commands
set effect constant vector or
set effect constant float as required.
For example, in the shader you might have:
float3 objectPosition = {0.0, 0.0, 0.0};
and in your main DBPro program loop:
posX# = object position X(objectId)
posY# = object position Y(objectId)
posZ# = object position Z(objectId)
set vector4 vectorId, posX#, posY#, posZ#, 0.0 ` need four entries even if you only use three
set effect constant vector effectId, "objectPosition", vectorId
The above assumes that vectorId, objectId, etc, have suitable values and that the vector has been defined.