Search found 175 matches

by kaveh1000
Wed Feb 20, 2019 4:29 pm
Forum: Talking LiveCode
Topic: Problem with regex at start of line
Replies: 6
Views: 92

Re: Problem with regex at start of line

I normally use the backslash breaks with multi-parameter functions. The indenting makes things more readable, especially when there is regex as a parameter!!
by kaveh1000
Wed Feb 20, 2019 10:03 am
Forum: Talking LiveCode
Topic: Problem with regex at start of line
Replies: 6
Views: 92

Re: Problem with regex at start of line

Thierry to the rescue! That works. I had never come across that!

Thank you as ever...

Regards
Kaveh
by kaveh1000
Wed Feb 20, 2019 8:56 am
Forum: Talking LiveCode
Topic: Problem with regex at start of line
Replies: 6
Views: 92

Problem with regex at start of line

I am reasonably familiar with Regex and its implementation in LiveCode. I currently have a problem that relates to the start of string, i.e. using the caret: "^". In the attached stack I am trying to remove all leading spaces from each line, using: put replacetext( \ fld "Original", \ "(^ +)", \ "")...
by kaveh1000
Tue Feb 19, 2019 2:10 pm
Forum: Talking LiveCode
Topic: A group that can delete itself
Replies: 10
Views: 162

Re: A group that can delete itself

:-) I started with Hypercard beta, before Apple had a manual. Been dabbling ever since. The love never goes away... :-)
by kaveh1000
Tue Feb 19, 2019 12:42 pm
Forum: Talking LiveCode
Topic: A group that can delete itself
Replies: 10
Views: 162

Re: A group that can delete itself

Thank you Klaus. You are still a god when viewed from down here. ;-)

Works nicely. My error was putting the delete handler in the group.
by kaveh1000
Tue Feb 19, 2019 10:13 am
Forum: Talking LiveCode
Topic: A group that can delete itself
Replies: 10
Views: 162

A group that can delete itself

I have a number of groups on a card. I want a button on each group that deletes the entire group (including itself) when clicked.

I attach my minimal example and can't find a way to do this. I am sure obvious for the gods on this forum! Any ideas pls?
by kaveh1000
Tue Feb 12, 2019 7:14 pm
Forum: Databases
Topic: Standalone not connecting to mySQL
Replies: 16
Views: 837

Re: Standalone not connecting to mySQL

But it's one step back and three steps forward, so all positive. ;-)
by kaveh1000
Mon Feb 11, 2019 2:23 pm
Forum: Databases
Topic: Standalone not connecting to mySQL
Replies: 16
Views: 837

Re: Standalone not connecting to mySQL

Oh my god. I did not!!! How embarrassing. Thank you so much Sphere for making me look a fool. ;-)

All working now. Thanks again. :-D
by kaveh1000
Sat Feb 09, 2019 7:05 pm
Forum: Talking LiveCode
Topic: Automatically populating menu from list when user clicks
Replies: 9
Views: 265

Re: Automatically populating menu from list when user clicks

Yes, although when the menus are on the card as opposed to the system menubar, the button gets the message too.

Anyway, attached is the modified, working stack, modified as per your suggestion.
by kaveh1000
Sat Feb 09, 2019 6:40 pm
Forum: Talking LiveCode
Topic: Automatically populating menu from list when user clicks
Replies: 9
Views: 265

Re: Automatically populating menu from list when user clicks

Thank you Klaus. :-) It works!

I might have got there eventually, but would have taken a lot of trial and error. It sort of makes sense.
by kaveh1000
Sat Feb 09, 2019 5:56 pm
Forum: Talking LiveCode
Topic: Automatically populating menu from list when user clicks
Replies: 9
Views: 265

Re: Automatically populating menu from list when user clicks

Thanks for looking again. I should have said I am using a Mac. I know menus work differently on different systems. Attached is a screen recording to show how the menus work on Mac. Please see how in the menubar, mouseup does not work. I know it is outside LiveCode's control at that point but love to...
by kaveh1000
Sat Feb 09, 2019 4:57 pm
Forum: Talking LiveCode
Topic: Automatically populating menu from list when user clicks
Replies: 9
Views: 265

Re: Automatically populating menu from list when user clicks

Hi Bogs Please see attached stack. The menu item on the top left will dynamically fill with the field text, using mousedown. Now open Tools > Menubuilder, select that menu item, and click: Set as Stack Menu bar Now you can see the menu nicely in the menu bar, but of course mousedown does not work an...
by kaveh1000
Sat Feb 09, 2019 3:37 pm
Forum: Talking LiveCode
Topic: Automatically populating menu from list when user clicks
Replies: 9
Views: 265

Automatically populating menu from list when user clicks

I have been using Menubuilder to create menus, after reading Jeane DeVoto's great tutorial on this page: http://www.hyperactivesw.com/revscriptconf/scriptingconferences.html I am updating the contents of one of the menu items (which are buttons in reality), in real time from a list (actually a remot...
by kaveh1000
Fri Feb 08, 2019 2:26 pm
Forum: Databases
Topic: Standalone not connecting to mySQL
Replies: 16
Views: 837

Re: Standalone not connecting to mySQL

Hi folks Putting aside the security aspects that I have taken on board, I still want to solve the technical problem of why I cannot connect to a our MySQL database from a standalone, but I can from the IDE. To recap, I have the following lines to test basic connection to the net, that I call on open...
by kaveh1000
Fri Feb 08, 2019 12:08 pm
Forum: Talking LiveCode
Topic: How to embed fonts in a standalone
Replies: 3
Views: 142

Re: How to embed fonts in a standalone

Thank you Klaus. That worked. :-)

Go to advanced search