Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CCursor.OpenTable()
Message
De
29/12/1999 16:04:15
 
 
À
29/12/1999 15:59:00
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00310015
Message ID:
00310097
Vues:
20
>>>>Kevin,
>>>>
>>>>The framework is bombing on the use command. Somewhere a very funky statement is being built. The results of This.cursorsource seem to have brackets around it. This is happening with tables, not views.
>>>>
>>>>	*-------------------------
>>>>	*--- Build the USE command
>>>>	*-------------------------
>>>>	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
>>>>
>>>
>>>Kevin,
>>>
>>>Now this.cursorsource returns ..\h.dbf. I tried opening the dataenvironment class and removing the brackets. For some reason extra brackets were being created.
>>
>>Having a cursor named a single letter A-J can and will cause problems. VFP will confuse it with the original dBase first 10 work areas.
>
>My cursor is called 'errorcodes'

That's good. You could get away with A.DBF, etc., as long as the alias for it is not just A through H, a single letter. Image what would happen if you opened A.DBF in area 3?!? (It gets the alias of 'C', BTW.) So just image the confusion that can create!
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform