Search found 44 matches

by topcat888
Sat Jan 05, 2013 6:11 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Pattern Match..?
Replies: 2
Views: 3018

Re: Pattern Match..?

Thanks Doc, that easy...
by topcat888
Sat Jan 05, 2013 2:58 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Pattern Match..?
Replies: 2
Views: 3018

Pattern Match..?

Hi,

If I have two text field boxes with numbers entered into them, I then want to be able to compare them and if they match (i.e. the same numbers in each) then if true go on to do something else

Is there an easy way to do this code wise.?

Cheers
by topcat888
Wed Jan 13, 2010 3:25 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Shorten Code..?
Replies: 5
Views: 4375

Re: Shorten Code..?

Sorry..?? Are you refering to the first part of my question..? This would be great if you could answer this at present it will not accept on CheckValues - please see the error below..? card id 1002: compilation error at line 43 (if: error in command) near "on", char 1 -------------------------------...
by topcat888
Wed Jan 13, 2010 1:28 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Shorten Code..?
Replies: 5
Views: 4375

Re: Shorten Code..?

Hi Thanks for that but I get an error for checkValues line..? I've looked in the Dictionary and it isn't there..? card id 1002: compilation error at line 43 (if: error in command) near "on", char 1..? Also is it possible list certain numbers within the code you provided, for example I would like to ...
by topcat888
Wed Jan 13, 2010 12:37 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Shorten Code..?
Replies: 5
Views: 4375

Shorten Code..?

Hi, Is it possible to shorten code like this..? Instead of saying all this: if field "lastNum1" > 18 and field "lastNum1" <37 and field "lastNum2" > 18 and field "lastNum2" <37 and field "lastNum3" > 18 and field "lastNum3" <37 and field "lastNum4" > 18 and field "lastNum4" <37 and field "lastNum5" ...
by topcat888
Tue Jan 12, 2010 9:02 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Clear Data Input Button..?
Replies: 24
Views: 14641

Re: Clear Data Input Button..?

BINGO..! Thank you so much for your help Bernd...

I'm going to go away now and make sure I completely understand (and remember) the way you solved the problem...

:~)
by topcat888
Tue Jan 12, 2010 8:40 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Clear Data Input Button..?
Replies: 24
Views: 14641

Re: Clear Data Input Button..?

All perfect except the blank (cleared) lastNum1 gets carried alone to lastNum2...
by topcat888
Tue Jan 12, 2010 8:11 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Clear Data Input Button..?
Replies: 24
Views: 14641

Re: Clear Data Input Button..?

It clears the lastNum perfectly, but doesn't enter the new number in place of the blank, only after the 'second' new number is entered does it start recording the lastNum's again plus the blank carries along the fields..? Similarly, at the beginning when the first number is entered, the lastNum does...
by topcat888
Tue Jan 12, 2010 7:54 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Clear Data Input Button..?
Replies: 24
Views: 14641

Re: Clear Data Input Button..?

Hi Bernd,

Yes.! thats it thankyou. The only thing is the numbers entered into the lastNum fields (fields 1-18) do the same 'blank moving along' the fields thing..?

Did you rem them out for a reason..?

Thanks
by topcat888
Tue Jan 12, 2010 7:26 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Clear Data Input Button..?
Replies: 24
Views: 14641

Re: Clear Data Input Button..?

Hi Bernd Using that code it does what it used to do, which is clear field 1 then enter new number via number keypad (all good so far) BUT then the blank moves to field 2 whilst the new number is inserted into field 1... Basically the blank moves along the row of fields...Exactly what we had before. ...
by topcat888
Tue Jan 12, 2010 6:35 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Clear Data Input Button..?
Replies: 24
Views: 14641

Re: Clear Data Input Button..?

Hi Sorry, the problem is that the clear last number now works perfectly (using Bernd code) if field 1 is empty then --do the part for the empty field else --do the normal part end if But there is a problem when you press a another button (to enter a new number into field 1) it duplicates the new num...
by topcat888
Tue Jan 12, 2010 8:10 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Clear Data Input Button..?
Replies: 24
Views: 14641

Re: Clear Data Input Button..?

Hi Bernd, Thankyou for your advise. I have done this so far but it does not work properly: if the target contains "button" then put the label of the target into tLabel if tLabel > 0 and tLabel < 13 then put "L" into field "fld1" if tLabel > 12 and tLabel < 25 then put "M" into field "fld1" if tLabel...
by topcat888
Mon Jan 11, 2010 11:59 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Clear Data Input Button..?
Replies: 24
Views: 14641

Re: Clear Data Input Button..?

If not you could just put empty into the field. Thats the problem with that way, if you put empty into fld1 (the first field to be entered) then when the user presses the new number, instead of the blank field being populated by the new number the 'blank' moves one field to the left (field 2) and t...
by topcat888
Mon Jan 11, 2010 8:53 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Clear Data Input Button..?
Replies: 24
Views: 14641

Re: Clear Data Input Button..?

Hi Bernd, Thanks for the reply, I hadn't thought of doing it like that, moving all numbers back one, very novel idea... I was thinking that simply the number that was last input (into the first field) could be erased ready to accept a new one..? If I was to implement your way of doing it, I would us...
by topcat888
Mon Jan 11, 2010 6:55 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Clear Data Input Button..?
Replies: 24
Views: 14641

Re: Clear Data Input Button..?

Hi Mark, Thanks for your reply. The reason this question seems out of context is because it 'was' at the bottom of my 'Moving Numbers' post but received no reply so I started a new post in the hope of getting a reply.! I am aware of the put empty into x but in this instance it is not applicable beca...