dbTalk Databases Forums  

filebrowserex

comp.databases.paradox comp.databases.paradox


Discuss filebrowserex in the comp.databases.paradox forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
joseph gimeno
 
Posts: n/a

Default filebrowserex - 01-19-2006 , 01:38 PM






running pdox10 on a windows xp home machine
I am trying to copy an array of chosen files to a table from an array
string returned by filebrowserex which I can view.
Which command or set of commands would do that?
stringlist??
Thanks for your input
Joseph gimeno
the code I was trying to use is basically the one fund in the examples
from objectpal help so far..........in browserinfoex

Reply With Quote
  #2  
Old   
Rodney Wise
 
Posts: n/a

Default Re: filebrowserex - 01-19-2006 , 01:55 PM






You would select the multiple files by holding down either Shift
(consecutive files) or Ctrl (select non-consecutive files) Keys while your
click on them.

In the FileBrowserEx() ..... you would use an String Array[] Variable to
receive the file info instead of a String Variable.

The multiple files will be in the Array[]


--
....
`·.¸¸.·´¯`·.¸¸.·´¯`·-> rodney



Reply With Quote
  #3  
Old   
joseph gimeno
 
Posts: n/a

Default Re: filebrowserex - 01-19-2006 , 05:29 PM



Rodney Wise wrote:
Quote:
You would select the multiple files by holding down either Shift
(consecutive files) or Ctrl (select non-consecutive files) Keys while your
click on them.

In the FileBrowserEx() ..... you would use an String Array[] Variable to
receive the file info instead of a String Variable.

The multiple files will be in the Array[]


Thank you for your help!
I already have that part down what I need is to save the array[] to a
table for further processing........


Reply With Quote
  #4  
Old   
Rodney Wise
 
Posts: n/a

Default Re: filebrowserex - 01-19-2006 , 05:59 PM



I'd simply open a tCursor to the Table and add the Array Data using a Loop.

Untested Example:
;--begin-----------------------------------
;--------------------------->
Var
tc tCursor
liTicker longInt
arFiles Array[] String
endVar
;<---------------------------

tc.open("C:\\MyTableName.db")
if arFiles.size() > 0 then
liTicker = 1
tc.edit()
While liTicker <= arFiles.size()
tc.insertRecord()
tc."MyFieldName" = arFiles[liTicker]
liTicker = liTicker + 1
endWhile
tc.endEdit()
endif
;--end------------------------------------------

Actually... I don't why you'd want to put them into a table. Information
returned from the FileBrowser is usually dealt with immediatly and
disgarded. Why not work with the info while its still in the Array[] ??


--
....
`·.¸¸.·´¯`·.¸¸.·´¯`·-> rodney



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.