Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Variable name for output file
Message
From
24/08/1999 12:05:40
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
24/08/1999 10:08:00
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00256539
Message ID:
00257127
Views:
22
>Cetin-
>When I run the "lcvar = eval(file.field)" line, an error comes back stating that "variable not found". Any ideas what is creating this message?
Paul,
In my original message it was :
lcThisASCIIName = eval(field(1))
field(1) would return something like "First_name" assuming first field is First_name. Eval(field(1)) would return the value stored (interpreted as eval("First_name")) ie: "Paul".
In the same manner if you use eval(file.field) then FP tries to match File.field value with a variablename (seeks a variable named "Paul"). If you're using fiel.field, do not use eval. ie:

You have table named "myTable" and its first field is first_name. Also suppose current record first_name is "Paul".

eval(field(1))
myTable.First_name

would both return "Paul".
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform