Code center > Darwinbots Program Source Code

Sentence Split

<< < (5/27) > >>

Zelos:
plz can Py, Nums or someone else tell me how to remove the lines, When I know that I can finish my thing and show you guys.

Ulciscor:
I don't think you can treat the line as an object that can be deleted. You can clear a whole picture box though.

PurpleYouko:
If you drew a line and want to remove it, you have a couple of options open to you.

First, you can redraw the same line in background color.
The problem with this is that it will leave gaps where your line crossed other objects.

A better idea is to have a routine that draws everything you need then call it from your program after clearing the entire window with the CLS command.
Just set your parameters to draw whichever lines you want, clear the whole thing then redraw it from your perameters.

PurpleYouko:

--- Quote ---strlen(yourstring)

strlen("hello")  would be 5.
--- End quote ---
does strlen work with VB?

I always use len

len("hello") would be 5

PurpleYouko:

--- Quote ---I don't think you can treat the line as an object that can be deleted. You can clear a whole picture box though.
--- End quote ---
Actually you can make a line that is treated as an object. You can make it at design time, set its properties and stuff then modify it at run time. That way you can set its properties later (eg. line1.visible=FALSE)

Trouble is that I'm not sure how to draw a poly-line this way. Straight lines aren't much use on a graph  :D

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version