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
Location: USA

Newbie code help.

Post by shawnblc » Thu Sep 25, 2014 3:26 am

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 » Thu Sep 25, 2014 4:01 am

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
Location: USA

Re: Newbie code help.

Post by shawnblc » Thu Sep 25, 2014 8:49 pm

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

Return to “Getting Started with LiveCode - Complete Beginners”