General information
Category:
The Mere Mortals Framework
Title:
Mere mortals problem 6.0a
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only