Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is this a caption bug?
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00928904
Message ID:
00928913
Views:
24
>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) &&Error
>_screen.ActiveForm.Caption = SPACE(255) &&No Error
>
>
>
>>while assign values to Form caption as follows:
>>
>>
>>lparameters a, b && a = subkey passed, b=title
>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform