Address Bar Text Help

Blitz3D Forums/Blitz3D Beginners Area/Address Bar Text Help

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

You don't really have to make a formula or anything; I'm pretty sure this works:

;;
Global folder$="C:\Program Files\Blitz3D\Samples"
ChangeDir folder$
SetBuffer BackBuffer()
;; read the directory
.loaddir
sel=ReadDir(CurrentDir())
;; load files
;
;;
;; draw the folders etc
Repeat
	Cls
	Text 0,0,folder$,0,0
	If KeyHit(14)				;[backspace]
		ChangeDir ".."
		;Delete Each file
		Goto loaddir
	EndIf
	If KeyHit(1) End
	Flip
Forever


Basically, instead of using a variable for the folder, use CurrentDir() and ChangeDir().