我有大段文本。要怎么样赋值给一个字符串变量呢?不要说一点点的累加哦。不知道有什么简便方法,谢谢啦。

解决方案 »

  1.   

    我有个不是办法的办法,即不赋值给字符串变量,直接用一个textbox装载文本,如果不想让用户看到,把他藏起来就是了
      

  2.   

    Private Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" (Destination As Any, Source As Any, ByVal Length As Long)
      

  3.   

    调用示例:
    Option Explicit
    Private Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" (Destination As Any, Source As Any, ByVal Length As Long)Private Sub Command1_Click()
        Dim strDest(10) As Byte
        Dim strSource(20) As Byte
        Dim i As Integer
        Dim strTemp As String
        
        For i = 0 To 20
            strSource(i) = i
        Next
        
        CopyMemory strDest(0), strSource(0), 10
        
        For i = 0 To 10
            strTemp = strTemp & strDest(i)
        Next
        MsgBox strTemp
    End Sub
      

  4.   

    Open 文件 For Input As #1
    S = StrConv(InputB(LOF(1), #1), vbUnicode)
    Close #1
      

  5.   

    是这样的。我是想写一个dll,在asp里用,目的是要把一段文本隐藏起来。
    其实也没多少,也就几十行了。
    放在资源中可以???如果是放在文件中,那就没有起到蕴藏的目的了。
    还有什么好方法啊。各位。