开发者

how to increase character limit for visual basic alert boxes

开发者 https://www.devze.com 2023-01-02 19:13 出处:网络
I have the following code: If Not strValidate =\"\" Then alert(\"The following information is required:\" + vbLf + strValidate)

I have the following code:

If Not strValidate ="" Then
    alert("The following information is required:" + vbLf + strValidate) 
    ValidateDocument = False
    Exit F开发者_如何学JAVAunction
End If

The variable "strValidate" contains a long number of characters, so when the alert box shows, it doesn't show the whole string, the remaining characters are cut off on the alert box.


I would suggest to write your own Messagebox with a Scrollable Label/Textbox. There are already many custom messageboxes on the internet, so you can pick one and customize them.

0

精彩评论

暂无评论...
验证码 换一张
取 消