Guidance
指路人
g.yi.org
Guidance Forums / Reginald Rexx / Text length limit in multi-line entry control

Register 
注册
Search 搜索
首页 
Home Home
Software
Upload

  
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. Text length limit in multi-line entry control
#13535
Posted by: Michael S 2011-10-24 16:33:06 Last edited by: Jeff Glatt 2012-01-25 05:24:38 (Total edited 1 time)
I'm running into a problem with the following code:

guisetctlvalue('trace_code')

where trace.code.0 is approx 415 lines. The code seems to fail after 408 lines inasmuch as the last 7 lines are never written to the entry control.
Message2.
#13536
Posted by: Jeff Glatt 2011-10-25 21:19:08
Try a "LIMITTEXT" message to set the amount of characters you need.
guisendmsg(myentry, "LIMITTEXT", 100000)
Message3. Thanks Jeff
#13537
Posted by: Michael S 2011-10-26 20:39:52
I put the code in my "post_create_window" procedures as

trace_code_limit = 100000
guisendmsg("trace_code", "LIMITTEXT", trace_code_limit)

That way, I can sum the amount of data being written and give an error message if the 100000 isn't enough (!)
Message4.
#13538
Posted by: Jeff Glatt 2011-10-27 05:18:45
Actually, you can just send another LIMITTEXT message to increase it.
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
¥289.00 ·
 
 
¥1,080.00 ·
 
 
¥1,380.00 ·
 
 
¥638.00 ·
 
 
¥1,290.00 ·
 
 
¥1,420.00 ·
© Sun 2024-11-24  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0