Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What do you think of 'Beautify'?
Message
 
 
To
03/05/2010 07:29:44
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01462534
Message ID:
01462756
Views:
65
>>>>My understanding of that statement is that it applies strictly to the times when placed within quotation marks. And, that brackets are not quotation marks, but can be used as string delimiters.
>>>>
>>>>BTW, while it is frequently referred to as a bug, I do know that I have seen a use of it (but I cannot recall what that use was.)
>>>>
>>>
>>>My understandding is that it applies to string delimiters or [] shouldn't be used as delimiters at all. It is a bug in my book. Bugs sometimes could sometimes have a use. For example group by was buggy in VFP6/7 but most of us used that buggy version somehow.
>>>
>>
>>It's neither bug nor feature but a side effect of square brackets allowed triple usage in VFP:
>>- arrays: myarray[1]
>>- functions: myfunction[1,1]
>>- string delimiter: [Whatever]
>>
>>The pre-processor code parser cannot distinguish between them.
>
>I don't understand how this is not a bug:
>
>
Local ix,c
>Local Array aTest[1]
>For ix=1 To 3
>  Dimension aTest[ Iif(Type('aTest[1]')='C',Alen(aTest)+1,1) ]
>  aTest[ALEN(aTest)] = Transform(m.ix)
>Endfor
>Display Memory Like aTest
>
>It works as it should if I don't use beautify. If I use beautify the code itself affected. Beautifying shouldn't affect the working of the code.
>Cetin

It's a beatify parser bug but what it has to do with pre=processor (#define) I referred to?
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform