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: 79
Joined: Sat Apr 17, 2010 9:21 am

getting a textfile into a field

Post by Rob van der Sloot »

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: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: getting a textfile into a field

Post by Klaus »

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: 79
Joined: Sat Apr 17, 2010 9:21 am

Re: getting a textfile into a field

Post by Rob van der Sloot »

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: 5480
Joined: Sat Feb 25, 2017 10:45 pm

Re: getting a textfile into a field

Post by bogs »

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