Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

View a List of Tables . . .

Status
Not open for further replies.

Rick4077

Technical User
Oct 19, 2004
149
US
I have this in a small method in Paradox 8.

Code:
tblname = 	 	"Type the Table Name To Be Queried..." 
tblName.view	("Which Table?")

Is there a way to view a list of tables in a folder and select a table name to insert here?

Thanks . . . Rick
 
Rick,

I think the code below should suffice. I have tried it on version 8. I have commented the code to show what each line is doing. Feel free to strip the comments out when you paste into your application.

I hope that this helps.

Regards

Bystander
===========================================================
var
tblName String
tblView TableView
endVar

fileBrowserEx(tblName) ;calls up the Windows file browser,
;and waits for you to choose a
;Paradox table. variable tblName
;stores the table chosen

if isTable(tblName) then
tblView.open(tblName) ;open a Table window for the
;table name stored in the variable
endIf
 
That looks pretty kewl.

I'll try it and see what I get.

I didn't know about fileBrowserEx

Thanks . . . Rick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top