Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Deleting Strings

Author
Message
RadiusOFT
19
Years of Service
User Offline
Joined: 14th Jul 2005
Location: Aloha, OR(egon)
Posted: 28th Apr 2006 08:53
is there a way to delete a string? im doin a project for school and i have a 3d object of a overhead screen that the camera zooms up on. My plan was to print strings onto the screen to look like is part of the whole 3d scene and then when i hit a button it goes to different text (as if im chaning the overhead) but i cant figure out how to get rid of the old string! Someone plz help me my project is due tommorow.thanks
MartinS
18
Years of Service
User Offline
Joined: 15th Dec 2005
Location: Rochester, NY
Posted: 28th Apr 2006 08:58
Well, it don't really get what you're saying, but to make a string a null value, just do this:


Hope that helps,
Martin

RadiusOFT
19
Years of Service
User Offline
Joined: 14th Jul 2005
Location: Aloha, OR(egon)
Posted: 28th Apr 2006 09:01 Edited at: 28th Apr 2006 09:01
im basically trying to do a slide show (like power point) but i cant get rid of the old strings when i try to move to a new slide
MartinS
18
Years of Service
User Offline
Joined: 15th Dec 2005
Location: Rochester, NY
Posted: 28th Apr 2006 09:03
So "cls" doesn't work?

Martin

RadiusOFT
19
Years of Service
User Offline
Joined: 14th Jul 2005
Location: Aloha, OR(egon)
Posted: 28th Apr 2006 09:05
ive tried that but the way i coded it makes the whole program shut down
RadiusOFT
19
Years of Service
User Offline
Joined: 14th Jul 2005
Location: Aloha, OR(egon)
Posted: 28th Apr 2006 09:06
i just got an idea i go test it out
Pincho Paxton
21
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 28th Apr 2006 10:00
You could try printing a bitmap picture of the screen over the text, but basically you have made this program in the wrong way. You should be using sprites, or plains for text.

RadiusOFT
19
Years of Service
User Offline
Joined: 14th Jul 2005
Location: Aloha, OR(egon)
Posted: 28th Apr 2006 10:31
nvm i gave up i couldnt figure it out. well... i just wasted 9 hours of my day... (sarcastically) yay
Mr X
19
Years of Service
User Offline
Joined: 25th Sep 2005
Location: Universe, milkyway, sol-system, Earth...
Posted: 28th Apr 2006 18:40
Why delete the strings anyway? Thats just ineffective. Instead try and reuse them. You talked about a PowerPoint like thing. So why not do so everytime you proceed, the strings change. Then you wont need an extrem amount of them, just use them again and again with different "contence".
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 28th Apr 2006 19:48
Quote: " Why delete the strings anyway? Thats just ineffective. "


Agreed!

Use just one string over and over again - don't create a string for each picture.

If you absolutely must have multiple strings, use a string array. You can then use UnDim to delete them - if you need to.

If you aren't sure about arrays, they are covered in the tutorials on my web site (link at bottom of my post).

TDK_Man

Pincho Paxton
21
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 29th Apr 2006 01:04
I think he means delete them from the screen.

NeX the Fairly Fast Ferret
19
Years of Service
User Offline
Joined: 10th Apr 2005
Location: The Fifth Plane of Oblivion
Posted: 29th Apr 2006 01:30
What about FREE STRING?


At least farting ferrets are better than stinky stoats.
Jerok
19
Years of Service
User Offline
Joined: 7th May 2005
Location: Mars. Wait a sec I\'m on MARS. OMG
Posted: 29th Apr 2006 02:35
maybe if you posted your code we could make it work or tell you what you are doing wrong

http://www.ebaumsworldsucks.com/(not my site or my movie)
RadiusOFT
19
Years of Service
User Offline
Joined: 14th Jul 2005
Location: Aloha, OR(egon)
Posted: 29th Apr 2006 06:11
no its ok the project is over so dont worry about it
RUCCUS
19
Years of Service
User Offline
Joined: 11th Dec 2004
Location: Canada
Posted: 29th Apr 2006 15:06
Radius you're not going to get anywhere in programming if you give up that easily right when something hard comes along. Even if the assignment has passed you should still finish it so you dont run into the same problem again.

Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 29th Apr 2006 18:56
I think he was structuring his program completely the wrong way. You can post the code you had and we'll explain what to change


RadiusOFT
19
Years of Service
User Offline
Joined: 14th Jul 2005
Location: Aloha, OR(egon)
Posted: 30th Apr 2006 07:28 Edited at: 30th Apr 2006 07:29
alright ill do that but i cant right now im at a friends house and i wont be back untill tommorow night(dont laugh when you see how bad it is lol)

Login to post a reply

Server time is: 2024-11-26 21:39:11
Your offset time is: 2024-11-26 21:39:11