当我发送短信显示错误时,该字段太小,无法接受数据量 [英] when i send sms shows error the field is too small to accept the amount of data

查看:174
本文介绍了当我发送短信显示错误时,该字段太小,无法接受数据量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个短信应用程序。



在该应用程序中,当我点击该按钮时,我有一个名为Send SMS的按钮,从数据库中所有Faculties获得短信。





当我发送短信错误时显示如下;



该字段太小而无法接受大量数据。



MS Access数据库中的数据库设计如下。



字段名称数据类型



名称文字

Mobileno文本
消息文本



消息字段大小最大限制为MS Access数据库中的255.



假设在我的applciation消息字段大小扩展到255个字符,我怎么能解决上面的问题(该字段太小,无法接受大量的数据。)。





请帮帮我。



问候,

Narasiman P.

I have created one SMS Applciation.

In that application, i have one button called Send SMS when i click that button, from the database all Faculties gets the SMS.


When i send SMS error shows as follows;

the field is too small to accept the amount of data.

Database Design as follows in MS Access Database.

Field Name Datatype

Name Text
Mobileno Text
Message Text

In that Message Field Size is MAXIMUM Limit is 255 in MS Access Database.

Suppose in my applciation Message Field Size is extend to 255 characters, how can i able to solve that above problem (the field is too small to accept the amount of data.).


Please help me.

Regards,
Narasiman P.

推荐答案

使字段变大,或缩小文本。如果您已设置字段大小的限制,则不能超过该限制。更好的解决方案是使字段变量大小,然后验证发送代码中的消息长度,将其拆分为较小的片段以发送SMS消息。
Make the field bigger, or the text smaller. If you have set a limit for the size of a field then you cannot exceed that limit. A better solution would be to make the field variable size, and then validate the message length in your sending code to split it into smaller pieces to send the SMS messages.


这篇关于当我发送短信显示错误时,该字段太小,无法接受数据量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆