Hallo alle mit einnander,

für ein Profilmenu möchte ich dateinamen anzeigenlassen die man anklicken kann und wo dann das Profil durch druck auf den OK-Button das Profil geladen wird.

Es geht erstmal nur um die anzeige des Profils so hab ich es versucht.

Code:
STRING* Profilname_str = "#15";

typedef struct {
char* Profilname_str;
} PROFIL;


function Profilanzeige()
{
	
	txt_for_dir( Profilname_str, "Profil1_*" );
	str_clip(Profilname_str, 8);
	
	TEXT* Profil_1 = { layer = 8; 
			   pos_x = 100; 
			   pos_y = 300; 
			   font = "StencilStd#40"; 
			   string (Profilname_str); 
			   flags = VISIBLE; }
}



Es funzt nicht und ich nehme an das es daran liegt das man bei txt_for_dir halt keinen string angeben kann aber wie geht es denn besser und vor allem so das es funzt.

Ich glaub mir fehlt da nur ne function die ich noch nicht kenne.

pls help