Re: Android 13 and higher and share files problems

2024-04-18 Thread Ludovic THEBAULT via use-livecode


> Le 17 avr. 2024 à 10:18, panagiotis merakos via use-livecode 
>  a écrit :
> 
> RE the other issue with gmail - I suggest you file a bug report and attach
> a sample stack and we will investigate.


I found that you need to modify the email (just add one char for example), in 
the app Gmail, to send the attachment.

Ludovic

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Android 13 and higher and share files problems

2024-04-18 Thread Ludovic THEBAULT via use-livecode


> Le 17 avr. 2024 à 10:18, panagiotis merakos via use-livecode 
>  a écrit :
> 
> Hello Ludovic,
> 
> Which file explorer app do you use? 


Hello Panos, 

I use the phone's file manager. And even when connected to Windows, Explorer 
doesn't show the folder.

I've created another application using a text file that needs to be imported or 
retrieved, and it's the same problem. I tested on an emulator (Pixel XL Api 
33), same thing, the folder doesn't appear either on the internal storage or on 
the SD card.

On the application file on the playstore, the permissions displayed seem to be 
correct:

Location
approximate location (network-based)
precise location (GPS and network-based)

Photos/Media/Files
read the contents of your USB storage
modify or delete the contents of your USB storage

Storage
read the contents of your USB storage
modify or delete the contents of your USB storage

Other
full network access
control vibration

Do I need to open a bug entry ?

Ludovic

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Android 13 and higher and share files problems

2024-04-17 Thread Ludovic THEBAULT via use-livecode
Hello,

I have an Android application that stores files in the "Documents" folder. The 
path to the files is something like : « /data/user/0/com.xxx.files/ ».

With phones running Android 13 or higher, the application folder "com.xxx" is 
no longer visible in the file explorer, whereas on an Android 11 devices or 
under we can see it and access to the files. 

What should I do? Thank you.

PS : on android 13 and higher I’ve also this bug : If I want to send the file 
by email, using the Gmail application, even if the attachment is present in the 
body of the email, the sending fails due to an error "Unable to attach the 
file". With another email application, it works. I guess this problem is 
related to the first !

Ludovic


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Compiling for iOS : something wrong with Xcode and Sonoma

2023-10-11 Thread Ludovic THEBAULT via use-livecode


> Le 10 oct. 2023 à 19:14, Ludovic THEBAULT via use-livecode 
>  a écrit :
> 
> Hello,
> 
> Is livecode uptodate is compatible with Sonoma ?
> When I try to compile for iOS I get this error :
> 
> There was an error while saving the standalone application linking for arm 
> (arm64) failed with 2023-10-10 18:51:36.404 xcodebuild[74950:3301090] Writing 
> error result bundle to
> /var/folders/j2/bpc701v12p78vsrq5Ifpdd×0gn/T/ResultBundle_2023-10-10_18-51-0036.xcresult
> xcodebuild: error: SDK "iphoneos 16.2" cannot be located.
> xcrun; error: sh -c '/Users/Xcode.app/Contents/Developer/us/bin/ xcodebuild 
> -sdk iphoneoslo. -hnd q++ <> devnul tailed with exit code 10384: (null) 
> (errno=No such hle or directory)
> xcrun: error: unable to find utility "g++", not a developer tool or in PATH
> 
> In the settings of livecode, I’ve selected Xcode 14.2 which doesn’t work on 
> sonoma.
> In Xcode 15 i’ve installed 16.2 simulator.
> I’ve tried to install commandlinetools for Xcode 14.2 but it was refused.
> 
> Any ideas ?
> 
> Thanks !
> 

Hello, I found the solution :

In the terminal, use this command to switch to the « good » Xcode :
sudo xcode-select -switch /path/to/Xcode.app



Ludovic

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Install app on iOS 9 : still possible ?

2023-09-07 Thread Ludovic THEBAULT via use-livecode
Hello,

I’ve 2 iPad 2. I want to make some little app for my school.

With Livecode 9.6.10, apps are not compatible.

Which version of Livecode can be used to create compatible apps?

Thanks.
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Check connection and timeout

2023-07-15 Thread Ludovic THEBAULT via use-livecode


> Le 14 juil. 2023 à 17:14, Ralph DiMola via use-livecode 
>  a écrit :
> 
> Ludovic,
> 
> Make sure that tsNet is active:
> 


Hello Ralph


Thanks. But yes tsnet was initialized.

I’ve measured the timeouts in miliseconds and it was always 30003 milliseconds.
But it’s only when there is a connection but there isn't enough network 
capacity for data transfer (so it’s difficult to test ! This can happen in the 
mountains, far from mobile antennas, or on the edge of wifi coverage.


Ludovic
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Check connection and timeout

2023-07-14 Thread Ludovic THEBAULT via use-livecode


> Le 14 juil. 2023 à 08:26, Ludovic THEBAULT via use-livecode 
>  a écrit :
> 
> Hello,
> 
> I use this code to check is there is an internet connection :
> 
> tsNETSETTIMEOUTS 60,0,2000,6,5,1000
> 
> put tsNetHeadSync("https://google.com/;, tHeaders, tResult, tBytes) into 
> tRecvHeaders
> 
>   if tResult begins with "tsneterr:" then
>  return false 
>   else
>  return true 
>   end if
> 
> 
> But the setting for the timeout of tsNETSETTIMEOUTS is not active, I always 
> have a 30 seconds timeout.
> 
> Is there an other settings ?
> 


Addendum :  it happen when there is a connection (aka in 4G or Wifi) but no 
enough network.


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Check connection and timeout

2023-07-14 Thread Ludovic THEBAULT via use-livecode
Hello,

I use this code to check is there is an internet connection :

 tsNETSETTIMEOUTS 60,0,2000,6,5,1000

 put tsNetHeadSync("https://google.com/;, tHeaders, tResult, tBytes) into 
tRecvHeaders
   
   if tResult begins with "tsneterr:" then
  return false 
   else
  return true 
   end if
 

But the setting for the timeout of tsNETSETTIMEOUTS is not active, I always 
have a 30 seconds timeout.

Is there an other settings ?

Thanks.
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Training the AI to write better LiveCode

2023-01-20 Thread Ludovic THEBAULT via use-livecode
Hello,

Can anyone verify that the corrections I reported to ChatGPT have been taken 
into account?
I asked ChatGPT how to geolocate, but it gave me several bad suggestions for 
commands that didn't exist :
- mobileControlCreate « geoControl"
- put mobileGetGPS()
- put geolocation()
- put mobileIsGeolocationAuthorized()
….

 So I told it which commands to use.

Here my last question to chatGPT :
# To check if the app has permission to access the geolocation on iOS and then 
to retrieve that geolocation, what is the correct code?

His answer :
if mobileLocationAuthorizationStatus() = "authorizedAlways" or 
mobileLocationAuthorizationStatus() = "authorizedWhenInUse" then
   put mobileCurrentLocation() into tLocation
   put "Latitude : " & item 1 of tLocation
   put "Longitude : " & item 2 of tLocation
else
   put "Géolocalisation non autorisée"
end if

With a similar question, do you have directly an accurate response now ?

Thanks

Ludovic

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


ChatGPT and Livecode

2022-12-08 Thread Ludovic THEBAULT via use-livecode
Hello all,

Chatgpt knows Livecode and can propose code on a simple description, but it 
remains to be improved :-)

Example : "Write a code for Livecode to read line by line a long text file. »

ChatGPT :
> on openCard
>   put "Enter the path to the text file:"
>   answer file
>   set the filePath to file
> 
>   put "Enter the maximum number of lines to read:"
>   answer maxLines
> 
>   put empty into lineList
> 
>   put 0 into lineCounter
>   put 0 into charCounter
> 
>   open file filePath for read
>   repeat for each line lineOfFile in file filePath
>   if lineCounter < maxLines then
>   add lineOfFile & cr after lineList
>   add 1 to lineCounter
>   else
>   add lineOfFile to charCounter
>   end if
>   end repeat
>   close file filePath
> 
>   put lineList
>   put charCounter & " characters remaining in file"
> end openCard



Ludovic

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Sqlite and Monterey on M1

2022-06-08 Thread Ludovic THEBAULT via use-livecode
Hello,

These were file's attributes that were blocking the writing (noticed by an @ 
with an ‘ls’).
They had to be removed with a "sudo xattr -c ..." (deleting only the 
com.apple.quarantine was not enough)

HTH !

> Le 15 mai 2022 à 17:30, Ludovic THEBAULT  a 
> écrit :
> 
> 
> 
>> Le 12 mai 2022 à 20:23, ludovic.theba...@laposte.net a écrit :
>> 
>> 
>> 
>> Bonsoir Ludovic,
>> 
>> on the Mac we have write permissions here -> specialFolderPath("preferences")
>> Works on Monterey as well and is "out of sight" of the user. ;-)
>> 
>> 
>> 
> 
> 
> Hello, Thanks
> 
> But it seems is don’t work for my app.
> 
> The sqlite file was copied from an Time Machine backup (but manually).
> But i tested it on my Mac (Big Sur) and all work fine…
> 
> there must be something else that blocks the writing in the database. The 
> processor (M1) ? the user id ?
> 
> I'll dig and test more deeply!
> Ludovic

Ludovic


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: New user

2022-03-30 Thread Ludovic THEBAULT via use-livecode


> Le 30 mars 2022 à 15:50, Guillaume Hédieu via use-livecode 
>  a écrit :
> 
> Hi everyone,
> 
> Just a message to say hello. I'm new to Livecode. First of all, please
> apologize for my english, it's not my native language.
> 

Alors bienvenue ! ;-)


Ludovic


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Hilite color of an android native field

2022-02-16 Thread Ludovic THEBAULT via use-livecode
Hello,

Is there a way to change the hilite color of an android native field widget 
when it is focused ?

Thanks !
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: iOS 15 - Xcode version

2021-09-24 Thread Ludovic THEBAULT via use-livecode


> Le 25 sept. 2021 à 00:19, Marty Knapp via use-livecode 
>  a écrit :
> 
> 
> But now I can no longer use Photoshop CS3! It’s probably 10 years old so it 
> had a good long run. Now to find a replacement as I don’t want to pay $20 a 
> month for that…
> 

Hello !

Try Affinity Photo, really good software for only few bucks.


> 



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Random crash when building standalone

2021-09-03 Thread Ludovic THEBAULT via use-livecode
Hello,

When I build a Windows or macOS standalone, I sometimes have several alerts 
that concern the "livecode's stacks" ("answer dialog", "print chooser" ...) 
that are saved in the standalone (but I don't want them to be!) and that 
conflict with the original stacks.

And rarely it ends with a livecode crash.

These "livecode stack's" are also added as substacks in my stacks...
This seems to be related to "old stacks".
I can't find any bug report about this but maybe I didn't look hard enough

Do you have any ideas to correct this problem ?

Thanks in advance ! 

Ludovic


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: building standalone FAILS with German Umlaute in app name

2021-06-15 Thread Ludovic THEBAULT via use-livecode


> Le 15 juin 2021 à 15:19, Tiemo via use-livecode 
>  a écrit :
> 
> Hello,
> 
> 
> 
> macOS 11.2.3, LC 9.6.1 and 9.6.2
> 
> 
> 
> when the app name has German Umlaute, building a standalone fails with the
> error:
> 
> “Adding ad-hoc signature failed. … Too many open files in subcomponent
> myÖApp.app/Contents/MacOS/myÖApp.app”
> 
> 
> 
> This was working for the last years without any problem. I don’t know, since
> which version it failed.
> 
> When replacing the Umlaut, everything works fine.
> 
> Since I have to build shortly an update to an existing app with an Umlaut in
> its name, this is pretty annoying!
> 
> 
> 
> Any workaround? Any help?
> 


Seem it’s the same bug : https://quality.livecode.com/show_bug.cgi?id=22791 


Workaround : rename the app after building it

Ludovic 
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Test

2021-02-10 Thread Ludovic THEBAULT via use-livecode
I can send but I don't receive anything!

You can see the list here : 
http://lists.runrev.com/pipermail/use-livecode/2021-February/date.html 


Here the explanation : I missed an "use-livecode-requ...@lists.runrev.com 
 » because "Your membership in 
the mailing list use-livecode has been disabled due to excessive bounces"

So I replied this message as indicated, we'll see

Ludovic
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


test

2021-02-10 Thread Ludovic THEBAULT via use-livecode
Hello,

I haven't received any messages for a week now. 

Strange, no ?

Ludovic

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Test on android Simulator : app has stopped

2021-01-24 Thread Ludovic THEBAULT via use-livecode


> Le 24 janv. 2021 à 10:38, Ludovic THEBAULT via use-livecode 
>  a écrit :
> 
> Hello,
> 
> I can’t test apps on the android simulator, install are ok, but when the app 
> launch (even a simple test stack), the app quit suddenly. 
> 
> I’ve updated Android Studio, SDK, SDK tools. All is uptodate.
> I reselect the sdk in the livecode prefs.
> 
> I checked all in this lesson.
> 
> https://lessons.livecode.com/m/2571/l/625198-livecode-and-android-studio 
> <https://lessons.livecode.com/m/2571/l/625198-livecode-and-android-studio>
> 
> In standalone settings, all Android’s platforms are checked and the minimal 
> android version is set the Android 6.
> 
> What I miss ?
> 
> I need to test an app on an device with a notch.
> 
> Thanks !


I’ve tested also to drag the apk onto the screen emulator, no change. Tested 
one platform at time (arm v4, v7, x86…)… no change

Same apk is ok on a real Android device.

Ludovic
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Test on android Simulator : app has stopped

2021-01-24 Thread Ludovic THEBAULT via use-livecode
Hello,

I can’t test apps on the android simulator, install are ok, but when the app 
launch (even a simple test stack), the app quit suddenly. 

I’ve updated Android Studio, SDK, SDK tools. All is uptodate.
I reselect the sdk in the livecode prefs.

I checked all in this lesson.

https://lessons.livecode.com/m/2571/l/625198-livecode-and-android-studio 


In standalone settings, all Android’s platforms are checked and the minimal 
android version is set the Android 6.

What I miss ?

I need to test an app on an device with a notch.

Thanks !
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Swipe gesture script on datagrid

2021-01-19 Thread Ludovic THEBAULT via use-livecode


> Le 19 janv. 2021 à 08:37, Phil Davis via use-livecode 
>  a écrit :
> 
> Would the dgProp["left swipe control"] of grp "yourDG" help? At least that 
> might let you change the default trash can to some other control (maybe to a 
> group that contains your 2 buttons?). If you get that far, maybe the message 
> path of your 2 buttons would go through the DG template row behavior script. 
> I don't know for sure but that would be my first guess.
> 
> 

Thanks.

I add this script in each button of the «right swipe » template : 

on mouseup
   set the idBtn of grp « data grid » to the long id of me
   pass mouseup
end mouseup

And in the behavior script of the grp « data grid » :

on RowRightSwipeControlClicked pTarget
// just to verify if it’s work
put ptarget & cr &  the idBtn of grp « data grid » into msg
end RowRightSwipeControlClicked

And it seem to work !

Ludovic


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Swipe gesture script on datagrid

2021-01-18 Thread Ludovic THEBAULT via use-livecode


> Le 19 janv. 2021 à 07:28, Ludovic THEBAULT  a 
> écrit :
> 
> Hello,
> 
> How edit the script of a swipe gesture control ?
> I want to add two buttons to the right swipe control, it’s ok for appearance 
> but I cannot find where to edit the script.
> 
> Is it even possible?


I dug into the dictionary and found : RowRightSwipeControlClicked



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Swipe gesture script on datagrid

2021-01-18 Thread Ludovic THEBAULT via use-livecode
Hello,

How edit the script of a swipe gesture control ?
I want to add two buttons to the right swipe control, it’s ok for appearance 
but I cannot find where to edit the script.

Is it even possible?

PS : i have datagrid helper plugin 2.5.

Thanks !  
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Native scroller and iPhone X and >

2021-01-09 Thread Ludovic THEBAULT via use-livecode
Hello and happy new year !

I’ve tested my app on an iPhone X and the height of the native scrollers are 
not corrects.
It seems that this is due to the notch. The scrolling area is smaller than 
needed.

Il i test the same app on an iPhone < X (without notch) it’s ok.

What I missed ?

Here the script ( it’s a locked grp with an field on it)  :
mobileControlCreate "scroller", sControlName

mobileControlSet sControlName, "rect", the rect of grp «  scroller »
mobileControlSet sControlName, "contentRect", "0,0," & the formattedWidth of  
of fld «  toScroll » & comma & the formattedHeight of fld «  toScroll »


Any ideas, i can't solve the problem.

Thanks !
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Android native field widget and "return"

2020-08-18 Thread Ludovic THEBAULT via use-livecode
Hello,


How handle the returnkey with the android native field widget ?

I’ve tried imputReturnKey ans returninfield without success.

Thanks !
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


savingMobileStandalone and files

2020-07-26 Thread Ludovic THEBAULT via use-livecode
Hello,

I have an application I'm compiling for Android and iOS.
For Android, I have to integrate compressed files, not for IOS (iOS 
applications can be larger in size)
I use the savingMobileStandalone function to indicate to integrate either 
compressed or uncompressed files:

switch
 case the cRevStandaloneSettings["iOs"] of this stack is true and 
"datas.zip" is among the lines of the cRevStandaloneSettings["files"] of this 
stack
get the cRevStandaloneSettings["files"] of this stack
put cr & "datas.txt" after it
if lineoffset("datas.zip", it) > 0 then delete line 
lineoffset("datas.zip", it) of it
set the cRevStandaloneSettings["files"] of this stack to it
break
 case the cRevStandaloneSettings["iOs"] of this stack is true and 
"datas.txt" is not among the lines of the cRevStandaloneSettings["files"] of 
this stack
get the cRevStandaloneSettings["files"] of this stack
put cr & "datas.txt" after it
set the cRevStandaloneSettings["files"] of this stack to it
break

….


Normally, if the « zip » file is in the « copy files » and the 
cRevStandaloneSettings[« iOs"] is true, the application gets the uncompressed 
version.
But no. I need to recompile (without change anything) and it’s work.

How avoid that ?

(I just noticed that I send a « zipped » version of my app to the appstore, 
that have been accepted (but she doesn’t work because of the zipped files).



Thanks !
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: breakpoint causes 3 second delay then exit to top

2020-07-17 Thread Ludovic THEBAULT via use-livecode


> Le 17 juil. 2020 à 13:52, Bernard Devlin via use-livecode 
>  a écrit :
> 
> This is mystifying in so many ways.  I've seen this a few times and I'm at
> a loss to explain it. It's LC 9.5.1 on Windows 10.
> 
> *When the code gets to the above breakpoint, the debugger exits to top. It
> takes about 3 seconds with the debugger sitting at the breakpoint before
> the engine exits to top.*
> 

Hello,

I've already had the same behavior but I noticed that it happens when there is 
an error in the executed code (but an error that doesn't block the execution of 
the script !). By fixing the script, the breakpoint then works as it should.

Maybe there is an error in your script (before the code you displayed here).

Ludovic
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Apple Transporter for iOS uploads?

2020-07-02 Thread Ludovic THEBAULT via use-livecode


> Le 3 juil. 2020 à 01:04, J. Landman Gay via use-livecode 
>  a écrit :
> 
> On 7/2/20 3:58 PM, Graham Samuel via use-livecode wrote:
>> My iOS deployment issues seem endless. It is dispiriting.
> 


I uploaded an update with Transporter last night without problem.

But you can still use the older Application loader (if you have an older Xcode).


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: AppstoreConnect : no build available

2020-06-21 Thread Ludovic THEBAULT via use-livecode


> Le 21 juin 2020 à 21:35, J. Landman Gay via use-livecode 
>  a écrit :
> 
> On 6/20/20 12:52 AM, Ludovic THEBAULT via use-livecode wrote:
>> Nothing new this morning.
>> But we are not alone !
> 
> I had a series of unhelpful responses to Apple dev support this weekend. 
> Finally I got an answer: Apps will not process completely unless they have 
> the beta entitlement checked. This is contradictory to the email you receive 
> after processing is complete, which says "You can now use this build for 
> TestFlight testing or submit it to the App Store." Also, the "issue" reported 
> after an upload says that lack of a beta entitlement is a warning and we may 
> want to fix it in the "next version" but it isn't required for this one.


Really silly !

> 
> I just built a new ipa with beta checked in Standalone Settings and it 
> processed and became available in the Build section in the App Store. This 
> undocumented change doesn't care whether you are using TestFlight or not, you 
> must claim it as a beta release regardless.
> 
> I hate dealing with Apple. Our Android app was accepted in about 10 minutes 
> without any problems, and is waiting for us to send it to the store. We've 
> had to rewrite some of the silliest things to appease Apple and have been 
> trying to pass review for the last 2 weeks. And, I should add, the uploads 
> from last week did not require a beta entitlement, nor have any others at any 
> time up to now.


Many thanks for the solution !

Ludovic



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: AppstoreConnect : no build available

2020-06-19 Thread Ludovic THEBAULT via use-livecode


> Le 19 juin 2020 à 21:49, J. Landman Gay via use-livecode 
>  a écrit :
> 
> I'm having the same problem. Submitted a verified app last night and got an 
> email immediately that it had completed processing. But when I log into App 
> Store Connect it is not available. If I look in the Test Flight pane it shows 
> there but it is not available in the App Info page to submit for review. I 
> have waited 16 hours so far.
> 
> I think the store is delayed. A Google search revealed that uploading the 
> same version with a different build number would kick the server into action 
> so I did built another ipa this morning with a higher build number, but it 
> didn't help. That was 6 hours ago. Now both uploads are stuck "processing".
> 
> 


Thanks.

Nothing new this morning.

But we are not alone !

https://twitter.com/orangepascal/status/1273535811292737536 



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


AppstoreConnect : no build available

2020-06-19 Thread Ludovic THEBAULT via use-livecode
Hello,

I’ve submitted an update of my app on the store.

I got these problems (which are the same has previous submitting) :

> We identified one or more issues with a recent delivery for your app, […] 
> Your delivery was successful, but you may wish to correct the following 
> issues in your next delivery:
> 
> ITMS-90191: Missing beta entitlement -
> ITMS-90737: Missing Document Configuration -
> ITMS-90078: Missing Push Notification Entitlement -
> ITMS-90683: Missing Purpose String in Info.plist


After processing, I got this email : 

> You can now use this build for TestFlight testing or submit it to the App 
> Store.


The build is ok on the « Activity » pane of the appstoreconnect site.

So all is good, no ?

But always no build available  to send my update to the verification process… 
since this morning…

I use Transporter to send the binary.

Any ideas ?

Thanks !

Ludovic
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: SHELL command works in Terminal but not via SHELL in LC

2020-06-03 Thread Ludovic THEBAULT via use-livecode


> Le 3 juin 2020 à 13:13, Klaus major-k via use-livecode 
>  a écrit :
> 
> Hi friends,
> 
> maybe someone has a brilliant hint for me! :-)
> 
> A customer of mine has installed ffmpeg on his mac via Terminal:
> 1. google: homebrew
> 2. terminal: brew install ffmpeg
> or whatever the command were...
> 
> Now ffmpeg is available on his Mac and something like:
> ffmpeg -i Desktop/ffmpegMac/TiffSequence/Test_%5d.tif test2.mp4
> is working as exspected.
> 
> However if he fires this in LC:
> on mouseUp
> put shell("ffmpeg -i Desktop/ffmpegMac/TiffSequence/Test_%5d.tif test3.mp4")
> end mouseUp
> 
> He gets: 
> /bin/sh: line 1: ffmpeg: command not found
> 
> But this is working in the Terminal!?
> What is going on here and how can this be fixed?
> Does some environment or PATH variable need to be set additonally?
> 


Yes, you need to set the PATH like :
if "/usr/local/bin" is not in $PATH then put "/usr/local/bin:" before $PATH

But with the path of ffmepg.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Error in evaluatejavascript with widget browser only on iOS and Livecode > 9.06

2020-04-17 Thread Ludovic THEBAULT via use-livecode


> Le 17 avr. 2020 à 17:41, Ludovic THEBAULT via use-livecode 
>  a écrit :
> 
> 
> 
>> Le 17 avr. 2020 à 16:55, panagiotis merakos via use-livecode 
>>  a écrit :
>> 
>> Hello Ludovic,
>> 
>> Could you please file a bug report and include a (ideally simple) sample
>> stack, so as we investigate asap?
>> 
>> Kind regards,
>> Panos
> 
> Ok.
> 
> So, I wanted to remove all scripts and cards unrelated to the problem to 
> provide you with a test stack and... after checking no more errors!
> 
> So I'll try to delete little by little to determine the culprit. I will post 
> the bug report and the sample stack at that time.
> 



Here the bug report.

I didn't have any error with my test stack because I didn't add the code to 
display the errors ….  and the error had disappeared on my app when I had 
deleted this code !

Bug 22689 <https://quality.livecode.com/show_bug.cgi?id=22689>

I’ve retested on my iPhone, the sample stack compiled with Livecode 9.04 don’t 
show any error.

Thanks.
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Error in evaluatejavascript with widget browser only on iOS and Livecode > 9.06

2020-04-17 Thread Ludovic THEBAULT via use-livecode


> Le 17 avr. 2020 à 16:55, panagiotis merakos via use-livecode 
>  a écrit :
> 
> Hello Ludovic,
> 
> Could you please file a bug report and include a (ideally simple) sample
> stack, so as we investigate asap?
> 
> Kind regards,
> Panos

Ok.

So, I wanted to remove all scripts and cards unrelated to the problem to 
provide you with a test stack and... after checking no more errors!

So I'll try to delete little by little to determine the culprit. I will post 
the bug report and the sample stack at that time.


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Error in evaluatejavascript with widget browser only on iOS and Livecode > 9.06

2020-04-17 Thread Ludovic THEBAULT via use-livecode


> Le 17 avr. 2020 à 16:37, Brian Milby via use-livecode 
>  a écrit :
> 
> Have you tried without the wait?
> 
> Thanks,

Hello,

Yes, without the wait, the error is always here.


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Error in evaluatejavascript with widget browser only on iOS and Livecode > 9.06

2020-04-17 Thread Ludovic THEBAULT via use-livecode
Hello,


I’ve a strange error :

I have an application where you can change the GPS coordinates from a marker on 
a map, in a browser widget.
For this I use the code "myJSHandler" which allows to retrieve in Livecode the 
GPS values of the map thanks to javascript.

The code works fine on desktop, iOS and Android except for iOS apps compiled 
with Livecode > 9.0.6 (and also with the new Livecode 9.6.0 dp4).
(I’ve not tested with Livecode 9.5). I’ve already tried to remove the widget 
browser and replace it with a « new ».

When I run the code in my app :
   on myJSHandler theCoords
   wait 100 milliseconds with messages

   put theCoords into tnewcoords

   end myJSHandler

// and the javascript in the html code of the map :
 function getCoords() {
liveCode.myJSHandler(document.getElementById('info').value ) ; 
  }

I get an error message:

343,0,0
863,0,0,runtime
864,0,0,Value is not of correct type for
assignment to variable - expected type
 for
assigning to variable tResult in
com.livecode.widget.browser.browser-
EvaluateJavaScript
865,0,0,browser.lcb
866,0,0,859
897,0,0,1
865,0,0,browser.lcb
866,0,0,852
897,0,0,1

but the coordinates are well recovered...

If I change my code with :
 
on myJSHandler theCoords

 answer « New coordinates are saved !"

   no error, so, the bug is here ! ###
   wait 100 milliseconds with messages

   put theCoords into tnewcoords

end myJSHandler


 I don't get the error anymore!

I created a test application with the same code and the same map and I got no 
error !

You could get this sample stack here to see the complete code (but not the 
error !)
https://www.dropbox.com/s/pswhwvoinyrm387/testJShandler.livecode?dl=1 


Thanks for your lights !
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Mysql library

2020-03-02 Thread Ludovic THEBAULT via use-livecode


> Le 2 mars 2020 à 17:44, matthias rebbe via use-livecode 
>  a écrit :
> 
> Hi,
> 
> the people at HostM  created a free API solution which allows  a LC Desktop 
> or Mobile app to communicate over https with a Maria DB (compatible with 
> MySQL) using Livecode Server.
> 
> You can download their api solution here 
> 



Thanks !



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Mysql library

2020-03-02 Thread Ludovic THEBAULT via use-livecode
Hello,

I need to connect to a remote mysql database which need a client that support 
authentication protocol. I cannot tell the server to use the older password 
hashing algorithm.

How do it ? (I’ve Livecode 9.6 indy).

Thanks !

Ludovic
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Missing icon on iOS app

2020-01-18 Thread Ludovic THEBAULT via use-livecode


> Le 18 janv. 2020 à 18:18, Ludovic THEBAULT via use-livecode 
>  a écrit :
> 
> Hello,
> 
> After creating an iOS application with Livecode 9.6dp2, the icons are missing 
> in the bundle (and also their reference in info.plist).
> 
> So, I’ve tested with Livecode 9.04, and it’s the same !
> 
> I am on macOS 10.14. Xcode uptodate (maybe the guilty ?)
> 
> Strange, no ? I am the only one ?
> 


So, I’ve set Xcode’s preferences to use the 10.3 command line tool, and icons 
are back !


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Missing icon on iOS app

2020-01-18 Thread Ludovic THEBAULT via use-livecode
Hello,

After creating an iOS application with Livecode 9.6dp2, the icons are missing 
in the bundle (and also their reference in info.plist).

So, I’ve tested with Livecode 9.04, and it’s the same !

I am on macOS 10.14. Xcode uptodate (maybe the guilty ?)

Strange, no ? I am the only one ?

Ludovic
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Focus on customproperty inspector

2020-01-11 Thread Ludovic THEBAULT via use-livecode


> Le 11 janv. 2020 à 15:45, Klaus major-k via use-livecode 
>  a écrit :
> 
> Bonjour Ludovic,
> 
>> Am 11.01.2020 um 15:38 schrieb Ludovic THEBAULT via use-livecode 
>> :
>> 
>> Hello, 
>> 
>> With livecode 9.6 I have a strange behavior, when the custom property 
>> inspector is open, and the script window is open too, the focus shifts from 
>> time to time to the property title (which I previously displayed). If I 
>> don't pay attention, I replace the property title with the script I'm 
>> writing! 
>> With LV 9.0, I didn't notice this behavior.
>> I’m the only one with this bug ?
>> 
>> Thanks (and Happy New year !) !
> 
> this is a known bug (since LC 9.5.x?) and already reported.
> 

Thanks.



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Focus on customproperty inspector

2020-01-11 Thread Ludovic THEBAULT via use-livecode
Hello, 

With livecode 9.6 I have a strange behavior, when the custom property inspector 
is open, and the script window is open too, the focus shifts from time to time 
to the property title (which I previously displayed). If I don't pay attention, 
I replace the property title with the script I'm writing! 

With LV 9.0, I didn't notice this behavior.

I’m the only one with this bug ?

Thanks (and Happy New year !) !

Ludovic
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: IPhone geometry

2019-11-30 Thread Ludovic THEBAULT via use-livecode


> Le 30 nov. 2019 à 18:25, Colin Holgate via use-livecode 
>  a écrit :
> 
> I think they would, but the iPhone 11 screen is the same ratio of the iPhone 
> X screen. If you had successfully submitted for iPhone X, it should be ok for 
> iPhone 11.
> 
> It only needs to be background though, but you could do some math and put 
> buttons into the corners where the notches are (if your app hides the status 
> bar that is).
> 
> 
>> On Nov 30, 2019, at 12:18 PM, J. Landman Gay via use-livecode 
>>  wrote:
>> 
>> Does anyone know if Apple will reject an app that doesn't fill the screen on 
>> the newer tall phones?

I submittted a week ago an update to my app which was built for an iphone 4 
screen ! (There is just a fullscreenmode to « show all ») and is on the App 
Store !

Ludovic


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Android and external documents crash

2019-06-06 Thread Ludovic THEBAULT via use-livecode
Hello

One user of my app report me a bug when my script call
put specialfolderpath("external documents")

In the standalone settings the "Write external storage" option is set to true.
With all android devices I have, I’ve no bug. But all my device have an 
external slot (but even with no card in it, I’ve no bug).
I’ve also created a test stack with these prefs :
- Internal storage only
- Write external storage : false (but here it can crash on emulator)

But no bug for me.

And Android Emulator don’t provide device without external storage !

Someone encountered this bug `?

Thanks

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Notarize your app

2019-05-31 Thread Ludovic THEBAULT via use-livecode
Hello,

I think that could help !
https://latenightsw.com/sd-notary-notarizing-made-easy/

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Download file from widget browser ?

2019-05-22 Thread Ludovic THEBAULT via use-livecode
Hello, 

If I go on a website to download text files within the widget browser, where I 
retrieve the downloaded file ?

I cannot use the put URL() because there is a verification of the user agent to 
 download the files.

Thanks !
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: repeat with times

2019-05-21 Thread Ludovic THEBAULT via use-livecode


> Le 21 mai 2019 à 20:24, Andrew Bell via use-livecode 
>  a écrit :
> 
> I'm excited to try some of the new features of LC 9.5 but found a regression 
> that has me dead in the water. Went to file a bug report, but 9.0.5 is the 
> newest version listed. (I realize the team is busy in San Jose this week)
> 
> Now that I'm a slightly more seasoned coder I know there are more efficient 
> ways to accomplish this, but my n00b syntax was very English-like for repeat 
> loops like this...
> 
> put the number of lines of tSomeText into tThisMany
> repeat with x = 1 to tThisMany times
>   ## some code
> end repeat
> 

Try just 

> repeat with x = 1 to tThisMany 
>   ## some code
> end repeat

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Mobile - Open file dialog?

2019-05-14 Thread Ludovic THEBAULT via use-livecode

> Le 14 mai 2019 à 15:53, Klaus major-k via use-livecode 
>  a écrit :
> 
> Bonjour Ludovic,
> 
>> Am 14.05.2019 um 15:46 schrieb Ludovic THEBAULT via use-livecode 
>> :
>> 
>> 
>>> Le 14 mai 2019 à 15:39, Matthias Rebbe via use-livecode 
>>>  a écrit :
>>> 
>>> Hi Ludovic,
>>> 
>>> thanks for you answer, but i think a was not precise enough.
>>> 
>>> The app allows to saves PDF files.  Not only one, but many. The folder to 
>>> which the files are saved is static set to the documents folder.
>>> I want to allow the users to open any of that files. As i wrote already, in 
>>> Desktop i am doing this by "answer file with.   " and the users see the 
>>> files in the documents folder and just have to select the one they want to 
>>> open.
>>> 
>>> Currently i am using mobilepick on my mobile app to show a list of all 
>>> files and let the users select the one they want to open.
>>> But i was wondering if there might be an other solution that would allow 
>>> this also.
>>> 
>>> 
>>> Matthias Rebbe
>> 
>> Sorry !
>> 
>> I think it’s better to use an data grid, or a simple field to select the 
>> file. MobilePick doesn’t display all the filename
> 
> So something like:
> ...
> put files(specialfolderpath("documents")) into tFiles
> filter tFiles with "*.pdf"
> mobilepick tFiles
> ...
> does not work?
> 

Yes it’s work, but if the filename is not short, only the beginning of the 
filename is displayed with MobilePick (on iPhone, perhaps not on ipad). 

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Mobile - Open file dialog?

2019-05-14 Thread Ludovic THEBAULT via use-livecode

> Le 14 mai 2019 à 15:39, Matthias Rebbe via use-livecode 
>  a écrit :
> 
> Hi Ludovic,
> 
> thanks for you answer, but i think a was not precise enough.
> 
> The app allows to saves PDF files.  Not only one, but many. The folder to 
> which the files are saved is static set to the documents folder.
> I want to allow the users to open any of that files. As i wrote already, in 
> Desktop i am doing this by "answer file with.   " and the users see the 
> files in the documents folder and just have to select the one they want to 
> open.
> 
> Currently i am using mobilepick on my mobile app to show a list of all files 
> and let the users select the one they want to open.
> But i was wondering if there might be an other solution that would allow this 
> also.
> 
> 
> Matthias Rebbe

Sorry !

I think it’s better to use an data grid, or a simple field to select the file. 
MobilePick doesn’t display all the filename
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Mobile - Open file dialog?

2019-05-13 Thread Ludovic THEBAULT via use-livecode

> Le 14 mai 2019 à 00:57, Matthias Rebbe via use-livecode 
>  a écrit :
> 
> Hi,
> 
> i am currently porting a desktop app to mobile. In this app the user will be 
> able to save and open PDF files in the documents folder.
> For opening a file In desktop "answer file" is the way to do it. But how 
> would you do this in Android/iOS? Would you use mobilePick for this or is 
> there a more elegant way or "better looking" way for this?
> 

No need to ask a path to the user. Save directly on the destination folder.
For iOs : the specialfolderpath(« Documents »)
For Android, the documents folder could be inaccessible to the user, it is 
better to use the specialfolderpath("external documents »). Generally the path 
is something like /Android/Datas/TheIdentifierOfTheApp*/files/ 


*The identifier is the « com.domain.nameoftheApp »  you indicated in the 
standalone settings. Also, the « write external storage » need to be activated.

Ludovic
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

array and revExecuteSQL

2019-05-08 Thread Ludovic THEBAULT via use-livecode
hello

when you use array with revExecuteSQL like :

revExecuteSQL, dbID, tSQL, "tarray"

can we use array wth keys as text and not number :
tarray["latitude"] vs tarray[1]

i’ve some bug with first syntax.

Thanks for your light !
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Save a file on iOS Files app ?

2019-03-16 Thread Ludovic THEBAULT via use-livecode
Hello,

It is possible to save a file on an iPhone which can be accessed by the iOs 
Files app (at least in the On My Phone folder) ?

Thanks !

https://support.apple.com/en-au/HT206481
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Android and attachments

2019-03-15 Thread Ludovic THEBAULT via use-livecode

> Le 15 mars 2019 à 09:24, Ludovic THEBAULT via use-livecode 
>  a écrit :
> 
> I've been told some bugs when you want to share a file (by « 
> mobileComposeMail ») from an application designed with Livecode (9.02) under 
> Android :
> With Google Drive, a zip file is saved without a name and extension but 
> remains valid.
> With Outlook, the same.
> But with another application, no problem.
> 
> Where can this come from? The zip file is saved with the specialfolderpath 
> ("external documents") and the option "Write external storage" is enabled for 
> the application.
> 
> Thank you for your lights!
> 

And with Gmail the email with the zip attachment stay in the outbox...


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Android and attachments

2019-03-15 Thread Ludovic THEBAULT via use-livecode
I've been told some bugs when you want to share a file (by « mobileComposeMail 
») from an application designed with Livecode (9.02) under Android :
With Google Drive, a zip file is saved without a name and extension but remains 
valid.
With Outlook, the same.
But with another application, no problem.

Where can this come from? The zip file is saved with the specialfolderpath 
("external documents") and the option "Write external storage" is enabled for 
the application.

Thank you for your lights!

Ludovic
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: add file extension share for iOS app

2019-02-22 Thread Ludovic THEBAULT via use-livecode

> Le 22 févr. 2019 à 12:05, Matthias Rebbe via use-livecode 
>  a écrit :
> 
> Ludovic,
> 
> thank you very much. I will try today evening. But how will i handle the file 
> in the App.
> Can i use the $1 variable for this like in the desktop apps? Or is there a 
> special message that takes care of it?
> 

You need to use urlwakeup.
See  http://forums.livecode.com/viewtopic.php?f=75=18775



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: add file extension share for iOS app

2019-02-22 Thread Ludovic THEBAULT via use-livecode

> Le 22 févr. 2019 à 10:06, Matthias Rebbe via use-livecode 
>  a écrit :
> 
> Hi,
> 
> i don´t know if it is the correct expression in the topic.
> 
> I need the possibility to share an email attachment on iOS with my iOS app.
> I want to be able to open a .txt file received by email on iOS with my 
> installed app.
> Is there a way to do this with LC. Do i have to edit the plist file manually 
> after creating the iOS app? 
> And how does the app then takes notice of the file when the app is opened?
> 
> Matthias


Hello, you need to create an iOS standalone, open the package (right clic on 
the icon) and copy the « info.plist » file to the desktop.
Then add these lines in this files :
...
CFBundlePackageType
APPL
# add these lines 
CFBundleDocumentTypes
   

 CFBundleTypeName
 XXX   // name of your choice
 CFBundleTypeRole
 Viewer
 LSHandlerRank
 Owner
 LSItemContentTypes
 
 com.owner.nameoftheapp.xxx // exampe: 
com.microsoft.word.docx
 

 
 UTExportedTypeDeclarations


 UTTypeConformsTo
 
 public.plain-text
 public.text
 
 UTTypeDescription
  XXX // name of your choice
 UTTypeIdentifier
 com.owner.nameoftheapp  // exampe: 
com.microsoft.word
 UTTypeTagSpecification
 
 public.filename-extension
 xxx // extension you want to handle
 


## end #
CFBundleSignature



Then, you need to add the info.plist to your app with the « Copy file » section 
of the Standalone builder.
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Data grid : show an button in a column only if there is an email in other column

2019-02-21 Thread Ludovic THEBAULT via use-livecode

> Le 20 févr. 2019 à 17:58, zryip theSlug via use-livecode 
>  a écrit :
> 
> Ludovic,
> 
> Try:
> 
> on FillInData pData
> 
>if pData["email"] <> "" then show btn  "sendmail" of me
> 
>else hide btn  "sendmail" of me
> 
> end FillInData
> 


As i use Table datagrid, pData is just the value of the cell, so with this 
script it’s work.

if GetDataOfIndex(the dgIndex of me, "email") <> "" then
 show btn  "sendmail" of me
 else hide btn  "sendmail" of me

Ludovic
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Data grid : show an button in a column only if there is an email in other column

2019-02-20 Thread Ludovic THEBAULT via use-livecode
Hello,

I have an address table (data grid) including an "email" column. An other 
column contains a button to send an email.  I want to hide this button if the 
line does not contain an email.
I put this script in the behavior of the button column :

on FillInData pData

if pData["email"] <> "" then show btn  "sendmail"

else hide btn  "sendmail"

end FillInData


But it seem to work only for the first line of the table.

Any ideas ?

Thanks in advance !

Ludovic
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: multi line Livecode field uploaded to MySQL

2019-02-16 Thread Ludovic THEBAULT via use-livecode

> Le 16 févr. 2019 à 09:17, Tim Selander via use-livecode 
>  a écrit :
> 
> Thank you for your reply, but I haven't gotten it working yet.
> 
> The code in my first post was from my working stack. Here is what I have from 
> my non-working stack after re-writing to follow your instructions:
> 
> # Construct SQL
> put "INSERT INTO 
> contactInfo(key,organization,denomination,address,category,tel,fax,tEmail,access,founded,staff,servicetime,web,character)"
>  & \
> " VALUES(:1,:2,:3,:4,:5,:6,:7,:8,:9,:10,:11,:12,:13,:14)" into tSQL
> # Execute SQL
> revExecuteSQL(gconnection,tSQL,vkey,vorg,vdenom,vadd,vcategory,vtel,vfax,vtEmail,vaccess,vfounded,vstaff,vtime,vweb,vcat)
>  
> put the result into tTmp
> 
> 
> The table name is "contactInfo" and the list of the table's fields is in the 
> paranthesis.
> 
> The VALUES(:1,:2  syntax is something I haven't seen before. I assume 
> that you need as many numbers as you have fields?
> 
> You say to use variables, and I am assuming in the "revExecuteSQL" line. Is 
> that correct? I tried the list of variables both with the quotes you used, 
> and without just to see. I also tried replacing the revExecuteSQL comman with 
> revdb_execute. Both result in this error: {execution error at line n/a 
> (External handler execution error: revdberr,syntax error) near 
> "revdberr,syntax error"}
> 
> I appreciate your taking the time to educate me.
> 
> Tim Selander
> 


Here an example :

put fld "name" into tName

put the label of btn "title" into tTitle
put fld "first_name" into fFirst_Name

put fld "address" into tAddress

put fld "citycode" into tCitycode

put fld "tCity" into tCity

put fld "tPhone" into tPhone

put fld "tEmail" into tEmail

put "INSERT INTO address ( tAddress, tCitycode, tEmail, tName, fFirst_Name, 
tPhone, tTitle, tCity) VALUES ( :1, :2, :3, :4, :5, :6, :7, :8 );" into tSQL
revExecuteSQL tDatabaseID, tSQL, "tAddress", "tCitycode", "tEmail", "tName", 
"fFirst_Name", "tPhone", "tTitle", "tCity"

//The quote are necessary in last line
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: multi line Livecode field uploaded to MySQL

2019-02-15 Thread Ludovic THEBAULT via use-livecode

> Le 16 févr. 2019 à 07:59, Tim Selander via use-livecode 
>  a écrit :
> 
> I have a routine to take data from fields on a card and upload to a mysql 
> database. Has worked well for years, got the original script off the Livecode 
> learning site.
> ---
>  # Construct SQL
>  put "INSERT INTO 
> podcast(IP,accesstime,access_date,pgm_name,access_code,bytes,agent,city,region,country)"
>  & \
>   " VALUES(" & tRowData & ")" into tSQL
>   # Execute SQL
>   put revdb_execute(gconnection,tSQL) into tTmp
> 
>   if the result is not 1 then
> put the result && tSQL & return after message
>  end if
> -
> 
> tRowData has the data from the card fields, comma delimited.
> 
> Now, I'm needing to upload fields with multiple lines. But the returns in the 
> data mess it up. Tried enclosing the field data in quotes, like .csv files, 
> but that didn't work either.
> 
> MySQL can handle multi-line text fields so how do I upload them from LC? 
> Any hints greatly appreciated.
> 

Hello,

use this syntax :

 put "INSERT INTO 
podcast(IP,accesstime,access_date,pgm_name,access_code,bytes,agent,city,region,country)"
 & \
  " VALUES(:1,:2,:3,:4,:5,:6,:7,:8,:9)" into tSQL
  # Execute SQL
  revExecuteSQL 
gconnection,tSQL,"IP","accesstime","access_date","pgm_name","access_code","bytes","agent","city","region
 », "country ») 
put the result into tTmp

// where IP, accesstime… are variables

Ludovic

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: [ANN] LiveCode Advanced Application Architecture book available

2018-11-19 Thread Ludovic THEBAULT via use-livecode

> Le 19 nov. 2018 à 15:28, Andre Alves Garzia via use-livecode 
>  a écrit :
> 
> Aloha Friends,
> 
> There was a mistake in the final book generation, a chapter was missing. I've 
> issued a two new updates today to fix this. All the readers should have 
> received an email about it. If you purchased and did not receive the email, 
> please, let me know.
> 
> Cheers
> 
> andre

Hello,

I got it but in the spam folder.

Thanks for this book !

Ludovic
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Widget Browser, useragent and iOS

2018-11-13 Thread Ludovic THEBAULT via use-livecode
Hello,

It seems we cannot set the user agent of the widget browser on iOS. Any 
workaround ?

Thanks !
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Browser widget and mailto link.

2018-10-31 Thread Ludovic THEBAULT via use-livecode

> Le 30 oct. 2018 à 19:08, Ludovic THEBAULT via use-livecode 
>  a écrit :
> 
> Hello,
> 
> is it normal that email links (mailto:x...@xx.com 
> <mailto:x...@xx.com> »>my mail) do not work in a web page displayed with 
> the browser widget?
> Livecode 9.01 - tested on iOS.
> 

I’ve made a sample stack and opened a bug : 
https://quality.livecode.com/show_bug.cgi?id=21666 
<https://quality.livecode.com/show_bug.cgi?id=21666>

It’s work on android but not on iOS (12 at least). 
here a table of what it work ‘x' or not ‘-‘ after my test (livecode 8 for 
windows)

iOS Android Macos   Win
Widget browser  -   x   -   -   
Mobile browser  x   x   
Browser (desktop)   -   x
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Browser widget and mailto link.

2018-10-30 Thread Ludovic THEBAULT via use-livecode
Hello,

is it normal that email links (mailto:x...@xx.com  
»>my mail) do not work in a web page displayed with the browser widget?
Livecode 9.01 - tested on iOS.

Thanks !

Ludovic
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Android manifest merging

2018-10-17 Thread Ludovic THEBAULT via use-livecode
Hello,

With Livecode 9, according the releasing notes : "Since the merging mechanism 
is more general, enables multiple manifests and does not require users to 
update template manifests with new template replacement strings, this feature 
has been removed - instead any AndroidManifest.xml files included in the Copy 
Files list will be merged into the main manifest at build time. »

So, if i want to add an intent-filter (to have an file extension associated 
with my app), i just need to put it into an empty « android manifest.xml » file 
and add it to the « copy file » section of the standalone settings ?

Thanks for your light !

Ludovic
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Reading PDF Form Data in LiveCode?

2018-10-10 Thread Ludovic THEBAULT via use-livecode
On macOS, try PDFzone (on the App Store). Great app.



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


custom plist

2018-09-19 Thread Ludovic THEBAULT via use-livecode
Hello,

I use the http://lessons.livecode.com/m/4069/l/881992-creating-a-custom-plist 
to create a custom info.plist for my app. But i need to modify it for each 
build to change CFBundleVersion  and CFBundleShortVersionString. 

How let the standalone builder modify the  CFBundleVersion and 
CFBundleShortVersionString automatically ?

Thanks

Ludovic
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: iOS 12 and SDK

2018-09-18 Thread Ludovic THEBAULT via use-livecode

> Le 19 sept. 2018 à 06:55, Monte Goulding via use-livecode 
>  a écrit :
> 
> 
> 
>> On 19 Sep 2018, at 2:50 pm, Ludovic THEBAULT via use-livecode 
>>  wrote:
>> 
>> My app (built with Livecode 8) also crash on IOS 12.
>> So, i built it with LC 9.01 and work on my device on iOS 12.
>> 
>> I submitted it, but Application Loader rejected it :
>> ERROR ITMS-90725: "SDK Version Issue. This app was built with the iOS '10.2' 
>> SDK. All iOS apps submitted to the App Store must be built with the iOS 
>> '11.0' SDK or later, included in Xcode [9.0] or later. Please update Xcode 
>> and rebuild your app. »
>> 
>> But i have only Xcode 8.2.1 and SDX 10, i am under MacOS X 10.11 and cannot 
>> upgrade.
>> 
>> Any solution other than bought a new mac ?
> 
> Unfortunately not. Apple require apps submitted to the App Store to be built 
> against 11+ now which means the minimum Xcode version you can use is Xcode 
> 9.2 under macOS 10.12.6.
> 

Ok, thanks Apple :)

I’ll try to upgrade my OS to macOS 10.12, i read somewhere it could be 
possible. 




___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

iOS 12 and SDK

2018-09-18 Thread Ludovic THEBAULT via use-livecode
Hello,

My app (built with Livecode 8) also crash on IOS 12.
So, i built it with LC 9.01 and work on my device on iOS 12.

I submitted it, but Application Loader rejected it :
ERROR ITMS-90725: "SDK Version Issue. This app was built with the iOS '10.2' 
SDK. All iOS apps submitted to the App Store must be built with the iOS '11.0' 
SDK or later, included in Xcode [9.0] or later. Please update Xcode and rebuild 
your app. »

But i have only Xcode 8.2.1 and SDX 10, i am under MacOS X 10.11 and cannot 
upgrade.

Any solution other than bought a new mac ?

Thanks.

Ludovic
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: 3WDevolution question

2018-09-08 Thread Ludovic THEBAULT via use-livecode

> Le 8 sept. 2018 à 18:03, Mark Wieder via use-livecode 
>  a écrit :
> 
> On 09/07/2018 10:20 PM, Brian Milby via use-livecode wrote:
> 
>>> Mac is somewhat different.  If you click the maximize control then you go
>> into full screen mode for that window (no title bar, no menu, no dock).
>> Palettes still appear over it (tools, Devolution, Navigator, DevTools, but
>> not the menu button bar).  You have to hold the option key when clicking
>> the green dot to get the old behavior (which puts a `+` in it).  Even then,
>> it fills the entire screen (except it does not cover the dock).  Same
>> palette situation.
> 
> Noob question :) I tried this on osx and maximized a stack. It took over the 
> whole screen. Now how do I unmaximize it? There's no title bar. That just 
> seems wrong.

Put the mouse at the top of screen to display menubar or type escape at the 
keyboard 
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: fullscreenmode and rect of a substack on mobile device ?

2018-08-31 Thread Ludovic THEBAULT via use-livecode

> Le 30 août 2018 à 20:44, Ludovic THEBAULT via use-livecode 
>  a écrit :
> 
> You can download my test stack here :
> https://www.dropbox.com/s/iwwm2syiqzqamtg/testsubstack2.livecode?dl=1
> 
> Note : my script doesn’t work properly : i tested it on an android tablet and 
> the result is not accurate.


I updated the script, now it’s work for all screen size (in fullscreenmode 
showall). You can also test for other fullscreenmode.
I noticed that with some devices the top and bottom of the screenrect could be 
slightly hidden by the physical border of the screen (about ten pixels). I 
added a button to shift the dotted lines representing the screen boundaries by 
10 pixels with each click to test this.
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: fullscreenmode and rect of a substack on mobile device ?

2018-08-30 Thread Ludovic THEBAULT via use-livecode

> Le 30 août 2018 à 17:14, Sannyasin Brahmanathaswami via use-livecode 
>  a écrit :
> 
> Ludovic
> 
> Can you copy that whole handler to the list?
> 
> round((item 4 of the screenrect*the systemscale)/2)-theight // +theight 
> 
> only seems partial?

Hello,

You can download my test stack here :
https://www.dropbox.com/s/iwwm2syiqzqamtg/testsubstack2.livecode?dl=0 


Note : my script doesn’t work properly : i tested it on an android tablet and 
the result is not accurate.
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Binary Rejected!

2018-08-24 Thread Ludovic THEBAULT via use-livecode

> Le 24 août 2018 à 08:15, Dan Friedman via use-livecode 
>  a écrit :
> 
> Ludivuc,
> 
> Thanks for the advice!   I also found an LiveCode Lesson on this very topic.  
>  http://lessons.livecode.com/m/4069/l/881992-creating-a-custom-plist 
> 
> 

Great, i missed this. It’s a better solution.

Ludovic
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Binary Rejected!

2018-08-23 Thread Ludovic THEBAULT via use-livecode

> Le 24 août 2018 à 07:48, Dan Friedman via use-livecode 
>  a écrit :
> 
> Hello,
> 
> My recent iOS app uploaded to Apple was rejected because the dialog asking 
> for access to your location didn’t say why the app wanted to use location 
> services.  Apple said, “We noticed that your app requests the user’s consent 
> to access their location but does not clarify the use of this feature in the 
> permission modal alert.”
> 
> I found the “NSLocationAlwaysAndWhenInUseUsageDescription” key in the app’s 
> info.plist and changed it.  But, when I uploaded the app to Apple, the 
> Application loaded app reported the following error:
> 
> ERROR ITMS-90035: "Invalid Signature. Invalid Info.plist (plist or signature 
> have been modified). The file at path [xxx.app/] is not properly 
> signed. Make sure you have signed your application with a distribution 
> certificate, not an ad hoc certificate or a development certificate. Verify 
> that the code signing settings in Xcode are correct at the target level 
> (which override any values at the project level). Additionally, make sure the 
> bundle you are uploading was built using a Release target in Xcode, not a 
> Simulator target. If you are certain your code signing settings are correct, 
> choose "Clean All" in Xcode, delete the "build" directory in the Finder, and 
> rebuild your release target. For more information, please consult 
> https://developer.apple.com/library/ios/documentation/Security/Conceptual/CodeSigningGuide/Introduction/Introduction.html;
> 
> Obviously, they didn’t like me messing with the info.plist.  So, what the 
> solution?   Is there a way to edit the 
> “NSLocationAlwaysAndWhenInUseUsageDescription” key?   Assuming that’s the 
> correct thing to be editing?
> 
> Any assistance would be VERY appreciated!
> 
> -Dan

Hello,

You need to modify the key before create the standalone :
Panos  tells you how to do it here : 
https://quality.livecode.com/show_bug.cgi?id=19780#c11 


But I hope the next release allows us to do it in the standalone builder.

Ludovic
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: fullscreenmode and rect of a substack on mobile device ?

2018-08-23 Thread Ludovic THEBAULT via use-livecode

> Le 22 août 2018 à 22:24, J. Landman Gay via use-livecode 
>  a écrit :
> 
> On 8/22/18 3:13 PM, J. Landman Gay via use-livecode wrote:
>> But the stack should still fill the screen and it doesn't.
> 
> This will resize the stack the same way as your "adapt" handler does, so you 
> can eliminate that entirely:
> 
> on preopenstack
>  mobileSetAllowedOrientations("portrait")
>  iphoneUseDeviceResolution true,true
>  set the fullscreenmode of stack "ipad" to "exactFit"
> end preopenstack

Many thanks for finding that this command !
Sadly, it’s only for iOS.

But your previous script must used on android.

Thanks again.


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: fullscreenmode and rect of a substack on mobile device ?

2018-08-21 Thread Ludovic THEBAULT via use-livecode

> Le 20 août 2018 à 22:36, J. Landman Gay via use-livecode 
>  a écrit :
> 
> On 8/19/18 11:11 PM, Ludovic THEBAULT via use-livecode wrote:
>> But i found i can get the « real » top and bottom with : round((item 4 of 
>> the screenrect*the systemscale)/2)-theight // +theight (for the bottom)
>> where theight is the height of my stack before fullscreenmode.
> 
> You should be able to get the stack rect from "the rect of this card", or 
> "the rect of this stack". That may have been lost in the long conversation 
> that followed your question.
> 
> The card rect will tell you the width and height, the stack rect will tell 
> you the pixel locations of the top, sides, and bottom. Does that work for 
> you? Brian observed that the actual mobile size isn't defined yet on 
> preOpenCard (I haven't tested that) so you may need to query it after the app 
> has fully loaded.
> 

Hello, thanks

But even « the rect of this cd » return the rect of the stack i created 
(0,0,768,1024) not the rect of the screen.
I’ve made a test stack. It’s an « iPad » stack. Test it with iOS simulator on 
an iPhone device.
https://www.dropbox.com/s/iwwm2syiqzqamtg/testsubstack2.livecode?dl=0

Click on « get the rect » and click on « Adapt » to set the rect of the 
background to the rect of the screen
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: fullscreenmode and rect of a substack on mobile device ?

2018-08-19 Thread Ludovic THEBAULT via use-livecode

> Le 18 août 2018 à 20:32, Richard Gaskin via use-livecode 
>  a écrit :
> 
> Ludovic THEBAULT wrote:
> 
> > How get the « real » rect of the stack ?
> 
> Without fullScreenMode it's as simple as:
> 
>get the rect of this stack
> 
> FullScreenMode makes handling dynamic layout details complex.
> 
> It's well suited for certain types of games or multimedia presentations, such 
> as Monument Valley.
> 
> In those types of layouts everything is stretched to fit, without needing 
> dynamic placement of individual controls.
> 
> But consider the apps on your phone.  The ones I use the most are gMmail, 
> Firefox, YouTube, Twitter, Instagram, LinkedIn, Skype, SimpleNote, Play 
> Music, Nextcloud, Hangouts, Telegram, Maps, Calculator, Ingres, and a few 
> others.
> 
> Every one of them uses dynamic positioning of the sort we've been doing in 
> LiveCode for decades by responding to the resizeStack message.
> 
> I don't know what you're working on so I can't have an opinion of whether 
> fullScreenMode is a good fit.
> 
> But in practice I so rarely see other apps use that sort of scaling that I 
> don't think about fullScreenMode much at all.
> 

Hello,

Thanks

My app use a lot of controls, so i think the fullscreenmode is more easy (and 
fast) to adapt the app to the screen, except that we cannot get the real rect 
of the stack.

But i found i can get the « real » top and bottom with : round((item 4 of the 
screenrect*the systemscale)/2)-theight // +theight (for the bottom)
where theight is the height of my stack before fullscreenmode.
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

fullscreenmode and rect of a substack on mobile device ?

2018-08-18 Thread Ludovic THEBAULT via use-livecode
Hello,

I’ve a stack for phone and a substack for tablet (with iPad ratio, 1024*768).
i use the fullscreenmode to « show all »

On android tablet, the ratio height/width is sometimes very different from iPad.
I tried to change the height of the substack before open it but with no luck :

// in the openstack handler of the mainstack
put item 3 of the screenrect into theight

put item 4 of the screenrect into twidth

put theight/twidth into tratio

set the height of stack "substackTablet" to round(1024*tratio) 

mobileSetAllowedOrientations("portrait")

open stack "substackTablet"

set the fullscreenmode of stack  "substackTablet" to "showall"

set the height of  grp "grpbackground"  of stack  "substackTablet" to 
round(1000*tratio) 


=> as result, the top of the stack and the bottom of the stack aren’t the top 
and the bottom of the screen. If i want my background group cover all the 
screen i need to set this top to -200 for example.

How get the « real » rect of the stack ?

Thanks
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

WordOut : Where to put the license key?

2018-06-21 Thread Ludovic THEBAULT via use-livecode
Hello,

I’ve bought WordOut with a bundle. I’ve a licence key, but I don't know where 
to put it.

Thanks for your help !
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

iOS / Android differences on a scrolling list field

2018-06-15 Thread Ludovic THEBAULT via use-livecode
Hello,

I’ve a card with a scrolling list field. On iOS, the user can scroll the field 
(with native scroller) and then select (hilite) a line like expected. 
On Android, as soon as you touch the field, there is an hilitedline and then 
the scroll. It’s not really  expected and nice.

Is there a method to avoid this ?

Thanks !
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Convert UTM to Lat/Long

2018-06-08 Thread Ludovic THEBAULT via use-livecode

> Le 8 juin 2018 à 18:56, Trevor DeVore via use-livecode 
>  a écrit :
> 
> I need to convert UTM coordinates to lat/long coordinates so I converted
> the python script found at the following url to LiveCode:
> 
> https://stackoverflow.com/questions/343865/how-to-convert-from-utm-to-latlng-in-python-or-javascript
> 
> I’ve saved it as a gist in case anybody else needs it.
> 
> https://gist.github.com/trevordevore/e2c2bff637564202f41ecfb93a00352a 
> 

Thanks, it could be useful for me !
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Apple iOS App Rejection because Location Usage String is too Generic

2018-03-24 Thread Ludovic THEBAULT via use-livecode

> Le 24 mars 2018 à 07:38, panagiotis merakos via use-livecode 
>  a écrit :
> 
> Hi Ralph,
> 
> These are set while building the standalone. See comment 11 here
> https://quality.livecode.com/show_bug.cgi?id=19780 for a workaround.
> 
> Best,
> Panos
> —

It worked for me.

But i hope a next release of Livecode permit to do it into the standalone 
builder.

Ludovic


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: App rejected because of camera permission modal alert!

2018-03-16 Thread Ludovic THEBAULT via use-livecode

> Le 16 mars 2018 à 17:58, J. Landman Gay via use-livecode 
>  a écrit :
> 
> You can put customized copies of the manifest into the Copy Files pane of the 
> standalone settings and it will override the default. I think it should work 
> with plist files too.

Good to know !

Thanks
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: App rejected because of location permission modal alert!

2018-03-16 Thread Ludovic THEBAULT via use-livecode

> Le 16 mars 2018 à 17:52, panagiotis merakos via use-livecode 
>  a écrit :
> 
> Hi Ludovic,
> 
> For changing the location-related description in the plist, see comment 11
> in this report:
> 
> http://quality.livecode.com/show_bug.cgi?id=19780
> 
> Best,
> Panos
> —

Thanks !


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: App rejected because of location permission modal alert!

2018-03-16 Thread Ludovic THEBAULT via use-livecode

> Le 16 mars 2018 à 17:41, Ludovic THEBAULT via use-livecode 
> <use-livecode@lists.runrev.com> a écrit :
> 
> 
> My app was also rejected for localization permission.
> 

But in the settings.plist file there is no reference to localion….

Can I add these lines :

 NSLocationWhenInUseUsageDescription 
This application requires access to Location because …

Thanks !
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: App rejected because of camera permission modal alert!

2018-03-16 Thread Ludovic THEBAULT via use-livecode

> Le 13 mars 2018 à 22:07, Ralph DiMola via use-livecode 
>  a écrit :
> 
> Hey William,
> 
> 
> 
> OK, I see the problem. This will require you to modify the plist files in the 
> LiveCode app bundle.
> 


Hello,

My app was also rejected for localization permission.

That’s new from Apple.

PS : I hope a future version of livecode will save all changes to plist files 
and android.xml manifests to keep them with each update.


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Color a graphic on a datagrid

2018-03-03 Thread Ludovic THEBAULT via use-livecode

> Le 3 mars 2018 à 00:27, zryip theSlug via use-livecode 
>  a écrit :
> 
> We have nothing helpful for accomplishing that in DGH. But having a
> look to the ColumnControlOfIndex function in the datagrid API could be
> helpful:
> http://lessons.livecode.com/m/datagrid/l/7344-data-grid-api
> 
> We have shared a stack demonstrating the usage of this function some
> years ago. I just republished it here:
> http://www.aslugontheroad.com/download/category/4-lab
> 
> The name of the stack is "dg interaction with a column control" and
> the purpose was to change the background color of column 2 when one is
> changing a value in column 3 by choosing a color inside a popup menu.

Thanks.

Ludovic
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Color a graphic on a datagrid

2018-03-02 Thread Ludovic THEBAULT via use-livecode

> Le 2 mars 2018 à 17:24, Ludovic THEBAULT via use-livecode 
> <use-livecode@lists.runrev.com> a écrit :
> 
> Hello,
> 
> I want to do something similar to 
> http://lessons.livecode.com/m/datagrid/l/7332-how-can-i-colorize-individual-lines-in-a-table
> 
> but i want to « automatically » change the color of a graphic (in col 1) in a 
> row only when there is some data in this row (in col 10). I can't get the 
> value of my cell (col 10) to test it and modify the color of the graphic in 
> col 1.
> 
> Any ideas ?
> 
> Thanks !

I use a workaround : put the value in a hidden field of the same column of the 
graphic


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Color a graphic on a datagrid

2018-03-02 Thread Ludovic THEBAULT via use-livecode
Hello,

I want to do something similar to 
http://lessons.livecode.com/m/datagrid/l/7332-how-can-i-colorize-individual-lines-in-a-table

but i want to « automatically » change the color of a graphic (in col 1) in a 
row only when there is some data in this row (in col 10). I can't get the value 
of my cell (col 10) to test it and modify the color of the graphic in col 1.

Any ideas ?

Thanks !
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Mysql load dump

2018-02-14 Thread Ludovic THEBAULT via use-livecode

> Le 14 févr. 2018 à 18:18, Mike Bonner via use-livecode 
>  a écrit :
> 
> DOH, I see it in the subject now.
> 
> If you can get to a command line where the db server resides, you can use
> the mysql client to do the import, or if phpmyadmin is available, you can
> use its interface to import the dump.  IIRC livecode doesn't like sending
> multi-line sql to mysql (though it works in sqlite) so it might be possible
> to parse the file line by line and send each line in sequence.  (No clue
> what other hoops you might need to jump through to do this though. )


I wanted to use my favorite tool, Livecode, to create a script to automate this 
but making a query for each dump line is not the cleanest. 


Thanks anyway

Ludovic
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Mysql load dump

2018-02-14 Thread Ludovic THEBAULT via use-livecode

> Le 14 févr. 2018 à 17:12, Mike Bonner via use-livecode 
>  a écrit :
> 
> If this is sqlite, you might be able to use the .read dot command.. (note
> the nearly invisible period that begins .read)
> 
> Untested, but this might work.
> 
> put "path/to/dump.sql" into tPath
> put merge(".dump [[tpath]]") into tSql
> revexecutesql tDatabaseId, tsql
> 
> If the dump is IN to sqlite, but is from another db (mySQL or whatever) it
> might not work.
> 
> Oh, if its sqlite and you still have access to the first database file, it
> should be possible to a) open the new database, b) attach the old database
> and c) copy the tables you need from one to the other, then d) detach the
> old database and you should be good to go.

Thanks, but it’s for Mysql.


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Mysql load dump

2018-02-14 Thread Ludovic THEBAULT via use-livecode
Hello,

I want to load a dump from an livecode app but i don’t know how to do it.

I’ve tried :

answer file  « Your dump :"

put "source " & quote & it & quote into tSQL

revExecuteSQL tDatabaseID, tSQL


Without success.

Any ideas ?

Thanks
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Execute multiple MySQL commands

2018-02-08 Thread Ludovic THEBAULT via use-livecode

> Le 8 févr. 2018 à 16:48, Bob Sneidar via use-livecode 
>  a écrit :
> 
> I know where! The Dictionary:
> 
> 
> SQLStatement  string  
> A string in Structured Query Language. (Do not include a semicolon at the end 
> of the SQLStatement.) >Note: Some database systems, such as Oracle, are 
> capable of handling a multiple-line SQL statement.
> 
> Bob S


Just for infos, multiple statements works with SQLite but not with Mysql.
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Execute multiple MySQL commands

2018-02-08 Thread Ludovic THEBAULT via use-livecode

> Le 8 févr. 2018 à 16:34, Bob Sneidar via use-livecode 
>  a écrit :
> 
> I thought I read somewhere that the LC API does not support multiple 
> statements? 
> 
> Bob S


Ok, thanks !
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Execute multiple MySQL commands

2018-02-08 Thread Ludovic THEBAULT via use-livecode
Hello,

I’ve an « syntax error » as result if i want to execute multiple MySQL 
commands, even with transactions.

It is normal ? If i execute one command at time, it’s work.

Thanks !



Here a sample script :

revExecuteSQL tDatabaseID,"BEGIN TRANSACTION »

put "INSERT INTO savemyTable (column1) VALUES (1)  & ";" & cr into tSQL

put "DELETE FROM myTable WHERE id = " & id & ";" & cr after tSQL

revExecuteSQL tDatabaseID, tSQL

if the result is not an integer then answer the result

else …// COMMIT



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Print cards difference between Mac and Win

2018-01-28 Thread Ludovic THEBAULT via use-livecode

> Le 27 janv. 2018 à 20:31, J. Landman Gay via use-livecode 
> <use-livecode@lists.runrev.com> a écrit :
> 
> On 1/27/18 2:19 AM, Ludovic THEBAULT via use-livecode wrote:
>> Hello,
>> I’ve made a stack (on macos) that print a card in pdf.
>> I set the printMargins to 0,0,0,0
>> I print the card "into 0,0,595,842" (the rect of the card)
>> To test i set the printCardBorders to true
>> On a mac, it’s perfect, the borders are at the limit of the « pdf paper », 
>> if i create a standalone and open it on Windows and « print » the card in 
>> pdf, the right border is 1 cm from the edge and the lower border is not 
>> visible on the paper.
>> what did I miss?
> 
> The printout (both paper and PDF) uses the local printer setup parameters to 
> determine how to position the page. Probably the Windows default printer 
> settings are different from those on the Mac. Many/most printers cannot print 
> within a certain margin from the page edges (usually about 1/8 to 1/4 inch) 
> so it sounds like the current page setup for the default Windows printer is 
> doing that. At any rate, compare the Mac page setup dialog with the one on 
> Windows to see if you can spot differences.

Thanks.

I set the printPaperSize to « 595,842" and it’s ok now.
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Print cards difference between Mac and Win

2018-01-27 Thread Ludovic THEBAULT via use-livecode
Hello,

I’ve made a stack (on macos) that print a card in pdf.
I set the printMargins to 0,0,0,0
I print the card "into 0,0,595,842" (the rect of the card)

To test i set the printCardBorders to true

On a mac, it’s perfect, the borders are at the limit of the « pdf paper », if i 
create a standalone and open it on Windows and « print » the card in pdf, the 
right border is 1 cm from the edge and the lower border is not visible on the 
paper.

what did I miss?

Thanks in advance !
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Bug with first key in dialog

2017-10-23 Thread Ludovic THEBAULT via use-livecode

> Le 23 oct. 2017 à 16:58, Bob Sneidar via use-livecode 
>  a écrit :
> 
> If you mean in an ask dialog text field, that works for me with that same 
> version, MacOS 10.12.6
> 
> Bob S

Thanks

My bug seem the same issue as bug 20503 
 and it already resolved for 
the next release.

Ludovic
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Bug with first key in dialog

2017-10-23 Thread Ludovic THEBAULT via use-livecode
Hello, 

i’ve opened this bug :
http://quality.livecode.com/show_bug.cgi?id=20595

With LV 8.17 rc3 in a dialog you couldn’t use the first key of the keyboard 
(under the escape key)

It’s just for me or someone could confirm ?

Thanks
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Lineoffset work on message box but not in my script ?!

2017-08-15 Thread Ludovic THEBAULT via use-livecode
Hello,

Strange bug in Livecode :

Here the script (in a repeat):

put line (lineoffset("c_" tcpt of line 1 of thedatas,listmailleCentre)) of 
listcentre into tcoordline

put tcoordline into temp 

—> return the good value, ex : 5152
put lineoffset("%AI3",the tdatas of cd 1 of stack "yams",tcoordline+1) into 
temp2 

—> return 0


If i put this script on the message box :

put 5152 into tcoordline

put lineoffset("%AI3",the tdatas of cd 1 of stack "yams",tcoordline+1) 

—> return a good value



What’s going on ? I work with Livecode 8.16 indy on MacOS.

I need to open a bug ?

Thanks

Ludovic
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

  1   2   >