首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > VB >

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

2012-07-25 
怎么更改指定文本位置修改的代码?比如说我有一个文本,我想改变倒数第三行的数字“1280”改成“1366”倒数第二

怎么更改指定文本位置修改的代码?
比如说我有一个文本,我想改变倒数第三行的数字“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") 

热点排行