Post Reply 
String Variable
05-31-2017, 03:49 AM
Post: #2
RE: String Variable
(05-30-2017 05:08 PM)KeithB Wrote:  What should I use for a string variable?

Let me ask my real question: I am putting some text on the screen using TEXTOUT() and since the string might be variable length it sometimes leaves junk even if I write the background color. What is the accepted way to fix this? re-write the original screen with the bg color? send a bunch of spaces?

Also, is there any clever way to get the screen back if I call INPUT()?

Bonjour

Vous pouvez utiliser var:=TEXTOUT_P("message",x,y...) pour connaître la coordonnée x de fin d'affichage, ensuite moi
je ferai un RECT_P(x,y1,var,y2....)

Pour INPUT vous pouvez utiliser BLIT_P(Gx,G0) puis BLIT_P(G0,Gx) ou
Afiles("nom"):=G0 puis G0:=Afiles("nom").

Espérant vous être utile.

Hello

You can use :
var: = TEXTOUT_P ("message", x, y ...) to know the end x display x coordinate, then me
I will do a RECT_P (x, y1, var, y2 ....)

For INPUT you can use BLIT_P (Gx, G0) then BLIT_P (G0, Gx) or
Afiles ("name"): = G0 then G0: = Afiles ("name").

Hoping to be useful.

Sorry for my english
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
String Variable - KeithB - 05-30-2017, 05:08 PM
RE: String Variable - Tyann - 05-31-2017 03:49 AM
RE: String Variable - KeithB - 05-31-2017, 02:43 PM
RE: String Variable - Han - 06-01-2017, 03:57 AM



User(s) browsing this thread: 1 Guest(s)