Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Afields alias not found
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Afields alias not found
Miscellaneous
Thread ID:
01268530
Message ID:
01268530
Views:
65
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?
Next
Reply
Map
View

Click here to load this message in the networking platform