Página 1 de 1

TAdsDataSource - strange cconnect in xfm file?

Publicado: Mié Ene 11, 2012 10:32 am
por ChrisGillard
Hi,
I am having a little problem with TAdsDataSource and getting :cConnect to
point to my data folder when I create a tAdsDataSouce in CODE.
To test how it should work I made a simple project in the IDE with a
TAdsDataSource and a TDbfDataSet and looked in the form XFM file to see how
the properties are set up.
I was suprised to see the cConnect string.
:cConnect := e".data" <---- I just used .data in the
property editor
Please see the attached 2 images.
The test project does seem to work and allows me to open the dataset.
Is the cConnect string normal?
Regards
Chris Gillard


Attached files

TAdsDataSource - strange cconnect in xfm file?

Publicado: Mié Ene 11, 2012 11:57 am
por ignacio
Chris Gillard escribió el mié, 11 enero 2012 10:32I was suprised to see the cConnect string.
:cConnect := e".data" <---- I just used .data
From xHarbour docs:
Extended Literal Strings:
xHarbour introduces a new kind of literal strings known as "Extended Literal Strings".
Syntax:
E"..."
The literal string may contain Escape Codes following the C language conventions, like:
n -> New Line character.
t -> Tab character.
r -> CR character.
" -> literal <"> character.
' -> literal <'> character.
-> literal <> character.

TAdsDataSource - strange cconnect in xfm file?

Publicado: Mié Ene 11, 2012 1:29 pm
por ChrisGillard
Hi Ignacio,
Thanks for the reply.
Hmmm .... "Extended Literal Strings" ..... something new to learn!
I see StringToLiteral in my xHarbour docs but not much else at the moment
.... but I will keep looking.
I will ignore what I saw in the xfm for now.
Thanks
Chris
"Ignacio Ortiz de Zúñiga" <nonametoavoidspam@xailer.com> wrote in
message news:4f0d6b30$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
> Chris Gillard escribió el mié, 11 enero 2012 10:32
>> I was suprised to see the cConnect string.
>>
>> :cConnect := e".data" <---- I just
>> used .data
>
>
> From xHarbour docs:
>
> Extended Literal Strings:
>
> xHarbour introduces a new kind of literal strings known as
> "Extended Literal Strings".
>
> Syntax:
>
> E"..."
>
> The literal string may contain Escape Codes following the C
> language conventions, like:
>
> n -> New Line character.
> t -> Tab character.
> r -> CR character.
> " -> literal <"> character.
> ' -> literal <'> character.
> -> literal <> character.
>
> --
> Ignacio Ortiz de Zúñiga
> [Equipo de Xailer/Xailer team]
> http://www.xailer.com
> http://www.xailer.info