Creating two forms from blueprints in one procedure

I have a procedure that creates two form if they are not already present. The code to create a form, taken right from the blueprint, begins with the code:

local targetFormName
define targetFormName,"SelectData"

makenewform targetFormName
openform targetFormName

But when the procedure tries to create the second form, an error occurs because it is trying to create a second form with the same name, because it defines the form name using the define statement, which does nothing since the variable already exists and has a value. So it uses the first form name and an error results. I changed the code so that it now says,

let targetFormName="SelectData"

Now the error is avoided.