I'm trying to add a Progress-Object to a File Create function (ie. TextFile.WriteFromString) ... but just can't get my head around it???
(Yeah, I know ... why do I need a progress-bar for a textfile, right? Well, let's just say the textfile may be as big as 99mb which can take over 10 seconds to forge ... so it'd be nice to have a progress-bar)
Here's my project code thus far. (Can someone help out with how to code the Progress Object for this?):
Code:fSize = Input.GetText("Input1"); index = ComboBox.GetSelected("ComboBox1"); if index == 1 then mFactor = 1 elseif index == 2 then mFactor = 1024 elseif index == 3 then mFactor = 1048576 end fSizeOutput = fSize * mFactor strValue = " " strOutput = String.Repeat(strValue, fSizeOutput); fSelect = Dialog.FileBrowse(false, "Save File File", _DesktopFolder, "All Files (*.*)|*.*|", "", "", false, false); fPath = Table.Concat(fSelect, "", 1, TABLE_ALL); TextFile.WriteFromString(fPath, strOutput, false)

Reply With Quote

