Home > Archive > dBASE Questions and Answers > October 2006 > How can I open a table named as the result of an expression









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author How can I open a table named as the result of an expression
Juan Carlos Reguera

2006-10-25, 7:34 am

How can I open a table named as the result of an expression? . (ej. table="DE"+"TABLE"+"01")
Roland Wingerter

2006-10-25, 7:34 am

Juan Carlos Reguera wrote

> How can I open a table named as the result of an expression? . (ej.
> table="DE"+"TABLE"+"01")

-------
mytable="DE"+"TABLE"+"01"

use (mytable)

or

select * from &mytable

or

q1 = new query()
q1.sql := [select * from ] + mytable
q1.active := true

Roland


Juan Carlos Reguera

2006-10-25, 7:34 am

Very, very simple. But you have resolved an important blocking trouble in my job about working with tables with sequences of names.


THANK YOU VERY MUCH.

Roland Wingerter Wrote:

> Juan Carlos Reguera wrote
> -------
> mytable="DE"+"TABLE"+"01"
>
> use (mytable)
>
> or
>
> select * from &mytable
>
> or
>
> q1 = new query()
> q1.sql := [select * from ] + mytable
> q1.active := true
>
> Roland
>
>


Roland Wingerter

2006-10-25, 7:34 am

Juan Carlos Reguera wrote

>
> THANK YOU VERY MUCH.

------
Glad to help.

Roland


Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com