Search found 9 matches

by monkey
Sun Mar 09, 2014 9:45 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Isolating and displaying imported file names
Replies: 3
Views: 3060

Re: Isolating and displaying imported file names

Alternatively: Is it possible to put information in the text field before the main array content and filter it off on retrieval? For example, if my text file was a collection of a student's subjects and grades, could it be saved as: Name: Random Student Class: 10QC Subject [tab] Mock Grade [tab] Cha...
by monkey
Sun Mar 09, 2014 9:30 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Isolating and displaying imported file names
Replies: 3
Views: 3060

Isolating and displaying imported file names

Hi All, I can import a text file and load its content into an array or Datagrid. Yay me. BUT... How do I isolate the file name and display it in a label field? So, if the text file was called "my text file" (they're being saved without the ".txt" extension and I really don't see a need to change tha...
by monkey
Thu Feb 20, 2014 2:59 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Can't end IF statements
Replies: 3
Views: 2600

Re: Can't end IF statements

D'oh!

Thanks again! :)
by monkey
Thu Feb 20, 2014 2:11 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Can't end IF statements
Replies: 3
Views: 2600

Can't end IF statements

Hi all, Can somebody please tell me what I'm doing wrong here? I've typed the following code: repeat with x = 1 to number of characters in currentWord if wordArray[x] is " " then put "/" after field "legend" else put "*" after field "legend" end if end repeat On application, I receive the following ...
by monkey
Wed Feb 19, 2014 7:19 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Performing calculations in Data Grids
Replies: 6
Views: 4106

Re: Performing calculations in Data Grids

Brilliant! Got it all working.

Thanks again! :)
by monkey
Tue Feb 18, 2014 10:52 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Performing calculations in Data Grids
Replies: 6
Views: 4106

Re: Performing calculations in Data Grids

Thanks! :)

One last question:

When I import a file and have its contents dropped into a datagrid, I also want to display the name of the file in a label field.

Can anyone advise on how I isolate the file name and put it into the field?

Thanks again!
by monkey
Mon Feb 17, 2014 9:49 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Performing calculations in Data Grids
Replies: 6
Views: 4106

Performing calculations in Data Grids

Hello everybody, I'm slowly getting my head around using data grids and arrays in LiveCode. My question is this: Once I've populated a datagrid (let's say with one column of product names and another of prices), how do I then perform calculations with the figures in the 'prices' column? I just want ...