Jump to content

Conversão no sqlserver 2005


lealdl
 Share

Go to solution Solved by lealdl,

Recommended Posts

Boa noite!

Mai uma pra coleção de dúvidas:

Estou escrevendo um programa em delphi

usando agora o sqlserver 2005 quando usava o firebird, a função de conversão de tipos estava assim:

dmdados.SqlConCidade.ParamByName('codini').AsInteger:=strtoInt(editcodini.Text); 

Fiz assim agora:

DM_sqlserver.ADOQueryConCid.Parameters.ParamByName('codini').AsInteger:=strtoInt(editcodini.Text); 

Está retornando o seguinte erro: [Error] UconCidade.pas(52): Undeclared identifier: 'AsInteger'.

>>>Como faço a conversão de tipos no sqlserver?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.