VBA到VB.NET的转换 [英] VBA to VB.NET conversion

查看:460
本文介绍了VBA到VB.NET的转换的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好!

我有一些VBA代码(访问模块),我想将这些VBA代码转换为VB.NET?!

i have some of VBA Codes (Access Modules) and i want to convert these VBA codes to VB.NET ?!

任何建议!!解决这个问题!!

any suggestions !! to solve this problem !!

我必须从头开始为VB.NET编译器制作VBA!这个问题面临着我,我期待着解决它!

must i make a VBA to VB.NET compiler from scratch !!! this problem faced me and i'm looking forward to solve it !!

提前谢谢

推荐答案

VBA是一种与.NET完全不同的语言......很好......一个VBA到VB.NET的翻译器将会有很多工作;这是一个巨大的事情,它可以更快地在VB.NET中重写VBA代码。\

Hi, VBA is a completely different language to .NET ...well sort of... a VBA to VB.NET translator would be a lot of work; a massive undertaking that it would be quicker re-writing the VBA code in VB.NET.\

现在现在...... VB.NET有点向后兼容VB(和VBA是VB的一个子集)所以根据代码和你的运气你可能会逃脱它但你不会赢得任何最好的代码奖.... 

Now now now... VB.NET is a bit backwards compatible with VB (and VBA is a subset of VB) so depending on the code and your luck you might get away with it BUT you won't win any best code prizes.... 

发布一个需要转换的代码示例,让我们看看可能涉及的内容。代码是否访问数据库表? ADO或DAO?

Post an example of the code that needs to be converted and lets see what might be involved. Does the code access the database tables? ADO or DAO?


这篇关于VBA到VB.NET的转换的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆