Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Varchar fields
Message
De
02/03/2012 11:21:04
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01537002
Message ID:
01537061
Vues:
40
>>>>>>Try putting F in the format property for the textboxes.
>>>>>
>>>>>Unfortunately, the setting setcursorprop('MapVarchar',.t.,0) is applied per session (e.g. per form). Since in most forms we're using DataEnvironment, does it mean that we would need to change every form?
>>>>
>>>>sure.
>>>>
>>>>Have not a common root form class ?
>>>
>>>We do have several base classes, but the problem is that these forms use data environment to open SQL Server tables. So, I assume applying these settings in the Load method will be too late, what do you think?
>>
>>The VFP design on dataenviroment is very confused,
>>some events are execute before form.Load
>>and dataenviroment.Init run after form.load.
>>
>>
>>FORM.DATAENVIRONMENT.OPENTABLES() && this is the first code executed
>>form.dataenvironment.BeforeOpenTables()
>>
>>* here VFP load scx's properties !!!
>>
>>form1.Load()
>>form1.dataenvironment.Init()
>>
>>
>>then, or you move all code on form Load or dataenviroment.Init
>>or you set session's config on OpenTables.
>
>90% of all our forms use OpenTables method. So, if we want to fix this problem, we would have to change all our forms. Also, what should we do with all the data already saved with spaces?

define a SetDataEnviroment procedure within a main prg,
and call it on every dataenviroment member.

A better design would be using
a Class DataEnvironment common
but this design in VFP is not done much good
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform