| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 909 人关注过本帖
标题:导入文本文件的问题!
只看楼主 加入收藏
zhang123
Rank: 1
等 级:新手上路
帖 子:22
专家分:0
注 册:2006-5-9
收藏
 问题点数:0 回复次数:1 
导入文本文件的问题!
1\导入的文本文件里的数据是用;或其他的符号时应该怎样写代码.
2\怎样判断一个字段里的内容含有的字符并转成另一个字符,如2006#03和2006@03这两种类型的数据改成2006-03并改变成是日期类型.
搜索更多相关主题的帖子: 文本文件 
2006-05-13 22:10
潇洒老乌龟
Rank: 5Rank: 5
等 级:贵宾
威 望:18
帖 子:407
专家分:0
注 册:2005-12-13
收藏
得分:0 

Description

Replaces a portion of one string with another.
ReplaceW A separate function provides an alternative syntax for DBCS environments.

Syntax

Replace ( string1, start, n, string2 )

ReplaceW ( string1, start, n, string2 )

Argument Description
string1 The string in which you want to replace characters with string2.
start A long whose value is the number of the first character you want replaced. (The first character in the string is number 1.)
n A long whose value is the number of characters you want to replace.
string2 The string that will replace characters in string1. The number of characters in string2 can be greater than, equal to, or less than the number of characters you are replacing.
Return value

String. Returns the string with the characters replaced if it succeeds and the empty string if it fails. If any argument's value is NULL, Replace returns NULL.

Usage

If the start position is beyond the end of the string, Replace appends string2 to string1. If there are fewer characters after the start position than specified in n, Replace replaces all the characters to the right of character start.
If n is zero, then, in effect, Replace inserts string2 into string1.


乌龟学堂http://www. 承接各种软件开发、系统集成、网络搭建。 QQ:124030710
2006-05-16 15:55
快速回复:导入文本文件的问题!
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.026687 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved