Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dealing with Data Environment Cursors
Message
 
 
À
02/02/2009 23:45:23
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01378714
Message ID:
01378934
Vues:
58
This message has been marked as the solution to the initial question of the thread.
J'aime (1)
>Thanks Naomi!
>
>After reading the Thread #974847 I've made some tests and found that this
>problem(mine especifically) could be simply solved by the following method:
>1. Set de 'AutoOpenTables' property of 'Dataenvironment' to .F.
>
>2. Adding the following code to the 'Init' method of 'Dataenvironment'
>
>WITH this
>
>	.AddObject('oCursor', 'Cursor')
>
>	.oDataFiles = '<path of database>'
>
>	.oCursor.Database = oDataFiles + '<database name>'
>	.oCursor.CursorSource = '<table name>'
>	.oCursor.Alias = '<alias>'
>	
>	.OpenTables
>	
>ENDWITH
>
>
>3. I've found that for objects like Grid I have to set columns 'ControlSource' property
>from the 'Init' method of the form. If I try to set that at design time I got a runtime error
>saying that the 'alias is not found'. The 'RecordSource' property of the Grid can
>be set at design time. For objects like TextBox, the 'ControlSource' can be set at
>design time.
>
>I didn't done tests with other type of objects.
>
>>Tony,
>>
>>Check Re: Generic in BeforeOpenTables in Data Environment Thread #974847 Message #975156 and the whole thread.
>
There is a form's property that makes late data binding. Try to set this property to .f. and to .t. in the Init. (BindControls?)
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform