Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
A simple question
Message
From
19/05/2004 07:04:05
 
 
To
19/05/2004 04:51:29
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00904997
Message ID:
00905199
Views:
16

Ciao Fabio, mi sembra di aver capito che tu voglia reimpostare il valore di default della classe una volta "appiccicata" su un form. Mi sembra che non sia possibile in quanto Visual FoxPro come valore di default intende quello impostato nella classe di origine. Io nei miei oggetti ho inserito una proprietà nella quale memorizzo il valore che mi interessa. Spero di essere stato chiaro e sopratutto di aver capito il tuo problema.
Ciao ALessio.

Hi Fabio, as far as i'm concerned Visual FoxPro use as default value the one you put in the class when you define it, not the one you assign when you put the class in a form. I usually create properties in the classes in which I store my default value
Hope this helps
Alessio


Ciao Alessio,
ha capito bene.

Ma facendo così devo creare un duplicato per ogni proprietà,
poichè la ricerca di una proprietà è sequenziale, raddoppio il tempo medio per avere una proprietà, oltre ad aumentare artificiosamente la complessità del programma.

Siccome penso che quando un programmatore ridefinisce un valore su un SCX
lo consideri il valore di default, il modo di operare di VFP è sbagliato.
Se uno vuole preservare il default della classe, assegnerebbe il valore sull'Init().

Hello Alessio, has understood well.
But making like this i must to create a duplicate for every proprrerty
Because the search of one property is a sequential scan,
i doubling the medium time for having one property,
beyond increasing skillfully complexity of the program.

Because I think that when a developer redefines a value on a SCX
considers it the value of default, the way to operate of VFP is mistaken.
If one wants to keep the default of the class, would assign the property value on the Init().

Fabio
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform