Search found 14 matches

by stevenwhyte
Wed Sep 09, 2015 8:07 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Displaying one record in a DataGrid at a time
Replies: 12
Views: 7189

Re: Displaying one record in a DataGrid at a time

Ok - many thanks for your help. Hopefully one last question. What about the code for the back button.

I've tried:

Global tList
local tCurrentDisplayedLine

on mouseUp
if tCurrentDisplayedLine = EMPTY OR tCurrentDisplayedLine > 6 then
put -1 into tCurrentDisplayedLine
end if
Put line ...
by stevenwhyte
Tue Sep 08, 2015 8:02 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Displaying one record in a DataGrid at a time
Replies: 12
Views: 7189

Re: Displaying one record in a DataGrid at a time

Many thanks for all your help! This is working as expected. I should have known that DGData was the group. I had never used DGText before and understand how this works now.

With regards to record navigation, is there an increment command in LiveCode that I can use to automatically increment the ...
by stevenwhyte
Tue Sep 08, 2015 8:26 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Displaying one record in a DataGrid at a time
Replies: 12
Views: 7189

Re: Displaying one record in a DataGrid at a time

Ok, having a little issue with the code that you supplied me with. Probably something I am doing wrong. I have created a table field and called it "BasicTable" and I've added the following code to a button which includes the two lines at the bottom that you supplied above.

Any chance you could take ...
by stevenwhyte
Mon Sep 07, 2015 12:43 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Displaying one record in a DataGrid at a time
Replies: 12
Views: 7189

Re: Displaying one record in a DataGrid at a time

Many thanks for your kind replies. You are always so helpful on here.

I will give both techniques a try.

Thanks again!

Steven
by stevenwhyte
Sun Sep 06, 2015 7:37 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Displaying one record in a DataGrid at a time
Replies: 12
Views: 7189

Displaying one record in a DataGrid at a time

Hi,

I have created a program which displays some graphics cards into a datagrid.

I was wanting to just display one record from the data grid at a time and use a back and forward button to navigate between the records. Is this possible? If so, how do I go about doing it?

I've uploaded the stack ...
by stevenwhyte
Tue Sep 01, 2015 12:44 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Mobile App Development Setup in LiveCode
Replies: 3
Views: 3128

Re: Mobile App Development Setup in LiveCode

Hi,

After installing the LiveCode version above, I am experiencing a further problem. I am getting an invalid identifier message despite pointing LiveCode to a newly created provisioning profile.

The complete error message is below. Can anyone help with a possible solution.

Many thanks in advance ...
by stevenwhyte
Tue Sep 01, 2015 7:28 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Mobile App Development Setup in LiveCode
Replies: 3
Views: 3128

Re: Mobile App Development Setup in LiveCode

Many thanks Simon - I appreciate your response. All is working fine.

Steven
by stevenwhyte
Mon Aug 31, 2015 1:48 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Mobile App Development Setup in LiveCode
Replies: 3
Views: 3128

Mobile App Development Setup in LiveCode

Hi,

It has been a year since I last used LiveCode to create mobile apps with my Computing Science students in LiveCode and the software has changed a bit.

I have registered as an Apple Developer for the year and have updated XCode (currently 6.4). I am using LiveCode version 8 (dp2).

I am trying ...
by stevenwhyte
Sat Jan 17, 2015 8:57 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Extracting part of a string from a variable
Replies: 2
Views: 2337

Extracting part of a string from a variable

If I have some text, e.g. "elephant" stored in the variable MyString, how would I extract the last three characters from the variable MyString to get "ant"?

In other languages, the function Right(MyString, 3) would do this but there doesn't seem to be such a function in LiveCode.

Many thanks ...
by stevenwhyte
Sat Jan 17, 2015 8:50 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Using Records
Replies: 2
Views: 3209

Re: Using Records

Many thanks for your help with this Klaus. It worked perfectly! :D
by stevenwhyte
Mon Jan 12, 2015 7:59 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Using Records
Replies: 2
Views: 3209

Using Records

Hello,

I need some help. I've not had much experience of implementing a record data structure in LiveCode and wondered how the following pseudocode would translate into LiveCode:

TYPE runner IS RECORD {STRING Participant, REAL Time, BOOLEAN Qualified}
SET race[0] TO {Participant = “Mark”, Time ...