Conveting Characters to Graphics
This WebDNA talk-list message is from 1997
It keeps the original formatting.
numero = 15040
interpreted = N
texte = Hi all.Last week my colleague asked the list if there was a way to convert aset of characters (such as a surname) and put them in graphical format.Responses were as follows :----------------------------------------------------------------------------------------------------------------getChars start=1&end=1][SurName][/getChars] to get the first character,[getChars start=2&end=2][SurName][/getChars] to get the secondcharacter,[getChars start=3&end=3][SurName][/getChars] to get the third character,----------------------------------------------------------------------------------------------------------------1. Create a graphic for each letter like A.gif a.gif B.gif b.gifand so on till you've got enough. Make sure you've got all text coveredlike '- or whatever accents you expect. Put all of your graphic files ina directory called fonts or whatever you want. 2. Use the following snippet:[loop start=1&end=[CountChars][surname][/CountChars]]
![](fonts/[GetChars
start=[index]&end=[index]][surname][/GetChars].gif)
[/loop]If [surname] = Kealoha, this would return:
![](fonts/Ka.gif)
----------------------------------------------------------------------------------------------------------------I can not get the getChars or the CountChars to work, it either comes upwith an end {/HTMLforms] error or nothing. Does anyone else have anyideas ? Also, where are these commands from, they are not in theWebCatalog Command Reference.ThanksPaul Keen, Technical DirectorInternet UK Services Ltd, Port Hamble Marina,Hamble, Hampshire, UK, SO31 4QDt: + 44 (0) 1703 452409 x 204f: + 44 (0) 1703 458409paulk@inter.net.uk, www.inter.net.uk
Associated Messages, from the most recent to the oldest:
Hi all.Last week my colleague asked the list if there was a way to convert aset of characters (such as a surname) and put them in graphical format.Responses were as follows :----------------------------------------------------------------------------------------------------------------getChars start=1&end=1][SurName][/getChars] to get the first character,[getChars start=2&end=2][SurName][/getChars] to get the secondcharacter,[getChars start=3&end=3][SurName][/getChars] to get the third character,----------------------------------------------------------------------------------------------------------------1. Create a graphic for each letter like A.gif a.gif B.gif b.gifand so on till you've got enough. Make sure you've got all text coveredlike '- or whatever accents you expect. Put all of your graphic files ina directory called fonts or whatever you want. 2. Use the following snippet:[loop start=1&end=
[countchars][surname][/CountChars]]
![](fonts/[GetChars
start=[index]&end=[index]][surname][/GetChars].gif)
[/loop]If [surname] = Kealoha, this would return:
![](fonts/Ka.gif)
----------------------------------------------------------------------------------------------------------------I can not get the getChars or the CountChars to work, it either comes upwith an end {/HTMLforms] error or nothing. Does anyone else have anyideas ? Also, where are these commands from, they are not in theWebCatalog Command Reference.ThanksPaul Keen, Technical DirectorInternet UK Services Ltd, Port Hamble Marina,Hamble, Hampshire, UK, SO31 4QDt: + 44 (0) 1703 452409 x 204f: + 44 (0) 1703 458409paulk@inter.net.uk, www.inter.net.uk
Paul Keen
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
Nested tags count question (1997)
Cart sweeper (2000)
FORM NONSENSE - WAS: How much is too much? (2002)
addlineitem is not saving a variable. (2004)
[WebDNA] Show next..... (2010)
Pass a form (2003)
Where is f2? (1997)
RED QUESTION MARK (1999)
Inventory Adjustment (2000)
My slower response (1997)
Summary search -- speed (1997)
(2003)
[OT] XML data to tab delimited database (2003)
Thanks Grant (1997)
[LOOKUP] (1997)
Searching Numbers (2004)
DON'T use old cart file! (1997)
Protecting webdelivery (1997)
[WebDNA] Froala Editor working with WebDNA (2016)
sending formatted e-mail? (1998)