Search found 43 matches

by yeldarb
Fri Dec 29, 2017 3:01 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: dispatch "DeleteLine" to group not working
Replies: 4
Views: 2872

Re: dispatch "DeleteLine" to group not working

Thanks, but the command is being dispatched from the card script. I tried what you suggested and still no luck. I also tried re-filling the DG with the affected data (since I delete the pertinent line from the data and save it to a file) but that doesn't work either. The grid gets populated on openC...
by yeldarb
Thu Dec 28, 2017 8:45 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: dispatch "DeleteLine" to group not working
Replies: 4
Views: 2872

dispatch "DeleteLine" to group not working

I have a datagrid object that gets populated with data correctly. Each row has a button to delete that record. After some processing I send the "DeleteLine" command: dispatch "deleteline" to group "recordsGrid" with whichRecLine but nothing happens to the datagrid. What's odd is that if I send the e...
by yeldarb
Wed Dec 27, 2017 5:39 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: cannot export char U+0000 in nul-terminated string buffer
Replies: 8
Views: 5907

cannot export char U+0000 in nul-terminated string buffer

I'm using a browser widget to display formatted documents. I frequently get an error: execution error at line 20 (LCB Error in file browser.lcb at line 409: cannot export char U+0000 in nul-terminated string buffer) near "foreign", char 47 I can't seem to track down the issue. It's not consistent. I...
by yeldarb
Sat Dec 23, 2017 4:41 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Widget sources?
Replies: 6
Views: 4691

Widget sources?

I've come across references to widgets and extending LC, and I know there are a lot of additional widgets in LC9. But I can't seem to find any central repository or director for widgets. I'm just looking for a decent progress bar, and I've looked at mobGui but that looks defunct. LC is great, but th...
by yeldarb
Fri Dec 22, 2017 9:18 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Load field into mobile browser control
Replies: 7
Views: 4452

Re: Load field into mobile browser control

The LC "htmltext" property does unfortunatley not support CSS and only a very limited subset of HTML. Using the browser widget and a stylesheet in the html document I'm able to get a nicely styled bar graph: Screen Shot 2017-12-22 at 3.16.40 PM.png However, I'm running into two other issues: 1. I g...
by yeldarb
Fri Dec 22, 2017 2:58 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Load field into mobile browser control
Replies: 7
Views: 4452

Re: Load field into mobile browser control

Wow, great! I wasn't even aware of the browser widget.

So I just tested on iOS, simulator and device, and it looks great but internal hyperlinks don't seem to be working.
by yeldarb
Fri Dec 22, 2017 2:43 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Load field into mobile browser control
Replies: 7
Views: 4452

Re: Load field into mobile browser control

The field contains the raw html, which includes (among other things) a styled bar chart that requires the mobile browser control to render (I tried just the field but it doesn't read and render CSS). If there's a way to render the CSS in a field that might work (though it wouldn't have the nice nati...
by yeldarb
Thu Dec 21, 2017 7:54 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Load field into mobile browser control
Replies: 7
Views: 4452

Load field into mobile browser control

Is there any way to load a field's content into a mobile browser control? (short of writing it out as a file and loading that)?
by yeldarb
Tue Dec 19, 2017 5:54 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: function returns string with quotes
Replies: 13
Views: 7087

Re: function returns string with quotes

Thanks, it's a bit of a challenge coming from languages with type casting. Is there any way to force casting in LC?
by yeldarb
Tue Dec 19, 2017 5:16 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: function returns string with quotes
Replies: 13
Views: 7087

Re: function returns string with quotes

Related question--I have five buttons, and for the sake of simplicity I have named them "1", "2", "3", "4", and "5" because it's a rating system and I can just put the name of the btn into the fld. But when I reference them with a loop: repeat with i = 1 to 5 set the icon of btn i to the id of image...
by yeldarb
Thu Dec 14, 2017 6:01 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: function returns string with quotes
Replies: 13
Views: 7087

Re: function returns string with quotes

Ok, I see I need to study the difference between single and double quotes... doubles work fine, singles get passed for some reason.
by yeldarb
Thu Dec 14, 2017 5:46 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: function returns string with quotes
Replies: 13
Views: 7087

function returns string with quotes

Probably something really simple... So I've got a function that simply returns a string "high", "low" and "average" based on the value passed to it. put getLevel (theValue) into theLevel function getLevel aValue if aValue < 45 then return 'low' else if aValue > 55 then return 'high' else return 'ave...

Go to advanced search