Subject Re: [firebird-support] Get the value of generated primary key after an insert
Author Adriano
Hi Radu & Aage,


>Shouldn't be MsgBox MyVar ?
>Just a shot in the dark...

Dim MyVar as Integer
query = "SELECT GEN_ID(GEN_PRATICHE_IDPRATICA, 1) as MYVAR FROM RDB$DATABASE;"
cn.Execute query
MsgBox Myvar
Returns Always 0

It's darker than before ..
Some more light ?

Thanks
Adriano