[solved]pan_setdigits/pan_setstring

Posted By: Ayumi

[solved]pan_setdigits/pan_setstring - 02/05/13 11:06

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".
Posted By: sivan

Re: pan_setdigits/pan_setstring - 02/05/13 13:34

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.
Posted By: Ayumi

Re: pan_setdigits/pan_setstring - 02/05/13 14:13

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))
Posted By: Dooley

Re: pan_setdigits/pan_setstring - 04/22/15 06:24

pan_setstring is not recognized by my version of Gamestudio, and I have A7 Commercial. Any ideas?
Posted By: 3run

Re: pan_setdigits/pan_setstring - 04/22/15 06:40

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?
Posted By: Dooley

Re: pan_setdigits/pan_setstring - 04/22/15 08:36

7.86 ... is there a newer one?
Posted By: Florastamine

Re: pan_setdigits/pan_setstring - 04/22/15 10:48

Originally Posted By: Dooley
7.86 ... is there a newer one?

AFAIK 7.86 is the last release of A7.
Posted By: 3run

Re: pan_setdigits/pan_setstring - 04/22/15 11:08

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
© 2024 lite-C Forums