Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
3 registered members (AndrewAMD, Ayumi, NewbieZorro), 14,141 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
no way to escape pound sign #218502
07/29/08 01:40
07/29/08 01:40
Joined: Jun 2008
Posts: 40
pfeldman Offline OP
Newbie
pfeldman  Offline OP
Newbie

Joined: Jun 2008
Posts: 40
The online documentation on strings (at http://www.conitec.com/beta/astring.htm) says that the special sequence "#n" creates a sequence of n blanks. But, what if one wants the actual string "#1"? There doesn't seem to be any way of escaping the pound sign. This looks like a Lite-C design flaw.

Dr. Phillip M. Feldman

Re: no way to escape pound sign [Re: pfeldman] #218561
07/29/08 08:57
07/29/08 08:57
Joined: Nov 2007
Posts: 1,032
Croatia
croman Offline
Serious User
croman  Offline
Serious User

Joined: Nov 2007
Posts: 1,032
Croatia
i'm not sure if i understood you well but you can define strings on this way too:

Code:
STRING* mystring = " "; // this string holds one empty place
STRING* mystring2 = "          "; // this string holds ten empty places




Ubi bene, ibi Patria.
Re: no way to escape pound sign [Re: croman] #218589
07/29/08 12:33
07/29/08 12:33
Joined: Oct 2004
Posts: 4,134
Netherlands
Joozey Offline
Expert
Joozey  Offline
Expert

Joined: Oct 2004
Posts: 4,134
Netherlands
Indeed you can not initialise the string as plain "#1". But you could add a space in the front.

STRING* temptxt = " #1";

I can imagine you will get unaligned text when adding a space in front. And clipping the space off will be interpreted as "#1" again which doesn't show up. Report this in the bug forum if you want this fixed desperately smile.



Last edited by Joozey; 07/29/08 12:38.

Click and join the 3dgs irc community!
Room: #3dgs
Re: no way to escape pound sign [Re: croman] #218660
07/29/08 19:09
07/29/08 19:09
Joined: Jun 2008
Posts: 40
pfeldman Offline OP
Newbie
pfeldman  Offline OP
Newbie

Joined: Jun 2008
Posts: 40
I actually want the pound sign to be displayed.

Re: no way to escape pound sign [Re: Joozey] #218662
07/29/08 19:10
07/29/08 19:10
Joined: Jun 2008
Posts: 40
pfeldman Offline OP
Newbie
pfeldman  Offline OP
Newbie

Joined: Jun 2008
Posts: 40
OK. Thanks for confirming that this is a bug! I will report it.


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1