Search found 13 matches

by pwr
Fri Jun 19, 2009 2:19 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Getting started with datagrid
Replies: 3
Views: 3137

Thank you SparkOut, that worked like a charm.

I knew one of the Revolution 'gurus' would be able to help out a 'newbie' like me....pwr :)
by pwr
Fri Jun 19, 2009 2:27 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Getting started with datagrid
Replies: 3
Views: 3137

Getting started with datagrid

I'm trying out the datagrid for the first time. I want to display rows of numeric results and have encountered a trivial (I suspect) problem. If I use the following lines of code to place two rows of data in my datagrid, I end up overwriting the first line with the second. I thought that by appendin...
by pwr
Mon Jun 15, 2009 11:18 pm
Forum: Talking LiveCode
Topic: Creating an array of floating point values
Replies: 2
Views: 2687

Hi Mark,

No (good) reason. This was my first attempt at initializing a numeric array and I didn't think of the initial 'put' statement as using strings. I changed the code to use strings before my split and that seems to have fixed things.

Thanks...pwr
by pwr
Sun Jun 14, 2009 9:20 pm
Forum: Talking LiveCode
Topic: Creating an array of floating point values
Replies: 2
Views: 2687

Creating an array of floating point values

I have the following function in Revolution: function h1_pT p, T -- put 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 8, 8, 21, 23, 29, 30, 31, 32 into I1 put -2, -1, 0, 1, 2, 3, 4, 5, -9, -7, -1, 0, 1, 3, -3, 0, 1, 3, 17, -4, 0, 6, -5, -2, 10, -8, -11, -6, -29, -31, ...
by pwr
Sat Jun 06, 2009 3:08 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Trouble Replicating a Do Loop Structure
Replies: 3
Views: 3548

Trouble Replicating a Do Loop Structure

I am trying to convert an existing program and have the following Revolution function. function s1_pT p, T -- --Release on the IAPWS Industrial formulation 1997 for the Thermodynamic Properties of Water and Steam, September 1997 --5 Equations for Region 1, Section. 5.1 Basic Equation --Eqution 7, Ta...
by pwr
Thu Apr 30, 2009 10:45 pm
Forum: Talking LiveCode
Topic: Superscript of subscript
Replies: 7
Views: 6305

Thank you both for the advice. It's good to get the same answer from two sources! Sturgis, I used your code sample and it seemed to work fine for me after I changed the 'char (i-tstart)' to just 'char i'. I need to read up and make sure I understand/appreciate the difference between a selectedText a...
by pwr
Thu Apr 30, 2009 2:12 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Syntax Error
Replies: 1
Views: 2481

Syntax Error

For my first Revolution app I have the user select text from a field and the selected text displays in another field. Although this is simple enough, the selected text may use the textShift property to sub- or superscript certain characters. Since I wanted the selected text to display in the other f...
by pwr
Thu Apr 30, 2009 12:41 am
Forum: Talking LiveCode
Topic: Superscript of subscript
Replies: 7
Views: 6305

Sorry, to ask for additional help, but I modified the code sample given to me above to use the selectedText. Although the compiler doesn't have a problem I get a run-time error on the indicated line. Here's my script... on selectionChanged --update the input unit label with the selected input unit p...
by pwr
Tue Apr 28, 2009 2:38 am
Forum: Talking LiveCode
Topic: Superscript of subscript
Replies: 7
Views: 6305

Sorry, but I was away for a few days. Thanks for the suggestion using the array, I think it might work for me as my text strings are short (<25-30 chars). As far as my script goes, here it is... on selectionChanged --update the input unit label with the selected input unit put the selectedText of me...
by pwr
Tue Apr 21, 2009 12:57 am
Forum: Talking LiveCode
Topic: Superscript of subscript
Replies: 7
Views: 6305

Superscript of subscript

I'm new to Revolution and working with a 30 day license. In my first app I have a field with a number of text items. For many of these text items I use the 'textShift' feature to sub- or superscript a specific character in a text item string. When a user selects one of these text items, I place the ...
by pwr
Thu Apr 16, 2009 11:01 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Can't find handler
Replies: 4
Views: 5264

Thank you very much.

I changed my function to a command and now it's working.

Again, thanks very, very much...pwr
by pwr
Thu Apr 16, 2009 9:01 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Can't find handler
Replies: 4
Views: 5264

Here's the custom handler in my stack script... function ConvertUnits switch case the value of SelectedProperty is "Area" ConvertAreas --Not yet done break case the value of SelectedProperty is "Length" break case the value of SelectedProperty is "Temperature" ConvertTemperatures break end switch en...
by pwr
Thu Apr 16, 2009 8:47 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Can't find handler
Replies: 4
Views: 5264

Can't find handler

Hi, I'm new to Revolution and have the following problem with my first app. I have a single stack and a single card in my app. There are several controls on my card. I've created a custom handler named ConvertUnits that I placed in my stack script. However, when I try to execute the handler using ke...