Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sort

Status
Not open for further replies.

Rickinrsm

Technical User
Nov 3, 2004
130
US
See the SORT portion of the script at the bottom of the post.

q=

Query
ANSWER: :pRIV:AnswerTopOffices.DB

Coastal.DB | SalePrice | ListName |
| CALC SUM ALL AS SalePrice | Check |

EndQuery


if not q.executeQbe()then
errorShow()
return
endif
If Not tc.open(":pRIV:AnswerTopOffices") then
errorShow()
Return
endIf

Sort "AnswerTopOffices.db"
ON "SalePrice" D
EndSort

This sort fails? Nothing seems to work.

Any assistance wold be greatly appreciated.

Thanks much. Rick
 
Just by chance, do you have "D" declared as a variable?

Either in this method, or at any level higher where this method can 'see' it?

If so, the sort will fail.

Could this be the issue?


Tony McGuire
"It's not about having enough time. It's about priorities.
 
The only other D in is my Alias statement which is pointing to my D drive. Could that be the problem?

I thought that D after the word SORT stood for decending?

thanks . . . Rick
 
Here is my aslia statement . . .

addAlias("MYDIR","Standard","D:\\Pdoxwin7\\Working")


Could this be the problem?

thatnk again.
 
I just relooked.

You are setting the answer table to ":pRIV:", but your sort statement doesn't have an alias, and so is using ":WORK:".

Tony McGuire
"It's not about having enough time. It's about priorities.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top