首页 | 本学科首页   官方微博 | 高级检索  
     检索      

Visual Basic中随机文件汉字记录的读取
引用本文:陆竞.Visual Basic中随机文件汉字记录的读取[J].杭州师范学院学报(自然科学版),2006,5(6):448-450.
作者姓名:陆竞
作者单位:杭州师范学院,数学系,浙江,杭州,310036
摘    要:Visual basic随机文件记录含有汉字时,会发生读出记录不全的错误.究其原因,即记录的字段必须为定长的字符串,当写入或读出记录的长度少于定长的字符串长度时,会用空白来填充记录中后面的空间,用VB的内部函数RTrim或Trim都不能除掉这个空白.在此通过调用一个自定义函数,给出解决这一问题的方法.

关 键 词:随机文件  汉字  记录  读取
文章编号:1008-9403(2006)06-0448-03
修稿时间:2006年6月20日

The Reading Approach of Chinese Characters' Recorder in Random File Involved in VB
LU Jing.The Reading Approach of Chinese Characters'''' Recorder in Random File Involved in VB[J].Journal of Hangzhou Teachers College(Natural Science),2006,5(6):448-450.
Authors:LU Jing
Abstract:When random files in Visual Basic contain Chinese characters,mistake named recorder read partially would(occur.) The reason for that can be attributed to the fact that the recorded field must be a fixed-length string,so when the length of the(recorder) in read-in or read-out process is less,further space left in the recorder will be fulfilled by blank content,VB's intrinsic function Rtrim or Trim both are unable to eliminate the blank.Therefore,this essay will introduce a method of transfering a self-defined function to cope with the problem.
Keywords:random files  Chinese characters  recorder  read-out
本文献已被 CNKI 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号