[Zope] left(string, n) equivalent (newbie q.)
Graham Chiu
anon_emouse@hotmail.com
Fri, 16 Jun 2000 12:04:29 +1300
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
In article <000901bfd712$42628800$ec0000c0@pollak.com>, Luis Cortes
<lcortes@pollak.com> writes
>You should be able to use python's slice like so:
>
><dtml-if "word[:4] == 'help'" >
>...
>
>where "word" is the variable you want to use only 4 characters of.
>
>Hope this helps,
But he is referring to a zsqlmethod, and you should be able to pass sql
thru.
Perhaps if he posts the zslqmethod.. Maybe it's an Access thing.
- --
Regards, Graham Chiu
gchiu<at>compkarori.co.nz
http://www.compkarori.co.nz/index.php
Powered by Interbase and Zope
-----BEGIN PGP SIGNATURE-----
Version: PGPsdk version 1.7.1
iQA/AwUBOUjGTrTRdIWzaLpMEQL1IACgp1lkupw3pCyxkAbVJ6melhuv2/8AoJ78
U//cKJwG0QQsCwyWWHIM/LbL
=e+7V
-----END PGP SIGNATURE-----