Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (7th_zorro, TipmyPip, RealSerious3D), 892 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
[solved]pan_setdigits/pan_setstring #416837
02/05/13 11:06
02/05/13 11:06
Joined: Oct 2008
Posts: 681
Germany
Ayumi Offline OP
User
Ayumi  Offline OP
User

Joined: Oct 2008
Posts: 681
Germany
Huhu

ich versuche schon seit einer Weile einen String mittels pan_setstring oder pan_setdigits zu aktualisieren.

Code:
STRING* test = "123 usw 456";

while(1)
{
   switch(anyone)
   {
      case 0:
         test = "now 234 here";
         pan_setstring(..., test);break;
      case 1:
         test = "now 123 there";
         pan_setstring(..., test);break;
   }
}



pan_setstring löscht mir den alten String nicht mehr, da er
ja zur Laufzeit erstellt wird.
Und pan_setdigits funktioniert scheinbar mit "%s" nicht.


------------------

I've been trying for a while to update pan_setstring or pan_setdigits with a String Pointer.

Code:
STRING* test = "123 usw 456";

while(1)
{
   switch(anyone)
   {
      case 0:
         test = "now 234 here";
         pan_setstring(..., test);break;
      case 1:
         test = "now 123 there";
         pan_setstring(..., test);break;
   }
}



pan_setstring doesnt deletes the old string, cause it
is created at runtime.
Pan_setdigits doesnt seems to work with "%s".

Last edited by Ayumi; 02/05/13 15:29.
Re: pan_setdigits/pan_setstring [Re: Ayumi] #416848
02/05/13 13:34
02/05/13 13:34
Joined: Mar 2011
Posts: 3,150
Budapest
sivan Offline
Expert
sivan  Offline
Expert

Joined: Mar 2011
Posts: 3,150
Budapest
test = "now 234 here"; is wrong, you should use str_cpy(test,"...");
setdigits does not support %s since the second or third A8 version.

and due to it:
pan_setstring(PANEL*, var num, var x, var y, FONT* font, STRING* str)
you should set "num" properly if you want to modify it. 1 if the 1st, 2 if the 2nd... it is 0 on creating a new one.

Last edited by sivan; 02/05/13 13:36.

Free world editor for 3D Gamestudio: MapBuilder Editor
Re: pan_setdigits/pan_setstring [Re: sivan] #416855
02/05/13 14:13
02/05/13 14:13
Joined: Oct 2008
Posts: 681
Germany
Ayumi Offline OP
User
Ayumi  Offline OP
User

Joined: Oct 2008
Posts: 681
Germany
I am working with A7.

You have saved my day.It works.Thank you
(I don t known, what to do with num with pan_setstring))

Last edited by Ayumi; 02/05/13 14:14.
Re: pan_setdigits/pan_setstring [Re: Ayumi] #450753
04/22/15 06:24
04/22/15 06:24
Joined: May 2005
Posts: 868
Chicago, IL
Dooley Offline
User
Dooley  Offline
User

Joined: May 2005
Posts: 868
Chicago, IL
pan_setstring is not recognized by my version of Gamestudio, and I have A7 Commercial. Any ideas?

Re: pan_setdigits/pan_setstring [Re: Dooley] #450755
04/22/15 06:40
04/22/15 06:40
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
Originally Posted By: Dooley
pan_setstring is not recognized by my version of Gamestudio, and I have A7 Commercial. Any ideas?
Update to the latest A7 version?


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: pan_setdigits/pan_setstring [Re: 3run] #450759
04/22/15 08:36
04/22/15 08:36
Joined: May 2005
Posts: 868
Chicago, IL
Dooley Offline
User
Dooley  Offline
User

Joined: May 2005
Posts: 868
Chicago, IL
7.86 ... is there a newer one?

Re: pan_setdigits/pan_setstring [Re: Dooley] #450762
04/22/15 10:48
04/22/15 10:48
Joined: Apr 2015
Posts: 20
Vietnam
F
Florastamine Offline
Newbie
Florastamine  Offline
Newbie
F

Joined: Apr 2015
Posts: 20
Vietnam
Originally Posted By: Dooley
7.86 ... is there a newer one?

AFAIK 7.86 is the last release of A7.

Re: pan_setdigits/pan_setstring [Re: Dooley] #450763
04/22/15 11:08
04/22/15 11:08
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
Originally Posted By: Dooley
7.86 ... is there a newer one?
then please describe more what you.mean by 'pan_setstring is not recognized' ? it should work if you are using lite-c


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung

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