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.

DarkBASIC Professional Discussion / For the love of...

Author
Message
Killswitch
23
Years of Service
User Offline
Joined: 2nd Oct 2002
Location: School damnit!! Let me go!! PLEASE!!!
Posted: 5th Sep 2003 01:33
I know I have a similar thread to this already but I couldn't find it so please forgive me for creating another. Im trying to get this code to run (to look for file types for a find function) but if i run it from dbpro no window pops up with the program running all that happens is that the end ad (im using the trial version) pops up its very frustraiting, im sure its the len() and mid$() commands that are doing it but the code is pointless without them.

~I'm going now, try not to sound so happy~
cusoi
23
Years of Service
User Offline
Joined: 3rd Jan 2003
Location: Netherlands
Posted: 5th Sep 2003 01:39
The program ends because the program is ready... You should use do loop at the end. Because now it prints the results, then there are no more commands, so it ends. Use this:



Ian T
23
Years of Service
User Offline
Joined: 12th Sep 2002
Location: Around
Posted: 5th Sep 2003 05:22
print ""+name$
print ""+lok$

Should/Can be:

print name$
print lok$

--Mouse: Famous (Avatarless) Fighting Furball
Read It: http://www.angryflower.com/itsits.gif
Learn It: http://www.angryflower.com/bobsqu.gif
Killswitch
23
Years of Service
User Offline
Joined: 2nd Oct 2002
Location: School damnit!! Let me go!! PLEASE!!!
Posted: 5th Sep 2003 21:53
At first I thought that having no commands at the end was the problem so i tagged a few input commands with some if's attached but that didn't work and neither did your code RTSpider, thanks for helping though. The problem seems to be mid$ and len$ no matter where I put it in a program before/after/during loops or in a function the program refuses to run, no window pops up just the advert it's really frustrating as I need these commands!!!

~I'm going now, try not to sound so happy~
Mentor
23
Years of Service
User Offline
Joined: 27th Aug 2002
Location: United Kingdom
Posted: 5th Sep 2003 23:44
sync on:sync rate 0:sync
name$="goat.yak.sheep.com"
for t = 1 to len(name$)
ext$=mid$(name$,t)
if ext$="."
found=1
lok$=lok$+ext$
endif
if found=1
lok$=lok$+ext$
endif
next t
print ""+name$
print ""+lok$
sync
wait 20000

works fine here, cheers.

Mentor.
Killswitch
23
Years of Service
User Offline
Joined: 2nd Oct 2002
Location: School damnit!! Let me go!! PLEASE!!!
Posted: 6th Sep 2003 01:34
This is getting really frustraiting now that code doesn't work either for me URGH!! There must be something wrong with my machine

~I'm going now, try not to sound so happy~
cusoi
23
Years of Service
User Offline
Joined: 3rd Jan 2003
Location: Netherlands
Posted: 6th Sep 2003 02:21
Yeah, I also have a bad feeling it's your machine... I feel sorry for you! You could post it in the bugsection maybe?

IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 6th Sep 2003 02:42
No, please don't. I'd only have to reject it

I suggest that you do a complete uninstall of DBPro first (using the setup.exe from the CD, not the control panel), delete your DBPro folder then reinstall and update with the latest DBPro and editor patches.
Ian T
23
Years of Service
User Offline
Joined: 12th Sep 2002
Location: Around
Posted: 6th Sep 2003 02:59
(The reason being that if you patched over a version that shouldn't be patched over, Bad Things can happen)

--Mouse: Famous (Avatarless) Fighting Furball
Read It: http://www.angryflower.com/itsits.gif
Learn It: http://www.angryflower.com/bobsqu.gif
Killswitch
23
Years of Service
User Offline
Joined: 2nd Oct 2002
Location: School damnit!! Let me go!! PLEASE!!!
Posted: 6th Sep 2003 22:41
Theres a tiny problem with that - I don't have to dbpro CD that is unless someone would be so kind to send me a free copy . Im using the trial version

~I'm going now, try not to sound so happy~
OSX Using Happy Dude
22
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 6th Sep 2003 23:33
No chance...


Avatar & Logo by Indi. Come to the UK DBPro Convention in Chichester
Killswitch
23
Years of Service
User Offline
Joined: 2nd Oct 2002
Location: School damnit!! Let me go!! PLEASE!!!
Posted: 7th Sep 2003 17:11
I thought I may as well try, lol.

~I'm going now, try not to sound so happy~
Ian T
23
Years of Service
User Offline
Joined: 12th Sep 2002
Location: Around
Posted: 7th Sep 2003 19:27
What are your system specifications (CPU, RAM, video card, driver versions, DirectX version, ideally your motherboard & motherboard driver versiosn too)?

--Mouse: Famous (Avatarless) Fighting Furball
Read It: http://www.angryflower.com/itsits.gif
Learn It: http://www.angryflower.com/bobsqu.gif
Killswitch
23
Years of Service
User Offline
Joined: 2nd Oct 2002
Location: School damnit!! Let me go!! PLEASE!!!
Posted: 7th Sep 2003 20:01
Well im not to sure on my system specs, this is a family comp and it was built by a friend of the family a while ago so im not that sure whats in it.

I do know, however that i've got a Petium 3, 128 mb ram, DirectX 9 and im running windows 98, as for the rest sorry I don't know.

~I'm going now, try not to sound so happy~

Login to post a reply

Server time is: 2026-07-23 14:56:11
Your offset time is: 2026-07-23 14:56:11