Field content as parametres in a function

2022-11-29 Thread Tore Nilsen via use-livecode
I have come across a puzzling behavior when trying to use the content of a field as parametres in a function, and I am trying to understand why. I put the following in a field called «test»: 1,2,3,4,5 When I then call the function like this: answer testFunction(field «test»),

Re: Field content as parametres in a function

2022-11-29 Thread Alex Tweedly via use-livecode
Yes, your description is correct (except for saying the behavior is "puzzling" :-) The first case you are passing a single parameter (which happens to have commas in its current content). You could have said " paramcount() returns 1 as expected". The second case you pass 5 values. And

Re: Field content as parametres in a function

2022-11-29 Thread Tore Nilsen via use-livecode
> 29. nov. 2022 kl. 12:08 skrev Alex Tweedly via use-livecode > : > > Yes, your description is correct (except for saying the behavior is > "puzzling" :-) > > The first case you are passing a single parameter (which happens to have > commas in its current content). You could have said "

Re: Field content as parametres in a function

2022-11-29 Thread Brian Milby via use-livecode
Your original is the same as: put field «test» into tParam answer testFunction(tParam) So yes, whatever is placed as a parameter to a function is not expanded. Think about doing the same thing with an arbitrary block of text in the field and what would be the expected result. Brian Milby

[OT] Upgrade to Monterey from Big Sur Update Simulator/Multiple Xcode versions

2022-11-29 Thread Ralph DiMola via use-livecode
FYI: I was able to run Xcode 14.1 and invoke the iPhone 14 simulator. I tested an LC app building against Xcode 13.2.1. Clicked the test button and BOOM there was the app on the iPhone 14 simulator. Only one little hiccup. I had to select the hardware keyboard then disable then re-enable to get

Re: Browser widget doesn't display PDF

2022-11-29 Thread panagiotis m via use-livecode
Hello Matthias, See: https://quality.livecode.com/show_bug.cgi?id=18378 https://quality.livecode.com/show_bug.cgi?id=22534 I suggest using a PDF widget instead of a browser widget to display the pdf files, until this bug is fixed. Kind regards, Panos -- On Tue, 29 Nov 2022 at 18:59, matthias

RE: [OT] Upgrade to Monterey from Big Sur

2022-11-29 Thread Ralph DiMola via use-livecode
Matthias, That worked! Thank you so much. The link sent me to the app store. I clicked "Get" and after the download finished the SW update pref appeared. Then the installation dialog started. Not that it made any difference, the SW update pref then spun for a second and showed the Ventura update

Browser widget doesn't display PDF

2022-11-29 Thread matthias rebbe via use-livecode
Hello, i am currently having problems that a browser widget doesn't display a pdf, regardless if remote or local. I just see a white blank page. Sometime an error message comes up telling me that "PDFViewer could not find a compatible version of Adobe Acrobat or Adobe Reader for displaying

Re: Browser widget doesn't display PDF

2022-11-29 Thread matthias rebbe via use-livecode
Hello Panos, thanks for reminding me of bug 22534. I should have remember it. That bug report is based on a support request i filed. ;) > Am 29.11.2022 um 18:38 schrieb panagiotis m via use-livecode > : > > Hello Matthias, > > See: > > https://quality.livecode.com/show_bug.cgi?id=18378