forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


LOADFILE (is it limited)????

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
DW
Contributor
Contributor


Joined: 21 Mar 2003
Posts: 175
Location: UK

PostPosted: Sat Apr 10, 2004 12:49 pm    Post subject: LOADFILE (is it limited)???? Reply with quote

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
View user's profile Send private message
DW
Contributor
Contributor


Joined: 21 Mar 2003
Posts: 175
Location: UK

PostPosted: Sat Apr 10, 2004 12:51 pm    Post subject: Reply with quote

forgot to metion the code above is nothing special, just what i used to test the loadfile function.
Back to top
View user's profile Send private message
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Sat Apr 10, 2004 1:44 pm    Post subject: Reply with quote

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 Smile

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
DW
Contributor
Contributor


Joined: 21 Mar 2003
Posts: 175
Location: UK

PostPosted: Sat Apr 10, 2004 6:20 pm    Post subject: Reply with quote

What about a visual list?

does it have limits?
Back to top
View user's profile Send private message
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Sat Apr 10, 2004 6:40 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
DW
Contributor
Contributor


Joined: 21 Mar 2003
Posts: 175
Location: UK

PostPosted: Sat Apr 10, 2004 8:47 pm    Post subject: Reply with quote

Thank you very much
Back to top
View user's profile Send private message
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Sat Apr 10, 2004 9:51 pm    Post subject: Reply with quote

Glad to help. Smile
_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
vtol
Valued Contributor
Valued Contributor


Joined: 05 Feb 2004
Posts: 656
Location: Eastern Indiana

PostPosted: Sun Apr 11, 2004 12:35 am    Post subject: Reply with quote

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 Smile

I updated(re-edited the script) to make it work from anywhere you select Cool

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.. Wink
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
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

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group