Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Bug, problem or correct behavior?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01394775
Message ID:
01394836
Views:
37
Hi Luis,

Thanks a lot for your reply. We added one extra new field to the list of fields copied to array and this seemed to cure the problem we were having. I put this change in
TRY
  new code with one extra field
catch
  old code with the previous number of fields
endtry
so I hope the code would not break for the original structures.

Thanks again.



>Hi Naomy,
>I think this is a correct behavior, I think is doing an implicit TRANSFORM. If you don't want this to happen include a "Field List" like:
>
>APPEND FROM ARRAY arrayName FIELDS field1, field2, etc..,
>
>This should initialize the fields not included in the array with the value you expect. Other choice could be redimension the array to the
>(less number of fields).
>
>Hope this helps.
>
>LG
>
>
>
>>Hi everybody,
>>
>>I'm debugging some old style VFP code and I see code like this:
>>
>>1. dimension arrayname[Number_Of_records, Number of fields +1]
>>copy fields (less number of fields) to array ArrayName
>>select myOtherTable
>>append from array
>>
>>Two last fields in array are .F. (the number of fields to copy was less than the second dimension).
>>
>>These fields are character 1 in the table, so they get initialized with 'F'
>>
>>Is it correct behavior?
>>
>>What do you think?
>>
>>Thanks in advance.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform