删除VB6

编程入门 行业动态 更新时间:2024-10-22 15:29:10
本文介绍了删除VB6-isms,我被卡住了的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我目前正在开发一个VB.NET项目,该项目已经花费了相当多的时间。 过去它已经开发出了很多兼容性VB6函数 和 常量,例如Left(),LCase()和vbCr 虽然目前无法移植到C#,但我试图删除这些 函数和常量的使用。 但是ares a为了简单起见,一些代码说: myString2 =替换(myString,vbCr,vbCrLf) 到目前为止,我已将此转换为: myString2 = myString.Replace(vbCr,Environment.NewLine) 但是我该用什么代替vbCr? 问候, 彼得

Hi, I am currently working on a VB.NET project that has been going for quite a while. In the past it has been developed with a lot of compatibility VB6 functions and constants, e.g Left(), LCase() and vbCr Whilst not currently able to port to C# I am trying to remove usage of these functions and constants. However theres a bit of code that for simplicities sake says: myString2 = Replace(myString, vbCr, vbCrLf) So far I have converted this to: myString2 = myString.Replace(vbCr, Environment.NewLine) However what do I replace vbCr with? Regards, Peter

推荐答案

" Peter Row" < fuck.off@bastard_spammers> schrieb: "Peter Row" <fuck.off@bastard_spammers> schrieb: 我目前正在开发一个相当长的VB.NET项目。过去它已经开发了很多兼容性VB6 函数和常量,例如Left(),LCase()和vbCr 这些方法是/不是/兼容库的一部分。 myString2 = myString.Replace(vbCr,Environment.NewLine) 然而我该用什么代替vbCr? I am currently working on a VB.NET project that has been going for quite a while. In the past it has been developed with a lot of compatibility VB6 functions and constants, e.g Left(), LCase() and vbCr These methods are /not/ part of the compatibility library. myString2 = myString.Replace(vbCr, Environment.NewLine) However what do I replace vbCr with?

我更喜欢''ControlChars.Cr'',这是一个VB.NET功能。 - MS Herfried K. Wagner MVP< URL:http://dotnet.mvps/> VB< URL:http://classicvb/petition/>

VB6字符串函数很快就会消失吗?我仍然发现自己使用 因为vbCr比ControlChars.Cr更短更容易。 " Herfried K. Wagner [MVP]" <喜*************** @ gmx.at>在消息中写道 news:uu ************** @ tk2msftngp13.phx.gbl ... Are the VB6 string functions going away soon? I still find myself using them because vbCr is much shorter and easier then ControlChars.Cr. "Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message news:uu**************@tk2msftngp13.phx.gbl... " Peter Row" < fuck.off@bastard_spammers> schrieb: "Peter Row" <fuck.off@bastard_spammers> schrieb: 我目前正在开发一个相当长的VB.NET项目。过去它已经开发了很多兼容性VB6 函数和常量,例如Left(),LCase()和vbCr I am currently working on a VB.NET project that has been going for quite a while. In the past it has been developed with a lot of compatibility VB6 functions and constants, e.g Left(), LCase() and vbCr

这些方法是/不是/兼容库的一部分。

These methods are /not/ part of the compatibility library.

myString2 = myString.Replace(vbCr,Environment.NewLine) 但是我用什么替换vbCr? myString2 = myString.Replace(vbCr, Environment.NewLine) However what do I replace vbCr with?

我更喜欢''ControlChars.Cr'',这是一个VB.NET功能。 - MS Herfried K. Wagner MVP< URL:http:// dotnet。 mvps/> VB< URL:http://classicvb/petition/>

I prefer ''ControlChars.Cr'', which is a VB.NET feature. -- M S Herfried K. Wagner M V P <URL:dotnet.mvps/> V B <URL:classicvb/petition/>

Terry Olsen写道: Terry Olsen wrote: VB6字符串函数很快就会消失吗?我仍然发现自己用使用它们因为vbCr比ControlChars.Cr更短更容易。 Are the VB6 string functions going away soon? I still find myself using them because vbCr is much shorter and easier then ControlChars.Cr.

做一个进口Microsoft.VisualBasic.ControlChars你可以使用只是 Cr,甚至更短! :) - Larry Lard 回复团体请

Do an Imports Microsoft.VisualBasic.ControlChars and you can use just Cr, which is even shorter! :) -- Larry Lard Replies to group please

更多推荐

删除VB6

本文发布于:2023-11-23 18:38:52,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1622488.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!