本人做的程序是把数组内容写到Memo中,数组上限是262144,测试时把整个数组的值显示到memo中,但是在2000中memo可以显示所有内容,在98中才显示约20000内容,少了一个数量级,请高手指点。

解决方案 »

  1.   

    在98下Memo不能存太多的内容,好像是不能超过1M
    2000下好像是2G,几乎没限制
      

  2.   

    我就是要262144呀,
    to madyak(无天) :那有什么类似的控件可以解决这个问题
      

  3.   

    你可以试试TRichEdit,它好像没那个限制!TRichEdit is a wrapper for a Windows rich text edit control.UnitComCtrlsDescriptionUse a TRichEdit object to put a standard Windows rich text edit control on a form. Rich text edit controls let the user enter text that includes variation in font attributes and paragraph formatting information.TRichEdit provides the properties and methods to enter and work with rich text. TRichEdit does not provide any user interface components to make these formatting options available to the user. Applications must implement the user interface components to surface the rich text capabilities of a TRichEdit object. To make this easier, a number of pre-defined standard actions operate on a rich edit control to perform common formatting tasks.TRichEdit publishes many of the properties inherited from TCustomRichEdit, but does not introduce any new behavior.Memo is a wrapper for a Windows multiline edit control.UnitStdCtrlsDescriptionUse TMemo to put a standard Windows multiline edit control on a form. Multiline edit boxes allow the user to enter more than one line of text. They are appropriate for representing lengthy information.TMemo implements the generic behavior introduced in TCustomMemo. TMemo publishes many of the properties inherited from TCustomMemo, but does not introduce any new behavior.Note: Under Win 9x, there is a limit of 64k of text for this control.
      

  4.   

    我是想把文件里面的数据像ultraedit那样输出,前面是地址,后面是数据,但是用richedit打开256K的文件,就死在那里,一直都没出来
      

  5.   

    TRichEdit 只能打开 64M 的内容.
    一般情况下.文档编写器,不是一次性将文件的所有内容加到到内存中的.是使用分页技术加载的.
      

  6.   

    ??to Maple119(枫叶):怎么实现分页加载
      

  7.   

    分页加载就相当于你将你要显示的内容按最多64M大小分页,即每页最大64M,然后每次读取一页到Trichedit中显示
      

  8.   

    98下MEMO不能超过64K,你用98的记事本和2000的记事本比较一下就知道了,
    建议用TRICHEDIT代替
      

  9.   

    to浪子:这个我知道,但是怎么跟滚动条联系起来,例如滚动条移到末尾是显示文件尾,而不是分页尾,请指点,本人刚接触delphi不久。