Search found 31 matches

by geo
Mon Mar 27, 2023 3:47 am
Forum: iOS Deployment
Topic: Printing to pdf resolution
Replies: 5
Views: 2523

Re: Printing to pdf resolution

Thanks Klaus

Now it works
by geo
Sun Mar 26, 2023 6:38 pm
Forum: iOS Deployment
Topic: Printing to pdf resolution
Replies: 5
Views: 2523

Re: Printing to pdf resolution

Set the printscale before the print command, but it's still the same

i found out that 612 x 792 is us letter size
don't have a clue why it would output that size
I need A4
by geo
Sun Mar 26, 2023 11:10 am
Forum: iOS Deployment
Topic: Printing to pdf resolution
Replies: 5
Views: 2523

Printing to pdf resolution

Hello In my app I have created a substack "print" (size 1190 x 1684) with a card "crdPDF" which contains information that I need to print This is for the substack "print" on preOpenStack set the fullscreenmode of this stack to "noScale" end preOpenStack open printing to pdf tPDFPath print card "crdP...
by geo
Wed Dec 28, 2022 7:11 pm
Forum: Talking LiveCode
Topic: mobilecomposemail pdf attachment
Replies: 18
Views: 12961

Re: mobilecomposemail pdf attachment

Code: Select all

on preOpenStack
    set the fullscreenmode of this stack to "noScale"
end preOpenStack
Hello
Set the print stack to the correct size, then use above code
It worked for me on iOS
by geo
Sat Mar 19, 2022 6:14 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: standalone settings
Replies: 2
Views: 1403

Re: standalone settings

Thanks Klaus, got the DB in the right place now
by geo
Wed Mar 16, 2022 8:50 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: standalone settings
Replies: 2
Views: 1403

standalone settings

Hello
I want to include an sqlite DB in my standalone
In the standalone settings I added the file which is on my desktop. When I start livecode it imports the file, but not the table in the DB. (size is zero bytes)

any ideas?

Thanks
by geo
Fri Jul 16, 2021 5:18 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Function parameters
Replies: 6
Views: 2604

Re: Function parameters

Thanks guys, that solved the problem
by geo
Thu Jul 15, 2021 8:41 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Function parameters
Replies: 6
Views: 2604

Re: Function parameters

Code: Select all

return pValueToFind & comma && item 2 of bla & comma && item 4 of bla & comma && item 1 of bla & comma && item 3 of bla
This is from the first function

bla is the variable where it all comes together, so I thought I can split it up with a comma to use it directly as parameters
by geo
Thu Jul 15, 2021 7:50 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Function parameters
Replies: 6
Views: 2604

Function parameters

Hello I have a function which returns the values: 2600, 2599.973, 2631.284, -25.647696, -30.116531 Now I would like to use those values as parameters for this function function forecast pXactual, pX1, pX2, pY1, pY2 return (pY2 + (pXactual - pX2) / (pX1 - pX2) * (pY1 - pY2)) end forecast When I call ...
by geo
Wed May 26, 2021 8:23 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Best practice
Replies: 6
Views: 3140

Re: Best practice

Thanks for your inputs.
In my case speed isn't critical, since there isn't a lot of data to process.
Im just using 3 letters from a field
by geo
Tue May 25, 2021 5:03 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Best practice
Replies: 6
Views: 3140

Best practice

Hello, which function is better? function test put field "test" into tTest repeat with n = 1 to 3 put char n of tTest after tResult end repeat return tResult end test or function test1 repeat with n = 1 to 3 put char n of field "test" after tResult end repeat return tResult end test1 Thank for the a...
by geo
Sun Oct 04, 2020 8:34 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Moving average
Replies: 3
Views: 1852

Re: Moving average

Thanks Craig, that put me on the right track
by geo
Sat Oct 03, 2020 8:15 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Moving average
Replies: 3
Views: 1852

Moving average

Hello I want to create a moving average of the last three values in Col1 and put it in Col2 In Excel it looks like the screenshot below. I cant't figure out how to do it in LC There will be a few thousand lines of data so I don't know if I should work with arrays or fields Any hints? Screenshot 2020...
by geo
Fri Jan 10, 2020 9:50 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Retrieve custom properties with variable
Replies: 8
Views: 4725

Re: Retrieve custom properties with variable

Hi Klaus

Thanks, works perfect

Any Idea why it doesn't work when I have the name of the custom property set in the variable like i described in my post?
by geo
Fri Jan 10, 2020 7:42 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Retrieve custom properties with variable
Replies: 8
Views: 4725

Re: Retrieve custom properties with variable

Hello, I have about 20 fields where the user can change the value. Each field has a custom property stored which is use for a calculation: Fieldvalue * constant For this one field the user has to select a value per dropdownmenu from a different button which is then inserted in the field plus the con...

Go to advanced search