Search found 55 matches

by ARAS
Fri Dec 26, 2014 7:14 pm
Forum: Internet
Topic: matchText & Regex help!
Replies: 2
Views: 5211

Re: matchText & Regex help!

Thanks Pete! It works!
by ARAS
Wed Dec 24, 2014 8:29 pm
Forum: Internet
Topic: matchText & Regex help!
Replies: 2
Views: 5211

matchText & Regex help!

Hello all,

I need some help. I need to get the number which is after "id_no=" in a field.

I have tried to get it with the code below but the answer box is always empty. It doesn't return the value. Is there a way to return the value that matches with regex? For example, 21234 from the link below ...
by ARAS
Mon Dec 09, 2013 7:20 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Static Variable and Data Grid
Replies: 7
Views: 5555

Re: Static Variable and Data Grid

Hi Klaus,

If I use global variable method, it will increment the value in every run.

Let's say. We have 15 rows which have data in it, and I delete all the data in row 9. Thus I will have 14 in total. However, my global variable will be 16(instead of 15), so it will leave a blank row. Row number ...
by ARAS
Sun Dec 08, 2013 10:58 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Static Variable and Data Grid
Replies: 7
Views: 5555

Re: Static Variable and Data Grid

Oh I've just realized that when I delete all the data in a row and enter a new entry. I continues from the following row not from the empty row. Do you have any solution in mind?

ARAS
by ARAS
Sun Dec 08, 2013 10:52 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Static Variable and Data Grid
Replies: 7
Views: 5555

Re: Static Variable and Data Grid

Thanks Klaus,

You are the hero of the day! :)

Could you explain what exactly dispatch does?

Best wishes,
ARAS
by ARAS
Sun Dec 08, 2013 8:39 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Static Variable and Data Grid
Replies: 7
Views: 5555

Re: Static Variable

Thanks Klaus,

It works but not like I thought.

I have a datagrid in my project. I want to enter datas into the datagrid. Whenever I try to enter a new entry. It replaces with the old one. I want the second entry or the former entry to go to the next row.

This is my code.
on mouseUp
global ...
by ARAS
Sun Dec 08, 2013 7:30 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Static Variable and Data Grid
Replies: 7
Views: 5555

Static Variable and Data Grid

Hi,

Does anyone know how to create a static variable?

I want to set a variable to a specific number for the first run but also increment the value on every run.

let's say. I have a variable called tCount, and it is 0 at the beginning. At the end of my code, I write "put tCount + 1 into tCount ...
by ARAS
Sun Dec 08, 2013 6:58 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Combobox to First State
Replies: 4
Views: 4581

Re: Combobox to First State

Hi Klaus,

It works.

Thank you,
ARAS
by ARAS
Sun Dec 08, 2013 6:33 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Combobox to First State
Replies: 4
Views: 4581

Combobox to First State

Hello,

I have three comboboxes(option type buttons). They are called cDay, cMonth, cYear.

They are basically for Day, Month and Year. I want to reset those comboboxes after I click a button.

Let's say I chose 5 June 1945 and I clicked a button called "Submit".

I want to the comboboxes to return ...
by ARAS
Sun Nov 24, 2013 7:33 pm
Forum: Internet
Topic: Regular Expressions and matchText Help
Replies: 16
Views: 18104

Re: Regular Expressions and matchText Help

Thanks Thierry.

ARAS
by ARAS
Fri Nov 22, 2013 5:15 pm
Forum: Internet
Topic: Regular Expressions and matchText Help
Replies: 16
Views: 18104

Re: Regular Expressions and matchText Help

Hi Thierry,

Thank you!!! It works!

Yes, I know they are swapped because they are different. Even though they are different, your code works. It is exactly what I want.

I like the idea of r1+r2. You are clever.

It will take some time for me to understand the code in detail. I am at work right now ...
by ARAS
Thu Nov 21, 2013 5:01 pm
Forum: Internet
Topic: Regular Expressions and matchText Help
Replies: 16
Views: 18104

Re: Regular Expressions and matchText Help

Simon I have tried it but gives not found.

Seems like the problem is not about tab.
ARAS
by ARAS
Thu Nov 21, 2013 9:23 am
Forum: Internet
Topic: Regular Expressions and matchText Help
Replies: 16
Views: 18104

Re: Regular Expressions and matchText Help

Hi ARAS,
Have you tried:
put tab & tab & tab & tab & tab & tab into s
tab is a constant.

Simon

Hi Simon,

I tried this one but didn't work. Maybe it is because of something else. Do you see any other mistakes? I can't see one :(
put tab into item 6 of s

I will try with your code later when ...
by ARAS
Wed Nov 20, 2013 5:21 pm
Forum: Internet
Topic: Regular Expressions and matchText Help
Replies: 16
Views: 18104

Re: Regular Expressions and matchText Help

I copied the space and check for the ascii code. It is a Tab indeed. I got ASCII 9. I have changed the code. Instead of space, I have used this lines, but no difference.

This one seems creating commas also.
put numToChar(9) into item 6 of s


However, this one didn't work too.
put numToChar(9 ...
by ARAS
Tue Nov 19, 2013 7:47 pm
Forum: Internet
Topic: Regular Expressions and matchText Help
Replies: 16
Views: 18104

Re: Regular Expressions and matchText Help

In the field text in my last reply, it seems there are many spaces, but indeed there are only 6. When I click edit. I can see it is 6. However, they are bigger than normal space character -maybe as big as TAB key.