I want to pass to the function execSQL
the name of the variable that I want to use in
% with% and from string SQL, pass the variable directly to the base.consulta()
function, ie pass the variable that has the same name as string .
An example to give you an idea of what I'm looking for.
OBS: I know the way it is not working and I know why.
// variáveis com algum SQL
string sqlConsultaEspecifica = "...";
string sqlMonitoramento = "...";
string sqlVerificacao = "...";
function execSQL(string sql = "sqlMonitoramento") {
// ...
// realizar algumas ações aqui
// ...
return base.consulta(sql);
}
Is it possible to do this? How could I do that?