getting a textfile into a field

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Rob van der Sloot
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 78
Joined: Sat Apr 17, 2010 9:21 am

getting a textfile into a field

Post by Rob van der Sloot » Sat Jul 22, 2017 4:48 pm

I try to get a textfile into a field using the following syntax:

put url ("file:" C:/Users/Gebruiker/Documents/URLTest5.txt) into field "BriefTxt"

but I get an error message saying "error in source expression"

please help,

thanks,
Rob

Klaus
Posts: 13824
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: getting a textfile into a field

Post by Klaus » Sat Jul 22, 2017 4:56 pm

Dag Rob,

bijna! :D
...
put url ("file:C:/Users/Gebruiker/Documents/URLTest5.txt") into field "BriefTxt"
...

Groetjes

Klaus

Rob van der Sloot
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 78
Joined: Sat Apr 17, 2010 9:21 am

Re: getting a textfile into a field

Post by Rob van der Sloot » Sun Jul 23, 2017 10:30 am

Ja zo werkt het, bedankt Claus.

Nog een andere vraag.
Ik zoek een LC assistent die standby kan zijn als er problemen zijn met mijn applicatie en ik niet beschikbaar ben.
Ik heb een pittige mySQL based business applicatie gemaakt voor een klant in Duitsland met de potentie van veel meer gebruikers in de toekomst.
Dat kan ik allemaal niet alleen af en zoek dus assistentie, is daar ervaring mee in de LC familie?

hartelijke groet,
Rob

bogs
Posts: 5435
Joined: Sat Feb 25, 2017 10:45 pm

Re: getting a textfile into a field

Post by bogs » Sun Jul 23, 2017 1:44 pm

That second question might be a bit tougher, while many have experience in Lc and SQL, knowing whether they would be able to assist is hard to say. Also if language requirements factor in or not (I'm guessing they do). Might want to edit the post to ask in English as well if they don't.
Image

Post Reply

Return to “Talking LiveCode”