Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Bug. Class Browser and short property name
Message
De
10/01/2005 14:09:20
 
 
À
10/01/2005 13:09:33
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
00975647
Message ID:
00975751
Vues:
12
>>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform