|
| OLD VDB 5.x code |
 |
Sat, 08 Dec 2007 13:08:29 -050 |
What is the simplest method for converting visual dbase 5.x code to Dbase plus?
Example : pawnsetu.prg (file is attached)
|
| Post Reply
|
| Re: OLD VDB 5.x code |
 |
Sun, 9 Dec 2007 00:54:21 -0500 |
In article <jC6CWVcOIHA.1124@news-server>, jlakeg@yahoo.com says...
> What is the simplest method for converting visual dbase 5.x code to Dbase
plus?
> Example : pawnsetu.prg (file is attached)
>
>
> [application/octet-stream]
>
Jim,
SET BELL OFF
SET CATALOG TO
SET CATALOG OFF
SET CONFIRM OFF
SET CONSOLE OFF
SET COVERAGE OFF
SET CUAENTER OFF
SET DELETED ON
*SET DEVELOPMENT OFF
SET ENCRYPTION OFF
SET ERROR TO
SET ESCAPE OFF
SET EXACT ON
SET EXCLUSIVE OFF
SET FULLPATH OFF
SET HEADINGS OFF
SET NEAR OFF
SET SAFETY OFF
SET TALK OFF
SET TITLE OFF
A few of these are obsolete with dB+ (ex: CATALOG) and some default to
OFF so you don't really need to set them explictly (ex: COVERAGE).
Beyond that, the SET commands generally are the same and don't need to
be converted. You do, however, have to decide if you need them or not.
If you intend to convert completely to OOP, then some will not be needed
(ex: HEADINGS).
As for converting your forms, reports and other programs... there was a
converter that was made to convert the Crystal Reports to classes, but
normally you need to clean-up the code it produces since no converter
can do a perfect job of converting between such different products. For
your programs that are not "visual" (that do mere calculations) you
can
often reuse them. For your forms, which are visual, you might be able to
reuse them but likely you will want to change them to be 100% OOP (by
using the data objects like DATABASE, QUERY, and maybe SESSION. No
convertor exists for such a task.
--
Geoff Wass [dBVIPS]
Montréal, Québec, Canada
.|.|.| dBASE info at http://geocities.com/geoff_wass |.|.|.
.|.|.| ---------------------------------------------------------- |.|.|.
|
| Post Reply
|
| Re: OLD VDB 5.x code |
 |
Mon, 10 Dec 2007 08:34:54 -080 |
jim wrote:
> What is the simplest method for converting visual dbase 5.x code to Dbase
plus?
> Example : pawnsetu.prg (file is attached)
>
In addition to everything else, take a look in the help for dBASE Plus.
If you just bring up the main help screen, then go to the "Contents"
tab, there is an entry that says "Converting prior version dBASE
Applications to dBASE Plus" ... that will help some.
Ken
--
/(Opinions expressed are purely my own, not those of dataBased
Intelligence, Inc.)/
*Ken Mayer* [dBVIPS]
/Golden Stag Productions/
dBASE at goldenstag dot net
http://www.goldenstag.net/GSP
http://www.goldenstag.net/dbase/dBASEBooks.htm
|
| Post Reply
|
| Re: OLD VDB 5.x code |
 |
Mon, 10 Dec 2007 11:38:15 -050 |
Thank You for all of your help. I am sure I will have more? Have a great day
Jim
Geoff Wass [dBVIPS] Wrote:
> In article <jC6CWVcOIHA.1124@news-server>, jlakeg@yahoo.com says...
> > What is the simplest method for converting visual dbase 5.x code to
Dbase plus?
> > Example : pawnsetu.prg (file is attached)
> >
> >
> > [application/octet-stream]
> >
>
> Jim,
>
> SET BELL OFF
> SET CATALOG TO
> SET CATALOG OFF
> SET CONFIRM OFF
> SET CONSOLE OFF
> SET COVERAGE OFF
> SET CUAENTER OFF
> SET DELETED ON
> *SET DEVELOPMENT OFF
> SET ENCRYPTION OFF
> SET ERROR TO
> SET ESCAPE OFF
> SET EXACT ON
> SET EXCLUSIVE OFF
> SET FULLPATH OFF
> SET HEADINGS OFF
> SET NEAR OFF
> SET SAFETY OFF
> SET TALK OFF
> SET TITLE OFF
>
> A few of these are obsolete with dB+ (ex: CATALOG) and some default to
> OFF so you don't really need to set them explictly (ex: COVERAGE).
> Beyond that, the SET commands generally are the same and don't need to
> be converted. You do, however, have to decide if you need them or not.
> If you intend to convert completely to OOP, then some will not be needed
> (ex: HEADINGS).
>
> As for converting your forms, reports and other programs... there was a
> converter that was made to convert the Crystal Reports to classes, but
> normally you need to clean-up the code it produces since no converter
> can do a perfect job of converting between such different products. For
> your programs that are not "visual" (that do mere calculations)
you can
> often reuse them. For your forms, which are visual, you might be able to
> reuse them but likely you will want to change them to be 100% OOP (by
> using the data objects like DATABASE, QUERY, and maybe SESSION. No
> convertor exists for such a task.
>
> --
> Geoff Wass [dBVIPS]
> Montréal, Québec, Canada
>
> .|.|.| dBASE info at http://geocities.com/geoff_wass |.|.|.
> .|.|.| ---------------------------------------------------------- |.|.|.
> .|.|.| IT Consultant http://Geoff_Wass.com |.|.|.
|
| Post Reply
|
| Re: OLD VDB 5.x code |
 |
Tue, 11 Dec 2007 01:10:28 -050 |
In article <te22Ps0OIHA.1124@news-server>, jlakeg@yahoo.com says...
> Thank You for all of your help. I am sure I will have more? Have a great
day
>
> Jim
>
Jim,
No problem. Feel free to ask whenever you have a question. That's what
these groups are for.
--
Geoff Wass [dBVIPS]
Montréal, Québec, Canada
.|.|.| dBASE info at http://geocities.com/geoff_wass |.|.|.
.|.|.| ---------------------------------------------------------- |.|.|.
|
| Post Reply
|
|
|
|
|
|
|
|
|
|