Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Naming tables at runtime
Message
From
17/12/2003 08:04:36
 
 
To
17/12/2003 07:19:41
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00859829
Message ID:
00859837
Views:
19
hi Paul

VFP use litteral naming on various command.
use () for force to eval a litteral expression,
but for the command clause you must use macro substitution.
cursorName = "myName"

SELECT someValue FROM someTable INTO CURSOR (m.cursorName)
SELECT someValue FROM someTable INTO TABLE (m.cursorName)

fieldName ="F1"
fieldType="C(10)"
CREATE CURSOR (m.cursorName) ((m.fieldName ) &fieldType)
VFP help have not information
for support/unsupport of expression/(expression)/macro.
You must lose your time to try and remember.

Fabio
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform