It is currently Mon Aug 19, 2019 10:01 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Tip: Tiny code to find a file on disk
PostPosted: Wed Jan 16, 2002 10:28 am 
Offline
PureBasic Guru
PureBasic Guru

Joined: Tue Apr 22, 2003 7:42 pm
Posts: 16777133
Code updated For 5.20+

Restored from previous forum. Originally posted by PB.

Here's some short code to find a file on any disk or hard drive.

Code:
path$=Space(255) : r=SearchTreeForFile_("c:\","FileToFind",path$)
If r=0
  MessageRequester("Error","File not found...",0)
Else
  MessageRequester("Location",path$,0)
EndIf



PB - Registered PureBasic Coder

Edited by - PB on 18 January 2002 00:51:52


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu Jan 17, 2002 2:04 am 
Offline
PureBasic Guru
PureBasic Guru

Joined: Tue Apr 22, 2003 7:42 pm
Posts: 16777133
Restored from previous forum. Originally posted by Steve.

Short and sweet.
And Works as advertised.
Thanks

Steve - Reg. PB user


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu Jan 17, 2002 3:32 am 
Offline
PureBasic Guru
PureBasic Guru

Joined: Tue Apr 22, 2003 7:42 pm
Posts: 16777133
Restored from previous forum. Originally posted by PB.

Quote:
Short and sweet.


Yep, using the API is a wonderful way to code in PureBasic.
Of my apps, I'd say about 40% of their code are API routines and not
actually BASIC at all...


PB - Registered PureBasic Coder


Edited by - PB on 17 January 2002 03:34:07


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu Jan 17, 2002 7:48 am 
Offline
PureBasic Guru
PureBasic Guru

Joined: Tue Apr 22, 2003 7:42 pm
Posts: 16777133
Restored from previous forum. Originally posted by Rings.

Quote:
Of my apps, I'd say about 40% of their code are API routines and not
actually BASIC at all...


Oh yes API solve most of the problems.But there are new Problems if you want compile to Linux(If Not , forget my comment ).Thats wh i want most of the API's in Basic-Commands to port it between OS's .

Siggi


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu Jan 17, 2002 9:38 am 
Offline
PureBasic Guru
PureBasic Guru

Joined: Tue Apr 22, 2003 7:42 pm
Posts: 16777133
Restored from previous forum. Originally posted by PB.

Quote:
Oh yes API solve most of the problems.But there are new Problems if you want compile to Linux(If Not , forget my comment ).Thats wh i want most of the API's in Basic-Commands to port it between OS's .


I know what you mean, but like you said: I don't use Linux/Amiga so it's of no
concern to me. :)


PB - Registered PureBasic Coder


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye