Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
jvitantonio
Luminary Alumni
Luminary Alumni

Assign value to variable in load time

Hi,

I'd like to know if it if possible to make a query to a DB and assign a value return from the query to a variable while a script is being executed?

1 Solution

Accepted Solutions
luciancotea
Specialist
Specialist

Use PEEK() function. See help for example.

View solution in original post

2 Replies
luciancotea
Specialist
Specialist

Use PEEK() function. See help for example.

jvitantonio
Luminary Alumni
Luminary Alumni
Author

Thanks. I used it like this:

Temp:

load FIELD;

;

sql select FIELD from TABLENAME

;

LET variable = PEEK('FIELD');