Search found 159 matches

by cmhjon
Fri Oct 09, 2020 3:18 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Split a Fraction into Words?
Replies: 5
Views: 3294

Re: Split a Fraction into Words?

Hi Elanor,

Thank you so much! That did the trick!

Best regards,
Jon :)
by cmhjon
Fri Oct 09, 2020 2:14 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Split a Fraction into Words?
Replies: 5
Views: 3294

Split a Fraction into Words?

Hi all, Suppose I have "9/32" in a text field (the field could contain one of MANY other mathematical fractions). Via script, I want to separate it into parts. This is the script I have: on mouseUp set the itemDelimiter to "/" answer word 1 of field "Test" end mouseUp It still answers "9/32" so how ...
by cmhjon
Thu Oct 08, 2020 3:09 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Change Option Menu SELECTION via Script?
Replies: 6
Views: 2640

Re: Change Option Menu SELECTION via Script?

Hi Craig,

Setting the LABEL will visually change the button to say "Please Select:" but it does not change its SELECTION. When my app does all its magic, it gets the SELECTION of the button in question.

Thank you,
Jon :)
by cmhjon
Thu Oct 08, 2020 2:19 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Change Option Menu SELECTION via Script?
Replies: 6
Views: 2640

Re: Change Option Menu SELECTION via Script?

Hi Craig, Thank you for the reply. It would appear that the menuHistory command does in fact do the trick. After testing the command, the SELECTION shows correctly. The label command by itself does not work as the SELECTION still shows "Option 2" as the selected item. Best regards, Jon Hi. There are...
by cmhjon
Thu Oct 08, 2020 1:25 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Change Option Menu SELECTION via Script?
Replies: 6
Views: 2640

Change Option Menu SELECTION via Script?

Hi all, I have an option menu with the following menu items: Please Select: Option 1 Option 2 Option 3 Suppose the user selects "Option 2" from the menu. I need to be able to "reset" the option menu back to "Please Select:" via script but I cannot find a way to do this. I can GET the selection of th...
by cmhjon
Mon Sep 28, 2020 9:23 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Rounding to the nearest 1/16
Replies: 7
Views: 3883

Rounding to the nearest 1/16

Hi everyone, My math skills once again fail me. I need to have LC round a measurement UP to the nearest 1/16 of an inch. For example: If the measurement is "4.333333333333333333" and it's rounded up it to the nearest 1/16 of an inch, the result would be 4.375 but because the measurement is closer to...
by cmhjon
Fri Aug 14, 2020 9:05 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Text Box Rotation?
Replies: 3
Views: 2349

Text Box Rotation?

Hi all,

I see that graphics can be rotated but I don't see where text boxes can be rotated. If they can't, is there a place on the LC website to make a feature request?

Thank you,
Jon :-)
by cmhjon
Thu Aug 06, 2020 6:09 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Script to resize text to fit text box?
Replies: 4
Views: 2838

Script to resize text to fit text box?

Hi all, I am looking for a way (via script) to look at some text in a text box and ensure the text box is wide enough to fully show all text characters within and if not decrease the text size accordingly. In this case, text boxes will contain a decimal measurement in inches. A text box could contai...
by cmhjon
Tue Jul 14, 2020 2:01 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Integrate fonts in software
Replies: 32
Views: 15021

Re: Integrate fonts in software

Thank you for sharing this info. I too wanted a way to embed fonts within my app so that the computers running this app didn't need the fonts installed prior. One thing I wanted to mention though is that my app didn't display the fonts quite right even after adding the necessary preOpenStack handler...
by cmhjon
Tue Mar 17, 2020 5:17 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Read from a Spreadsheet?
Replies: 7
Views: 4308

Re: Read from a Spreadsheet?

Hi dunbarx,

Thank you for the reply. Although the script works, all I get is gibberish in the resulting text field.

Thanks,
Jon
by cmhjon
Tue Mar 17, 2020 3:51 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Read from a Spreadsheet?
Replies: 7
Views: 4308

Read from a Spreadsheet?

Hi all, I am looking into possibly building a purchase order app that would get its vendor/product data from a centrally-stored spreadsheet. Can LC natively "read" a spreadsheet? My idea would be to have one worksheet (tab) for each vendor and then within each sheet, there would be columns for produ...
by cmhjon
Thu Mar 21, 2019 2:47 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Streaming Audo Player?
Replies: 18
Views: 11266

Re: Streaming Audo Player?

If you are able to find/build a solution, please let me know!

Jon
by cmhjon
Thu Mar 21, 2019 2:38 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Streaming Audo Player?
Replies: 18
Views: 11266

Re: Streaming Audo Player?

Hi Mark,

I am sorry to say that I didn't. For now, I've given up on it.

Best regards,
Jon
by cmhjon
Mon Feb 18, 2019 10:38 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Rounding dollar value to nearest $5
Replies: 10
Views: 7475

Re: Rounding dollar value to nearest $5

Actually, I think I may have it now: function roundToFive var put round(var) into var put the last char of var into lastChar if lastChar is in "05" then return var if lastChar is in "12" then return var - (lastChar - 5) if lastChar is in "34" then return var + (5 - lastChar) if lastChar is in "67" t...
by cmhjon
Mon Feb 18, 2019 8:57 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Rounding dollar value to nearest $5
Replies: 10
Views: 7475

Re: Rounding dollar value to nearest $5

Hi Craig, Your function almost works (and the "almost" is my fault) because in my original post, I forgot one key word. The resulting price must be rounded... UP ...to the next whole $5. So, when I use your function against the number 71 or 72, I get 70. Can an adjustment be made to the function? Fo...

Go to advanced search