Help with query strings and tilde variables in PDOXWIN

Help with query strings and tilde variables in PDOXWIN

Post by Miguel Rodriguez Medi » Tue, 31 Jan 1995 22:38:29



Hello,

I would appreciate any help about query strings and tilde variables in paradox
for windows (v. 5.0)

I wonder if the is any way to write the following query as a query string:

myQBE = Query

c:\station.db | ID      | LAT                      |  LON                    |
                     | _id    | Check >=~a,<=~b  | Check >=~c,<=~d  |

c:\hydro.db  | ID      | DEPTH   | PO4P    |  TOTP  |
                    | _id    |  Check    |  Check  | Check  |

ENDQUERY

I thank you in advance.

Miguel Rodriguez  Medina

 
 
 

Help with query strings and tilde variables in PDOXWIN

Post by Dana Kaufm » Thu, 02 Feb 1995 09:09:46



(Miguel Rodriguez Medina) writes:

>Hello,

>I would appreciate any help about query strings and tilde variables in
paradox
>for windows (v. 5.0)

>I wonder if the is any way to write the following query as a query
string:

>myQBE = Query

>c:\station.db | ID      | LAT                      |  LON              
      |
>                     | _id    | Check >=~a,<=~b  | Check >=~c,<=~d  |

>c:\hydro.db  | ID      | DEPTH   | PO4P    |  TOTP  |
>                    | _id    |  Check    |  Check  | Check  |

>ENDQUERY

>I thank you in advance.

>Miguel Rodriguez  Medina


Save this query and look at the file it creates with a text editor.  
Copy it into you objectpal code.  Hope this is what you needed to know.
--

Dana Scott Kaufman

----------------------------------------------------------------------
DDDDD    SSSSSS  K    K              
D    D   S       K   K
D     D  S       K  K
D     D  SSSSSS  KKK     Technologies Inc.
D     D       S  K  K
D    D        S  K   K   Excellence in Paradox
DDDDD    SSSSSS  K    K      Developement
-----------------------------------------------------------------------

CompuServe: 75240,1376
Delphi:     dsktech
See the "DSK Technologies Support" Area in the Paradox forum
  on Delphi (GO CUS 320)

 
 
 

Help with query strings and tilde variables in PDOXWIN

Post by Andreas Rotterd » Wed, 01 Feb 1995 19:34:55



Quote:>Hello,

>I would appreciate any help about query strings and tilde variables in paradox
>for windows (v. 5.0)

>I wonder if the is any way to write the following query as a query string:

>myQBE = Query

>c:\station.db | ID      | LAT                      |  LON                    |
>                     | _id    | Check >=~a,<=~b  | Check >=~c,<=~d  |

>c:\hydro.db  | ID      | DEPTH   | PO4P    |  TOTP  |
>                    | _id    |  Check    |  Check  | Check  |

>ENDQUERY

>I thank you in advance.

>Miguel Rodriguez  Medina

strMyQBE =
"Query\n"+
"\n"+
"c:\\station.db | ID  | LAT                                  | LON                                  |\n"+
"               | _id | Check >="+String(a)+",<="+String(b)+"| Check >="+String(c)+",<="+String(d)+"|\n"+
"\n"+
"c:\\hydro.db  | ID  | DEPTH | PO4P  | TOTP  |\n"+
"              | _id | Check | Check | Check |\n"+
"\n"+
"ENDQUERY"

Don't forget the double "\\" in the table names and the blank lines: "\n"

/*
 * Andreas Rotterdam
 * Westfaelische Wilhelms-Universitaet Muenster
 * Institut fuer Agrarinformatik                Tel: 02 51/29 75 66


 */

 
 
 

1. Tilde variable in query HELP

Hello all,
Thanks very much for your response, it helped me on the right track.

In another case the variable itself comes from a table.
So when the user is interacting with the data through dialog
boxes the variable he choose will be stored in a table.

It's like this:    (paradox 7 for win95/NT)
empTC.open(Table)
Var1=empTC.Field
empTC.close

So Table contains the value of the variable (Var1) that actually must be
searched for in another table (Table2).

Query
Table2  |  Field2        |
        |  Check  ~Var1   |

The solution mentioned above won't work in this case.
I hope you can help me with this one
Thanks in advance,
Marlon

Sent via Deja.com http://www.deja.com/
Before you buy.

2. Physical Security for Data model

3. Using Tilde variable in query HELP

4. Dynamic Triggers IN SP to Work with all tables e.t.c

5. Tilde variable query advice?

6. Northern California Contract Opportunities

7. ~Tilde Variables in Queries

8. >>> Mysterious UPDATE Trigger behavior!!! <<<

9. Tilde variable & Query ReadFromFile

10. Query readFromFile and tilde variables

11. Date Tilde Variable in Query

12. Using Tilde (~) variable in query

13. tilde variable in a query