Re: [Zope] left(string, n) equivalent (newbie q.)

2000-06-15 Thread Luis Cortes
day, June 15, 2000 3:18 PM Subject: [Zope] left(string, n) equivalent (newbie q.) Pardon my ignorance, I'm coming from a VB/Access background. I need to find an equivalent to using left(string, 4) in a zope SQL method's select query. My SQL book says I can use SUBSTRING(string, 1, 4) in a que

Re: [Zope] left(string, n) equivalent (newbie q.)

2000-06-15 Thread Graham Chiu
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 In article 000901bfd712$42628800$[EMAIL PROTECTED], Luis Cortes [EMAIL PROTECTED] 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