Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cursor Source Tables Assignment for a form
Message
From
01/09/2004 04:06:11
 
 
To
01/09/2004 00:01:19
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00938294
Message ID:
00938321
Views:
12
Hi,

>>
Hope I can define the help I need. I want to be able to assign where the drive for a tables that a form uses by using input from an ini file. I currently can modify the drive letter by modifying the cursorsource found in the memo for the Properties in the form's scx. However if I try to define the cursorsource = m.inisource then the system overides it with the default folder that I am working with.
>>

I'm not sure what you're trying to achieve. IAC the controlsource can only be a field in an open table (or a variable) - it's not going to handle the opening of the table. If you are trying to do this at run time then best to redefine the file path/names in either the form.load or, if you are using the DE, in the DE.BeforeOpenTables(). E.g:
This.Cursor1.Database = lcWhateverDBC
This.CursorSource = lcWhateverFile
HTH,
VIv
Previous
Reply
Map
View

Click here to load this message in the networking platform