cancel
Showing results for 
Search instead for 
Did you mean: 
EN
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Adding Request to script

I am trying to add a request string to a library part. I have the correct request:

n=REQUEST ("Zone_relations", "", category_name, code, name, number ,category_name2,
code2, name2, number2)

TEXT2 0, 0, number


but do not know the code to make it a string/parameter within the part.

New to GDL and hope someone can help??
10 Replies 10
Anonymous
Not applicable
F. wrote:
I should have known, that you would try. 😉 Maybe the request changes the variable from string to numeric. wrap a if vartype(number)=2 then ... around it.
That is exactly what happens. Normally when window or door is placed to wall between two zones, the values the REQUEST ("Zone_relations" ...) returns are strings. But when there is no zone it returns 0 which is a number. So if you make IF-statement to that value, each time when the value isn't proper it "crashes" (only the black dot appears)
So first I must be sure that the value is proper type.

This request function really sucks btw...

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!