hi again....
thanx to pranavn , hes showed me how to display my drive path and
contents in a field..
however he metioned that as Filextra displays the files as list i would
have to iterate thorugh them.
i am a very new beginner and wondered exactly What is ITERATION
and how could i do this to make just the filenames appear in my field
instead of the full path names...
ie. im trying to make aplaylist....so u choose the folder and it reads
in the directory contents....
this all works now but is messy

heres the code..

on mouseUp me
  gaddress = member("tmpfield").text
  gstate = "fxObj.fx_FolderToList("
  gend = ")"
    
  fxObj = xtra("FileXtra3").new()
  gFolder = fxObj.fx_FolderSelectDialog("Choose a folder:")
  put fxObj.fx_FolderToList(gFolder)
  vFilesList = fxObj.fx_FolderToList(gFolder)
  member("dirbox").text = string(vFilesList)
fxObj = 0



thankyou for your help


jon






-----Original Message-----
From: Jon Paul Alongi 
Sent: 20 February 2001 08:13
To: [EMAIL PROTECTED]
Subject: <lingo-l> <LINGO> FileXtra....in NEARLY SUCCESSFUL!!!!!!!!!!



Hi, gang...
some of u were nice enough to help me yeterday try to use filextra for
the first time....
i went home and had a play around and was delighted to find i was doing
ok with certain aspectsss..
however, im getting a little stuck on something....

i set my self a little task to help learn some functions.
I thought i would try and get a particular folder using:
fx_FolderSelectDialog
then upon that get the directory list using:
fx_FolderToList

i found that i mangaged to get that working exept i was unsure how to
call my line


this is what ive got

gaddress = member("tmpfield").text
  gstate = "fxObj.fx_FolderToList("
  gend = ")"
 fxObj = xtra("FileXtra3").new()
  
  
  put fxObj.fx_FolderSelectDialog("Choose a folder:") into field
("tmpfield")
  -- "C:\My Documents\Music\"
  
 
  
  put fxObj.fx_FolderToList && gstart && gaddress && gend
  
  
  fxObj = 0




please can someone help....im a struggling lingo'ist who wants TO LEARN
MORE !!!!!

thanx people

jon


[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]



[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]

Reply via email to