Go to main content

help desk

Info using the use keyword in extenso.

Asked on 0000-00-00 00:00:00

OFFICIAL ANSWER

The use keyword works by scope. Example

// begining of file...

use extranet_user; // that is one scope

function ttt()
 use extranet_user; // that is another scope
endf

package ppp
 function fff()
 use extranet_user; // that is yet another scope
 endf
endp

Note that it is not a sound strategy to use a variable in a function. If you need a variable, pass it as a parameter function(extranet_user)When passing a variable to a function, note that that will create a copy of it, so it is a good idea to keep the size of the variable to a minimum.So for example, if you only need the uuid_group, pass only that

function fff(uuid_group)
Answer by:
Etienne Carrier

Replied on: 2022-08-26 08:00:00