| View previous topic :: View next topic |
| Author |
Message |
DW Contributor

Joined: 21 Mar 2003 Posts: 175 Location: UK
|
Posted: Sat Apr 10, 2004 12:49 pm Post subject: LOADFILE (is it limited)???? |
|
|
I am using VDS4,
I have this code,
| Code: |
dialog create,0,0,0,0
list create,1
list loadfile,1,@filedlg(*.*)
list close,1
|
I have found that when I load a my 6.69mb text file, it just stops responding.
Is this a bug, limitation, etc?
Is there a work around? |
|
| Back to top |
|
 |
DW Contributor

Joined: 21 Mar 2003 Posts: 175 Location: UK
|
Posted: Sat Apr 10, 2004 12:51 pm Post subject: |
|
|
| forgot to metion the code above is nothing special, just what i used to test the loadfile function. |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Sat Apr 10, 2004 1:44 pm Post subject: |
|
|
You will find that it seems to stop responding, but list loadfile is quite slow
and actually is working at full speed while not updating controls etc., so
that's why it looks like it's not responding.
You can use BINFILE to load such a large file  _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
DW Contributor

Joined: 21 Mar 2003 Posts: 175 Location: UK
|
Posted: Sat Apr 10, 2004 6:20 pm Post subject: |
|
|
What about a visual list?
does it have limits? |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Sat Apr 10, 2004 6:40 pm Post subject: |
|
|
| Mac wrote: | Windows 95 has a visible LIST limit of 32767 items (this is NOT
VDS related), but the LIST CREATE lists do not have this limit
in Windows 95. Windows 98 and later does not have this limit. |
_________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
DW Contributor

Joined: 21 Mar 2003 Posts: 175 Location: UK
|
Posted: Sat Apr 10, 2004 8:47 pm Post subject: |
|
|
| Thank you very much |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Sat Apr 10, 2004 9:51 pm Post subject: |
|
|
Glad to help.  _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
vtol Valued Contributor


Joined: 05 Feb 2004 Posts: 656 Location: Eastern Indiana
|
Posted: Sun Apr 11, 2004 12:35 am Post subject: |
|
|
Would this work for you:
| Code: | OPTION DECIMALSEP, "."
DIALOG CREATE,loadfiletest,-1,0,400,190
DIALOG ADD,LINE,LINE1,5,5,390,135
DIALOG ADD,LIST,box1,15,11,378,115,,,DBLCLICK,MULTI
DIALOG ADD,BUTTON,stop,148,85,43,19,Stop,,
DIALOG ADD,BUTTON,test,148,185,43,19,Test,,
DIALOG ADD,BUTTON,cancel,148,285,43,19,Exit,,
DIALOG ADD, STATUS,statis,
DIALOG SHOW
LIST CREATE, 1
LIST CREATE, 2
:EVLOOP
WAIT EVENT
GOTO @EVENT()
:testBUTTON
LIST clear, 1
LIST clear, 2
dialog clear,box1
%%loadfile_save = c:\zztest\loadfile.txt
%%loadfile_files = @DIRDLG(Choose your file list,%%loadfile_path,shownewfolderbutton)
LIST FILELIST, 1,%%loadfile_files
wait "0.2"
DIRECTORY create,c:\zztest
LIST SAVEFILE, 1,%%loadfile_save
REPEAT
dialog set,statis,@item(1)
wait "0.003"
LIST add, 2,@item(1)
LIST DELETE, 1
wait "0.003"
dialog set,box1,@text(2)
IF @EVENT(cancelBUTTON)
info You Canceled".."
goto refresh
end
UNTIL @EQUAL(@COUNT(1),0)
dialog set,statis,Done!
goto evloop
:refresh
:stopBUTTON
LIST clear, 1
LIST clear, 2
dialog clear,box1
goto evloop
:box1DBLCLICK
info you double clicked".."
goto evloop
:cancelBUTTON
:close
LIST close, 1
LIST close, 2
exit |
Hope it was of help
I updated(re-edited the script) to make it work from anywhere you select
NOTE:
You may be able to tinker with the WAIT times in the REPEAT-UNTIL to speed it up. (HINT - try taking 1 out or remove both and OR adjust - etc)
I never took time to tweak the speed and misc tweaking - etc..  |
|
| Back to top |
|
 |
|
|
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 You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|