PDA

View Full Version : Whats the word on Edit Field?


unknown user
07-04-2002, 04:47 PM
Whats the script to get Edit field to load a file at run time? It doesnt give you any options to do so, that I can see. I tried
%SrcDir%\folder1\folder2\file.txt ... but no joy there!

Mark
07-04-2002, 05:07 PM
Hey Derek,

Try this:

// Read in the Text File
%TextFile% = TextFile.Read (%SrcDir%\MyText.txt)
// Set the text in the Edit Field
EditFieldObject[EditField1].SetText (%TextFile%)

mark.