| View previous topic :: View next topic |
| Author |
Message |
LinkSisco Valued Newbie
Joined: 17 May 2002 Posts: 30 Location: UK
|
Posted: Mon Aug 19, 2002 6:30 pm Post subject: How can I open a file in an edit field? |
|
|
Hi, its me again.
I have a program and i want to be able to open a file and it display in my edit box.
I have done the open file bit but i cant get it to show in the edit.
I can with a list, but it needs to be an edit box.
Thank you. |
|
| Back to top |
|
 |
Protected Valued Contributor


Joined: 02 Jan 2001 Posts: 228 Location: Portugal
|
Posted: Mon Aug 19, 2002 6:35 pm Post subject: |
|
|
| DIALOG SET,YourEditBox,@TEXT(YourList) |
|
| Back to top |
|
 |
SnarlingSheep Professional Member


Joined: 13 Mar 2001 Posts: 759 Location: Michigan
|
Posted: Mon Aug 19, 2002 6:37 pm Post subject: |
|
|
Try loading the file into a list and then setting the edit box to hold the contents of the list, like:
| Code: |
LIST CREATE,1
LIST LOADFILE,1,C:\PathTo\TextFile.txt
DIALOG SET,Edit1,@TEXT(1)
|
_________________ -Sheep
My pockets hurt... |
|
| Back to top |
|
 |
Protected Valued Contributor


Joined: 02 Jan 2001 Posts: 228 Location: Portugal
|
Posted: Mon Aug 19, 2002 6:37 pm Post subject: |
|
|
You should always try exploring the help file of VDS, it's all there That's what I do, like, I search for the words I think that could be the desired command\function, or I go to related commands and look in the "See also:" list... |
|
| Back to top |
|
 |
LinkSisco Valued Newbie
Joined: 17 May 2002 Posts: 30 Location: UK
|
Posted: Mon Aug 19, 2002 6:42 pm Post subject: |
|
|
Im so stupid...
Sorry about that, I guess I should read the help more.
Thank you very much tho... |
|
| Back to top |
|
 |
|