Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Mere mortals problem 6.0a
Message
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Title:
Mere mortals problem 6.0a
Miscellaneous
Thread ID:
00273239
Message ID:
00273239
Views:
47
Kevin,
I have two different dataenvironments that have one table in common.
The first dataenviroment will open the table.
The second dataenvironment also tries to open the table but does
not realize the table has already been opened it gives the error
'file already in use'
It does not know the table is opened already because too many quotes are stored in the property this.alias ("'openedtable'").

I changed the following mm code to fix this problem
Cdataenv.vcx
Ccursor.opentables

************************
*10/1/99 added dg
IF "'" $ this.alias
this.alias = chrtran(this.alias,"'",'')
endif
************************
IF NOT USED(This.Alias) && Don't reload aliases
lcAlias = IIF(EMPTY(This.Alias),'',' ALIAS ' + This.Alias)
lcNoData = IIF(This.NoDataOnLoad, ' NODATA', '')
lcExclusive = IIF(This.Exclusive,' EXCLUSIVE', ' SHARED')
lcUseCmd = 'USE ' + This.CursorSource + lcAlias + ;
lcNoData + lcExclusive + ' IN 0'
&lcUseCmd
ENDIF

Thanks
Next
Reply
Map
View

Click here to load this message in the networking platform