>what's the actual value it's trying to assign?
>
>messagebox(.q) --might help
>
>Update
>I did a quick test
>
>
>_screen.ActiveForm.Caption = SPACE(256)
>_screen.ActiveForm.Caption = SPACE(255)
>
>
>
>>while assign values to Form caption as follows:
>>
>>
>>lparameters a, b
>>with thisform
>> .q = alltrim(b)
>> .caption = .caption + " vendor "
>> .caption = .caption + .q
>>
>>
>>
>>I get following error:
>>
>>
>>Error with FRM_SUBPAYSEL - Caption: String too long to fit
>>
>>
>>Does Form caption have limits?
>>
>>thanks
>>Nick
Just a title containing characters, but it may have spaces. I probably need to do alltrim. There must also be a way to check if caption is <= 255 before setting to caption.
nick