Search found 11375 matches

by Klaus
Mon Jan 20, 2020 7:51 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: combine two fields
Replies: 19
Views: 379

Re: combine two fields

Hi Larry, interesting interpretation of my original script!? :shock: Spot the difference: on mouseUp set the itemDel to tab put fld "a1" into tData put fld "a2" into tData2 put empty into tData3 repeat with x = 1 to the number of lines in tData put line x of tData & tab & item 2 of line x of tData2 ...
by Klaus
Mon Jan 20, 2020 7:41 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: combine two fields
Replies: 19
Views: 379

Re: combine two fields

dunbarx wrote:
Mon Jan 20, 2020 7:25 pm
Just an aside, the itemDelimiter can be any string. So it is indeed possible to:

Code: Select all

 set the itemDel to  tab & return
It may or may not be useful in this discussion, but does work just fine.
Yes, but not:

Code: Select all

...
set the itemDel to tab AND return
...
by Klaus
Mon Jan 20, 2020 7:21 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: combine two fields
Replies: 19
Views: 379

Re: combine two fields

Hi Larry,

waht do you mean by:
but the cr is not working.
?
Please post your script!


Best

Klaus
by Klaus
Mon Jan 20, 2020 5:56 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: combine two fields
Replies: 19
Views: 379

Re: combine two fields

Hi Larry, see my comments on mouseUp put empty into fld "b1" ## We can only have ONE itemdelimiter, so this will fail! set the itemDel to return and tab put fld "a1" into tData repeat with x = 1 to the number of lines in tData -- for each line tLine put item 1 of tData and item 2 of fld "a2" into x ...
by Klaus
Mon Jan 20, 2020 5:32 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: URL specification change LC8.1 to LC9.x [RESOLVED]
Replies: 29
Views: 451

Re: URL specification change LC8.1 to LC9.x

I can load that Adobe PDF into a browswer widget without any problem:

Code: Select all

on mouseUp
   set the url of widget 1 to "https://www.adobe.com/support/products/enterprise/knowledgecenter/media/c4611_sample_explain.pdf"
end mouseUp
by Klaus
Mon Jan 20, 2020 4:23 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: URL specification change LC8.1 to LC9.x [RESOLVED]
Replies: 29
Views: 451

Re: URL specification change LC8.1 to LC9.x

The file opens with no problems! And do you see the 4 buttons: - (Zoom out) + "(Zoom in) Open in Preview Download at the bottom of the PDF in SAFARI? If yes, then Acrobat does not hook into your "webview". Bugreport Acrobat Reader and Browser Widget: https://quality.livecode.com/show_bug.cgi?id=225...
by Klaus
Mon Jan 20, 2020 3:39 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: URL specification change LC8.1 to LC9.x [RESOLVED]
Replies: 29
Views: 451

Re: URL specification change LC8.1 to LC9.x

Hi Sri, do not use: ... ## put URLendcode(it) into tTemp ## Try with: replace SPACE with "%20" in tTemp ... These are different! And sorry, no idea where this is in the Acrobat preferences. Acrobat does not take over inside the browser widget What happens if you open that PDF right in SAFARI? Best K...
by Klaus
Mon Jan 20, 2020 1:55 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: URL specification change LC8.1 to LC9.x [RESOLVED]
Replies: 29
Views: 451

Re: URL specification change LC8.1 to LC9.x

Hi Sri, LC 9.5.1 INDY, macOS 10.14.6 No crash with a PDF file in browser widget, I have to: ... replace SPACE with "%20" in tURL ... to make it work, but no crash, I see the PDF in the widget. Do you have the Acrobat Reader installed? If yes, go to its preferences and see if you can disable that Acr...
by Klaus
Sun Jan 19, 2020 7:43 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: combine two fields
Replies: 19
Views: 379

Re: combine two fields

Hi Larry, in your first example you wrote: ... set the itemDel to column ... but that is no constant in LC but a reserved word, it actually means: set the itemdelimiter to (the string "column") Which will work with text like: This is item one of the text...columnThis is item two of the text...column...
by Klaus
Sun Jan 19, 2020 5:53 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Changing background color for multiple buttons at once
Replies: 2
Views: 78

Re: Changing background color for multiple buttons at once

Hi opaquer,

did you "lock screen" before you change the color of your 81 buttons/cells in a loop?
That usually speeds up things a LOT! :-)


Best

Klaus
by Klaus
Sat Jan 18, 2020 12:52 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Can you make Apple Watch apps in Live Code?
Replies: 5
Views: 173

Re: Can you make Apple Watch apps in Live Code?

Yep, but that was a watch running (some kind of Windows or rather) Android!
Currently we cannot build for Apple Watch.
by Klaus
Fri Jan 17, 2020 10:25 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: How to decrease a columns height smoothly with elapsed time
Replies: 6
Views: 188

Re: How to decrease a columns height smoothly with elapsed time

dunbarx wrote:
Fri Jan 17, 2020 9:50 pm
I included that last line to restore the field to its original height. It does not have to be there, but surely has meaning. :wink:
Oh, damn, so sorry, I must have missed that, not my day today... :oops:
by Klaus
Fri Jan 17, 2020 9:11 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: How to decrease a columns height smoothly with elapsed time
Replies: 6
Views: 188

Re: How to decrease a columns height smoothly with elapsed time

HJi Craig, "the rect" has no meaning in your script, this will work the same: on mouseUp ## put the rect of fld "x" into tRect put the bottom of fld "x" into tBot repeat until the height of fld "x" = 5 set the height of fld "x" to height of fld "x" - 1 set bottom of fld "x" to tBot wait 3 end repeat...
by Klaus
Fri Jan 17, 2020 8:04 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Code Organization
Replies: 11
Views: 294

Re: Code Organization

Hi Jack, Ok. I think I understand the concept now. The terminology is very strange for someone that has programmed for years. yes, it surely is! :D Stack is a group of related cards. A stack can be an application or an application can consist of multiple stacks. Cards are windows within that applica...

Go to advanced search