读书人

如何更改指定文本位置修改的代码

发布时间: 2012-07-25 09:43:06 作者: rapoo

怎么更改指定文本位置修改的代码?
比如说我有一个文本,我想改变倒数第三行的数字“1280”改成“1366”倒数第二行的“800”改成“768”。
要如何写代码?

文本内容如下:

[Mode0]
width=640
height=480
BufferBit=1

[Mode1]
width=800
height=600
BufferBit=1

[Mode2]
width=1024
height=768
BufferBit=1

[Mode3]
width=960
height=600
BufferBit=1

[Mode4]
width=1280
height=800
BufferBit=1

[Mode5]
width=640
height=480
BufferBit=0

[Mode6]
width=800
height=600
BufferBit=0

[Mode7]
width=1024
height=768
BufferBit=0

[Mode8]
width=960
height=600
BufferBit=0

[Mode9]
width=1280
height=800
BufferBit=0

[解决办法]
这是标准的INI,用这个模块就可以改了:

http://www.m5home.com/bbs/thread-452-1-1.html

然后用这个代码:

VB code
call SetIniS("Mode9","width","1366")call SetIniS("Mode9","height","768") 

读书人网 >VB

热点推荐