Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is this a caption bug?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00928904
Message ID:
00928913
Vues:
23
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform