Dear Duey,
I counted the characters in "Will thi", there are 8.
Perhaps your text is defaulting to 8 characters.
Try:
PUT temp.prc AS temp vp_choose_title TEXT 33
Randy Peterson
Duey Heffelfinger wrote:
> I'm having some trouble getting a variable back from a stored
> procedure and wonder if I'm doing something wrong or if someone has a
> work around. The following test procedure will not return the entire
> string to the variable.
>
> Example 1:
>
> *(temp.prc)
> CHOOSE vp_choose +
> FROM #LIST 'Will this go beyond 8 characters?' +
> AT CENTER CENTER +
> TITLE .vp_output_title
> RETURN .vp_choose
>
> Here's my put: PUT temp.prc AS temp vp_choose_title TEXT
> Here's my call: SET VAR vtemp TEXT = (CALL temp ("Make a choice"))
>
> vtemp returns: Will thi
>
> The only way it will work is to eliminate the vp_choose_title
> variable in the put statement and eliminate if from the choose in the
> procedure. Example 2
>
> *(temp.prc)
> CHOOSE vp_choose +
> FROM #LIST 'Will this go beyond 8 characters?' +
> AT CENTER CENTER
> RETURN .vp_choose
>
> Here's my put: PUT temp.prc AS temp
> Here's my call: SET VAR vtemp TEXT = (CALL temp ())
>
> vtemp returns: Will this go beyond 8 characters?
>
> I really need to send some variables to a procedure and get the full
> result. Any ideas and help would be appreciated.