Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...Dudes! Great site. You've saved me hours and hours...and I have just started using your site. I've already passed your URL onto my entire company. Keep up the awesome work. Bingo-bango..."

Geography

Where in the world do Tek-Tips members come from?
huzefaid (Programmer)
28 Jul 11 9:06
we have a project to convert DOS Foxpro to windows application
we are struggling to find select statement in .prg file
there is only table name, index and lots of DO,SEEK, READ AND DO .. WHILE LOOP

we are able to get table name but how to get relationship between 2 or more tables in complex reports

for data entry we have already created screen.
we are struck in report part. please help

how can i get or extract select statement from .PRG file so that we can reconstruct it in Sybase Powerbuilder Datawindow
jrbbldr (Programmer)
28 Jul 11 10:13
we have a project to convert DOS Foxpro to windows application

The best conversion path from FPD to a Windows application would be to migrate to Visual Foxpro 9.   It would enable you to use a large portion of the existing code 'as is' and will result in a powerful, 21st century appearing GUI-centric Windows application which can 'grow' in many directions.

In your FPD PRG file the original developer may very likely did not use a SELECT statement since Foxpro does not require a SQL SELECT to acquire its data from its data tables.  A SQL SELECT can be used, but quite often, especially in older applications, it was not.

Once a particular data table is in USE and its 'workspace' has been SELECTED, the application only needs to go to the appropriate record via a GO <record number>, a LOCATE FOR <some criteria>, or a SEEK <some criteria> and then the desired record and its field values are immediately available to use for Read/Write operations.  Also separate data tables may be truly RELATED and used as 'aggregates' via Index relations.

In order to gain a better understanding of Foxpro, you might want to look over the free on-line Visual Foxpro tutorial videos at:
    http://www.garfieldhudson.com/FreeVideos.aspx
Those videos are about Visual Foxpro, but a good part of the information is the same for the non-Visual versions of Foxpro.

Of particular interest might be those videos related to:
   Navigating Records in a Table
   Deleting/Recalling Records
   Indexing Records
    and others related to data access

Good Luck,
JRB-Bldr
 
jrbbldr (Programmer)
28 Jul 11 10:29
Since your question is about application migration - you might also want to look over the migration discussion that is occurring at:  thread182-1656246: Code Migration Options

Good Luck,
JRB-Bldr
 

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close