lealdl Posted April 17, 2015 at 01:28 AM Report Share #581408 Posted April 17, 2015 at 01:28 AM 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 More sharing options...
Solution lealdl Posted April 20, 2015 at 01:14 AM Author Solution Report Share #581512 Posted April 20, 2015 at 01:14 AM Consegui, depois de queimar muito fosfato! Obrigado a todos que me ajudaram, espero contar com vcs! Troquei o componente adoquery por um adodataset, daí ficou perfeito. Abraço a todos!!! RESOLVIDO Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now