Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

help with error - Illegal field length..detected on field 1

6 views
Skip to first unread message

SHAY

unread,
Oct 8, 2008, 3:38:10 PM10/8/08
to
Hello EveryOne ,
I am using Foxpro 2.6 and i am getting the error "Illegal field length
..detected on field 1" ... following are the few lines of codes which is
generating the error .

Line 1 - temp2 = uniqtemp()
Line 2 - SELE 0
Line 3 - CREA DBF (temp2) (field_name C (10), field_type C (1), field_len N
(3))
Line 4 - APPE FROM (temp1)
Line 5 - USE
Line 6 - temp3 = uniqtemp()
Line 7 - SELE 0
Line 8 - CREA (temp3) FROM (temp2)

Line 8 is throwing the error & i have no clue why .. Can someone please help
me with it ... Thanks a lot for you time & help in advance

Dan Freeman

unread,
Oct 8, 2008, 5:19:49 PM10/8/08
to
I think you paraphrase too much.

You appear to be relying on CREATE ... STRUCTURE EXTENDED (why?) but your
input table is missing the field_dec field and the code you posted is
missing STRU EXTE.

For your error message, insert a BROWSE after the APPEND FROM that populates
temp2. One or more field_len fields will either have 0 or a value too large
for that data type.

Dan

0 new messages