Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Afields alias not found
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Afields alias not found
Divers
Thread ID:
01268530
Message ID:
01268530
Vues:
66
I am running the following code:
	FOR i= 1 to ThisForm.List1.ListCount 
		if thisform.List1.Selected(i)
			local array aTemp(1)
			a = ALLTRIM(thisform.list1.List(i))
			tbl = ALLTRIM(.sour+(a))
			use (tbl)
			AFIELDS(aTemp,tbl)
			RELEASE aTemp
		endif 
	endfor
I am getting "alias is not found" when using "AFIELDS(aTemp,tbl)". I do have my database opened.

the variable "a" contains
"PAYROLL_TBL.DBF"
the variable tbl contains
"C:\PROGRAMMING\PROGRAMS\VFP8\PAYROLL\PAYROLL_TBL.DBF"
I issued a alias() command and it shows
"PAYROLL_TBL.DBF"
I issued a dbc() command and it shows my database in use
"C:\PROGRAMMING\PROGRAMS\VFP8\PAYROLL\PAYROLL.DBC"
What am I doing wrong here?
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform