Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

What is the meaning of the compiler warning “Ambiguous reference: GETLIST”?

compiler warning
0
Posted

What is the meaning of the compiler warning “Ambiguous reference: GETLIST”?

0

GETLIST is an array variable that is created by CA-Clipper, by default, as the list of all currently used GET objects. (The @…GET command preprocesses into an AADD (Getlist, …) call, and READ references Getlist also.) If you don’t declare GETLIST in your code the compiler won’t realize that the variable will in fact exist at runtime, hence the warning. If this bothers you, you can put the statement MEMVAR GETLIST in a header file that is shared throughout the application, or even declare GETLIST as a LOCAL in functions that use GETs and READs if your program organization allows it.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123