Hi Richmond,

Am 01.09.2014 um 21:21 schrieb Richmond <[email protected]>:

> In a card of my upcoming "Grendel" for Anglo-Saxon, Gothic and other warped
> Germanic languages/writing-systems I have this script:
> 
> on preOpenCard
>   set the title of stack "grendel" to the short name of this card
> ##  if exists(url("file:" & "GrendelBackUp.rtf")) then

not sure about the syntax for EXISTS and FILE, but -> url("file:"...) is surely 
not the way to go!
Why not just use: if there is a file xyz...?

>      put "exists"
>      set the RTFText of fld "store" to URL ("file:" & "GrendelBackUp.rtf")
>   else
>      put "nope"
>      end if
> end preOpenCard
> 
> Now the file GrendelBackUp.rtf is present where I saved it earlier, from the 
> stack,
> in the default folder.
> 
> So would be glad if somebody could tell me why I keep getting "nope" in my 
> Message Box.

See above!

> Richmond.

Best

Klaus
--
Klaus Major
http://www.major-k.de
[email protected]


_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to