Quantcast
Channel: Baanboard.com
Viewing all articles
Browse latest Browse all 4216

Unable to refer to a #define symbol via a variable

$
0
0
Having trouble figuring out how I can use a table string field to store a value,
such as "yahoo.url" or "google.url", and then use that value in 3GL code such
that it can refer to a token in a #define statement.
Example:
if I have table field tccom999.srch = "yahoo.com"
and the following code:

#define yahoo.url "https://www.yahoo.com/"
#define google.url "https://www.yahoo.com/"

string search.url(80)

select tccom999.srch
from tccom999
selectdo
search.url = tccom999.srch
endselect

| This only sets search.url to "yahoo.com".
| An idea on how I could get the search.url to equal "https://www.yahoo.com/" ?
| I had no luck with get.var, no luck with expr.compile

thanks

Viewing all articles
Browse latest Browse all 4216

Trending Articles