Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL Syntax
Message
De
26/11/1999 11:36:02
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Divers
Thread ID:
00295741
Message ID:
00295774
Vues:
18
>I'm new to VFP and am attempting to utilize the SQL INSERT INTO command but the help files provide minimal information. Is it possible to use table values or object values in the WITH clause? When I tried this I got a SYNTAX error. Is there something else I'm missing?

Both are allowed in the VALUE clause, with some things to remember:

(1) table values - you can only 'see' and reference tables/cursors/aliases in use in the current datasession. If the reference is open in another datasession but not this one, it will smoke.

(2) object values - the object reference must be in scope and correct - this and thisform can be dangerous if you aren't in a place where the object reference is in sight (like in another form, or in a class instance inside a form!) or the object reference is not in scope (ie a LOCAL value defined outside the current procedure/method and not passed down to it.)

(3) if an object MyRef has a property MyProp, and you have a table/cursor view referenced by the alias MyRef with a field MyProp, VFP will probably get confused resolving MyRef.MyProp
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform