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:
shipping costs (1997)
Google Problem (2003)
Beta and new version questions? (1998)
WebCat virtual postcard is done! Thanks for the help! (1998)
os 8.5 (1999)
Getting Emailer to send mail (1997)
WCS Newbie question (1997)
Nested tags count question (1997)
Showif with an or (2003)
Kaaaaahhhhhhhnnnnnnn! (1997)
ShowNext (1997)
Question about links (1999)
New Server? (2006)
Pacific Coast Software responsiveness (was WebMerchant - MacAuthorize) (1999)
Search in 2 or more catalogs (1997)
Trouble with formula.db (1997)
Server IP address? (1998)
problem serving foreign languages text (1997)
WebCatalog2 Feature Feedback (1996)
DATES (2004)