I have an iOS app that generates a text file (actually it's a .gpx file, which is a text in XML format). I want to allow the user to share the file in the usual ways (copy, mail, etc).
I create a file and put it into my "documents" folder within the app and store the path to it in a local variable, tPath. The file's name is stored in tFileName. Then at the appropriate time, the app executes:
mergPopActivity tFileName,,url ("file:" & tpath)
Although Elanor at LiveCode suggested the above, I can't make it work. The modal window opens, but what it seems to want to share is just the file name, not the file itself. Of course I could put the entire text file into the first parameter, but then it wouldn't be a file, just a text string, so that can't be right, and the file wouldn't have a name. I have also tried the following, also unsuccessfully:
mergPopActivity tFileName,,url ("binfile:" & tpath)
I guess I have got the format wrong, but the documentation (LC Dictionary) doesn't give sufficiently precise instructions. I believe Elanor is working on a lesson that will clarify this, but meanwhile what did I do wrong? Hoping someone can help.
mergPopActivity for iOS - can't make it work
This is the place to get technical support and discuss all things to do with MergEXT
Moderators: FourthWorld, heatherlaine, Klaus, robinmiller, monte
-
- VIP Livecode Opensource Backer
- Posts: 9
- Joined: Sun Apr 09, 2006 10:03 am
- Location: UK and France
- Contact:
mergPopActivity for iOS - can't make it work
Post by livfoss » Fri Oct 30, 2020 10:38 pm
Graham Samuel / The Living Fossil Co. / UK & France
Jump to
- LiveCode Community
- ↳ Announcements
- ↳ Developer Services Marketplace
- ↳ User Groups and Events
- ↳ SoCal LiveCode Group
- ↳ Greater Toronto Area LiveCode Users Group
- ↳ Off-Topic
- ↳ Made With LiveCode
- Getting Started With LiveCode
- ↳ Getting Started with LiveCode - Complete Beginners
- ↳ Getting Started with LiveCode - Experienced Developers
- ↳ Converting to LiveCode
- ↳ App Building Course
- ↳ Simple Messages
- ↳ Calculator
- ↳ Notes
- ↳ Clock
- ↳ Web Browser
- ↳ Weather
- ↳ Compass
- ↳ Photos
- Developing With LiveCode
- ↳ Talking LiveCode
- ↳ Databases
- ↳ Games
- ↳ Internet
- ↳ Multimedia
- ↳ Software Engineering
- ↳ Version Control
- ↳ Feature Proposals
- ↳ Bug Triage
- ↳ Legacy Project: MetaCard
- Extending LiveCode
- ↳ Using Plugins for Customizing the LiveCode IDE
- ↳ Using Externals
- ↳ Making IDE Plugins
- ↳ Building Externals
- ↳ LiveCode Builder
- Platform Specific
- ↳ Windows
- ↳ Mac OS
- ↳ Linux
- ↳ iOS Deployment
- ↳ Android Deployment
- ↳ CGIs and the Server
- ↳ HTML5
- ↳ Raspberry Pi
- Academic Endeavors
- ↳ Teaching with LiveCode
- ↳ Research and Post Secondary
- ↳ LiveCode University
- ↳ Educational Outreach
- Livecode Open Source Archived Forum- closed to posting
- ↳ Engine Contributors
- ↳ IDE Contributors
- ↳ Documentation and Tutorials
- ↳ Brainstorms
- ↳ Community Projects
- ↳ rIDE
- Third Party Extension Support
- ↳ Marketing Your Products
- ↳ Animation Engine
- ↳ chartsEngine
- ↳ MobGUI
- ↳ lcTaskList
- ↳ SQL Yoga
- ↳ MergEXT
- ↳ Data Grid Helper
- ↳ idea2app and Coding School
- ↳ Admin Archive
- LiveCode Hosting
- Forum Archives
- ↳ Archived: Third Party Extension Support
- ↳ rTree
- ↳ rGrid
- ↳ Data Tree
- ↳ Archived: LiveCode Open Source
- ↳ LiveCode Global Jam
- ↳ Testing Support
- ↳ Archived: Academic Endeavors
- ↳ September Academy
- ↳ Summer School 2013
- ↳ Archived: Project Specific
- ↳ Business and Kiosks
- ↳ Digital Art and Portfolios