LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!
on mouseUp
local myVar
open file specialFolderPath("desktop") & "/myData.html" for write -- creates a file for Revolution to write to
put "<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'>" & CR into myVar
put myGoo into field "Field1"
write myVar to file specialFolderPath("desktop") & "/myData.html" -- writes the text placed in the local variable into the open text file we created
close file specialFolderPath("desktop") & "/myData.html" -- closes/saves the text file containing the text form the field/local variable into a text file on the desktop
end mouseUp
Have you some help for me? Thx for all.
Andy Bertini Linux: Mint 17.1 Cinnamon - Gambas 3.6.2 - Gridbox 2.99.174 patched
Mac: OSX Yosemite - Livecode Community 7.0
Blog mzSoftware: http://crmforce.netsons.org/myzone
Email: and.bertini@gmail.com
put (all the data from above) into url ("file:" & specialFolderPath("desktop") & "/myData.html")
thx Simon, this program is very useful, i made the same process hand by hand ....
the only problem is to replace the internal character " in every line with character '
Simon wrote:Hi Andy,
Glad it helps.
Dreamweaver created that page with " (quote/double quote) not ' (apostrophe/single quote). Why do you use the single quote?
Simon
Single quote internally works Well when creating an http page with code.
example: string "this is a 'test'" can't do this output: "this is a "test"" or
"This is a" & "test"
The reason is my Gambas code at the top of the page. I'm porting my software to livecode.
Andy Bertini Linux: Mint 17.1 Cinnamon - Gambas 3.6.2 - Gridbox 2.99.174 patched
Mac: OSX Yosemite - Livecode Community 7.0
Blog mzSoftware: http://crmforce.netsons.org/myzone
Email: and.bertini@gmail.com