Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Bug. Class Browser and short property name
Message
From
10/01/2005 14:09:20
 
 
To
10/01/2005 13:09:33
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
00975647
Message ID:
00975751
Views:
13
>>When class Browser generate Viewcode,
>>if a property with LEN(propertyName) minor of 3 is found,
>>all the following property are ignored.
>>
>>Repro:
>>define a class with this property :
>>
>>XY = 'bug'
>>
>>and generate the Viewcode,
>>observed:
>>
>>XY = .F.
>>
>>
>>Fabio
>
>I can replicate this.
>
>Tamar

Hi Tamar,

i found the error into the browser code:
DO WHILE !EMPTY(m.cProperty)
	m.nEqualPos = AT_C(' = ', m.cProperty)
	IF m.nEqualPos > 3
		m.cPropertyName = LEFTC(m.cProperty, m.nEqualPos - 1)
Corrected:
DO WHILE !EMPTY(m.cProperty)
	m.nEqualPos = AT_C(' = ', m.cProperty)
	IF m.nEqualPos > 1
		m.cPropertyName = LEFTC(m.cProperty, m.nEqualPos - 1)
Fabio
Previous
Reply
Map
View

Click here to load this message in the networking platform