Newbie code help.

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
shawnblc
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 342
Joined: Fri Jun 01, 2012 11:11 pm

Newbie code help.

Post by shawnblc »

I'm not getting an errors, but it's not working either.
my txt file contains:

test 123
testing 456

Code: Select all

   set itemdel to tab
   put fld "fldUser" into tUser
   put item 1 of URL "http://url.com/c/users.txt" into tLoginUser
   if tUser = tLoginUser then
      launch URL "http://yahoo.com"
   end if
   
* This is just for my own learning.
Last edited by shawnblc on Thu Sep 25, 2014 9:16 pm, edited 2 times in total.
sefrojones
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 447
Joined: Mon Jan 23, 2012 12:46 pm

Re: Newbie code help.

Post by sefrojones »

I replaced "item" for "word" and it worked in LC 7.0 (RC2) :D

OR

Changing the itemdelimiter to space works also.


--Sefro
shawnblc
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 342
Joined: Fri Jun 01, 2012 11:11 pm

Re: Newbie code help.

Post by shawnblc »

sefrojones wrote:I replaced "item" for "word" and it worked in LC 7.0 (RC2) :D

OR

Changing the itemdelimiter to space works also.


--Sefro
lol. good to know.
Post Reply