Foxpro 2.6基于DOS的应用程序到C#或VB转换帮助 [英] Foxpro 2.6 dos based application to C# or VB Conversion Help

查看:35
本文介绍了Foxpro 2.6基于DOS的应用程序到C#或VB转换帮助的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Haiii all



我有一个基于foxpro 2.6 dos的应用程序,这个应用程序我想转换成C#或VB.Net,所以请帮帮我们。





Haiii all

I have a foxpro 2.6 dos based application, this application i want to convert into C# or VB.Net, so please help me out guys.


procedure save_clas_det

if(empty(tcur_clas))

  do mesg_wind with 'Incomplete Details . Please Check......'
  
  return

endif


decl temp_arr[1]

if(told_or_new = 1)

  sele 5
  seek class_arr[tclass_no,2]
  
  trec_no = recno()

  
  temp_arr = 0
  
  select count(*) from &tcl_det_file ;
    where name = tcur_clas .and. recno() # trec_no ;
    into array temp_arr


  if(temp_arr[1] > 0)

    do mesg_wind with 'Duplicate Entry . Please Check......'
    
    return

  endif
  
else

  temp_arr = 0

  select count(*) from &tcl_det_file ;
    where name = tcur_clas ;
    into array temp_arr
    

  if(temp_arr[1] > 0)

    do mesg_wind with 'Duplicate Entry . Please Check......'
    
    return

  endif
  

  sele 5
  append blank
 

  temp_arr = 0

  select max(class) from &tcl_det_file ;
    into array temp_arr
    
  repl class with temp_arr[1] + 1
  
endif

repl name with tcur_clas

if(told_or_new = 1)

  if(tcur_clas # substr(class_arr[tclass_no,1],3))

    class_arr[tclass_no,1] = space(2) + tcur_clas
    
    show gets
    
  endif

else

  do get_cl_det with .f.

  tcur_clas = space(tclas_name_len)
  
  show gets
  
endif

do mesg_wind with 'Class Details Saved......'







上面是foxpro的代码,我想要'复制条目'我想要的功能,请看代码并告诉转换,ThnQ



ThnQ




The above is the code of foxpro, there i want the 'Duplicate entry' that functionality i want, plz see the code and tell the conversion, ThnQ

ThnQ

推荐答案

您基本上是从头开始编写新应用程序。没有转换路径,FoxPro已经死了。所以,我们无能为力,你只需要开始编写一个C#或VB.NET应用程序来完成Fox Pro应用程序的功能。
You're basically writing a new app from scratch. There is no conversion path, FoxPro is long dead. So, there's nothing we can do for you, you just need to start writing a C# or VB.NET app that does what the Fox Pro app did.


我不认为有任何转换那些可以帮助你的工具。认为你必须逐行翻译代码:)
I dont think there is any convertion tools that woul dhelp you with that. Think youll have to translate the code line by line :)


好吧,看看Christian Graus和Kenneth Haugland的答案以及你对它们的回答我可以看到你需要学习基础知识任何这些语言都可以开始。



这里有两种选择:



如果你有代码然后你只需要学习翻译它。



如果你没有代码那么你将不得不想象它是如何工作的并且进行逆向工程让它按预期工作。



作为你以前任何一个你必须面对的场景,我会开始看你需要的控制并开始看CP的文章区域(参见文章(刚好在bob下)和章节)以找到有关如何使它们工作的信息。



然后根据您的编程技巧和背景,您需要获得一本书来学习基础知识。



我会尝试从那开始,当你被困时来这里问一个具体的问题(不要问我们如何制作一个完整的应用程序。因为我们没有足够的信息,所以我们的目标也不是免费制作完整的系统。



尝试这样做,然后再回答具体问题。永远不要在没有做出正确设计的情况下按键。



祝你好运!
Well, seeing the answers from Christian Graus and from Kenneth Haugland and your answers to them I can see you need to learn the basics of any of those languages to start with.

You have two options here:

If you have the code then you will need only to learn to translate it.

If you don't have the code then you will have to imagine how it works and make reverse engineering to make it work as expected.

Being any of those previous scenarios the one you have to face, then I would start looking at the controls you will need and start looking at the articles area of CP (see "articles" (just under bob) and "chapters and sections") to find out information on how to make them work.

Then depending on your programming skills and background you will need to get a book to learn the basics.

I would try to start with that and when you get stucked come here to ask a specific question (don't ask us how to make an entire app. because we don't have enough information on that neither it's our aim to make complete systems for free).

Try to do it and then come back with specific questions. Never, ever press a key without having made a proper design.

Good luck!


这篇关于Foxpro 2.6基于DOS的应用程序到C#或VB转换帮助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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