Gamestudio Links
Zorro Links
Newest Posts
Executing Trades on Next Bar Open
by Zheka. 06/20/24 14:26
Lapsa's very own thread
by rki. 06/19/24 11:27
A simple game ...
by VoroneTZ. 06/18/24 10:50
Face player all the time ...
by bbn1982. 06/18/24 10:25
Zorro Beta 2.61: PyTorch
by jcl. 06/10/24 14:42
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (TipmyPip, ozgur), 1,240 guests, and 10 spiders.
Key: Admin, Global Mod, Mod
Newest Members
squik, AemStones, LucasJoshua, Baklazhan, Hanky27
19060 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 | chip programmers | 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