how to assign the output of the interective script to the variable

Hi,
I work in ksh88.
I have an interective script which prompts the user for the input and returns numeric value depending on the input provided. I need to call this script inside another script and then assign the resulting output the the variable.

The call like that A=`my script` obviously does not work since variable "A" captures the prompts of my interective script.

Is there a way to assign the resulting value of the interective script to the variable? Maybe somebody handled similar scripting situations before.
Thanks a lot in advance for all the help and advice -A

Can you show me what the exact output of that script is?

The final output of the script is just a number, for example: 90232

# cat script1
echo 90232

# cat script0
a=`./script1`
echo $a

# sh -x script0
+ ./script1
+ a=90232
+ echo 90232
90232

thanks, but in your examples script is not interactive...

man ksh

search for 'read \['

host-2:~ $ cat test.sh 
#!/bin/ksh

read TEST
echo $TEST
host-2:~ $ cat test2.sh 
#!/bin/ksh

A=`test.sh`
B=$A
echo B=$B

host-2:~ $ ./test2.sh 
WAIT FOR IT
B=WAIT FOR IT

hth,
dv

Thanks a lot!