About Store Forum Documentation Contact



Post Reply 
StrF alternative
Author Message
Lancer Offline
Member

Post: #1
StrF alternative
Hey,

in the source code I found this code
Code:
StrF("xs:%d ys:%d", Csg2D.sec.cells.x, Csg2D.sec.cells.y)
and in the post https://www.esenthel.com/forum/showthrea...light=StrF you said that StrF has been removed.
Is there any alternative I can use?

I have some text like "Item %s cost %d", so StrF would be useful. Right now Im using
Code:
snprintf
but this does not look really clean since it forces me to use Str8 and Char8
12-04-2020 09:06 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
RE: StrF alternative
Str s=S+"item "+name+", cost "+cost;
12-05-2020 02:24 AM
Find all posts by this user Quote this message in a reply
Lancer Offline
Member

Post: #3
RE: StrF alternative
(12-05-2020 02:24 AM)Esenthel Wrote:  Str s=S+"item "+name+", cost "+cost;

Yea, but if I have huge quest text, then I need to break it down into many pieces. Thatswhy I was looking for an StrF alternative. But I guess I'll just create a StrF.

Thanks
12-05-2020 06:06 PM
Find all posts by this user Quote this message in a reply
FKemp Offline
Member

Post: #4
RE: StrF alternative
Why was the StrF removed, did it cause bugs/perfomance issues? Working with strings is very important, I can tell you this as a writer for prothesiswriter.com where I provide help to students all around the globe.
(This post was last modified: 01-03-2021 03:23 AM by FKemp.)
12-24-2020 04:01 AM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #5
RE: StrF alternative
It's easy to make mistake with it or even crash.
12-24-2020 04:52 AM
Find all posts by this user Quote this message in a reply
Post Reply