Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can't report bugs - Create cursor from array
Message
 
To
27/12/2002 10:03:46
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00736027
Message ID:
00736077
Views:
18
Jim,

Foxpro has never accepted field names ended with a space. Here are examples:
1.
create table c:\yy (fld1 c(3)) &&how to add space here?

2.
lcfield='Hello '
create table c:\yy ((lcfield) c(3)) &&initiates syntax error

So the code as posted by originator looks for me as a programmer error. I would not consider it as bug and would not blame the MS team. But again, it is my point of view and my opinion. It means that other opinions may exist, but I do not share them.


>Yuri,
>
>I agree that not following the documentation makes for a good definition of a bug. But not the only one.
>In particular, backward compatibility is as important as following the documentation. While such a situation amy ultimately be categorized as other than a "bug", it would at least need mentioning in the "Behavioral Differences" section of the "What's new in VFPx" part of the documentation.
>
>By the way, can you cite the actual documentation that says explicitly that the statement attempted does not conform?
>
>
>
>>Hmmm.., I would say it depends on the point of view.
>>If programmer made a mistake, then it is not bad if the error is automatically corrected in quite clear case. But I believe that programmer itself should be responsible to follow language documentation. 'Bug' as I understand it, is when behavior does not follow the documentation.
>>
>>>I assumed that this was from working code (VFP7 and prior). That alone should be enough to report it as a bug, don't you think?
>>>
>>>>Not quite clear, why you need to create the field caption with the space. Anyway the caption will not contain space in VFP6/7.
>>>>
>>>>>As this page doesn't work...
>>>>>
>>>>>http://support.microsoft.com/default.aspx?scid=/Support/vfoxpro/report/report.asp
>>>>>
>>>>>I'm posting here this one:
>>>>>
>>>>>*-----
>>>>>*
>>>>>* Spaces after a field name in the source array crash a CREATE CURSOR FROM ARRAY in VFP.8, not in previous versions
>>>>>*
>>>>>*-----
>>>>>local laStructure(1)
>>>>>dimension laStructure(1, 4)
>>>>>laStructure(1, 1) = 'BI_TOPIC ' && <--- There is a space here
>>>>>laStructure(1, 2) = 'C'
>>>>>laStructure(1, 3) = 60
>>>>>laStructure(1, 4) = 0
>>>>>create cursor cNewFile from array laStructure && <--- Crash in VFP8 only
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform