Subject | Re: [IBO] Is there an alternative to FieldByName? |
---|---|
Author | Hundri Magusin |
Post date | 2002-03-25T13:52:32Z |
why not just use datamodule1.theTableTheFieldName.asString:=...
this gets caught via the compiler if you decide to remove a field sometime
or other...
""pepmallorca"" <pepmallorca@...> wrote in message
news:a7g421+81ep@......
this gets caught via the compiler if you decide to remove a field sometime
or other...
""pepmallorca"" <pepmallorca@...> wrote in message
news:a7g421+81ep@......
> Hello:___________________________________________________________________________
>
> In the program I'm doing, I'm using the syntax:
>
> IB_Query1.FieldByName('FIELDx').AsString to reference the FIELDx
>
> If you don't write correctly FIELDx, in compilation time seems it
> works good, but in execution time you get an error, or you don't get
> the good information.
>
> Is there any other way to do it?
>
> For example IB_Query1.Fields[0].AsString it's good, but I think
> the 'FieldByName' is better to read it.
>
> Thanks,
>
>
>
>
>
> IB Objects - direct, complete, custom connectivity to Firebird orInterBase
> without the need for BDE, ODBC or any other layer.___________________________________________________________________________
>
> http://www.ibobjects.com - your IBO community resource for Tech Infopapers,
> keyword-searchable FAQ, community code contributions and more !
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>