Search found 26 matches

by guylouis
Mon Dec 13, 2021 12:37 pm
Forum: Android Deployment
Topic: My local IP address
Replies: 28
Views: 20723

Re: My local IP address

Hi Torsten and Jacqueline,

I just read your last posts. Everything is working fine. Thank you very much…

Best, Guy
by guylouis
Mon Feb 10, 2020 11:50 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Template script for DataGrid
Replies: 4
Views: 3858

Re: Template script for DataGrid

Hi,

Thanks for all your answers. I have the solution to my problem.

I used "Data Grid Helper 2.5" and all is now fine.

Best, Guy
by guylouis
Sat Feb 08, 2020 10:27 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Template script for DataGrid
Replies: 4
Views: 3858

Template script for DataGrid

Hi, I created an option button in a column of a DataGrid. OK, it reacts as I want. I see there is a script for this option button with some handlers like "on FillInData pData", "on mouseDoubleUp pMouseBtnNum", ..... But how can I script this button to take an action when I click on it? In a standard...
by guylouis
Sat Feb 08, 2020 3:22 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Datagrid: changing cell style
Replies: 25
Views: 13870

Re: Datagrid: changing cell style

Hi, I created an option button in a column of a DataGrid. OK, it reacts as I want. I see there is a script for this option button with some handlers like "on FillInData pData", "on mouseDoubleUp pMouseBtnNum", ..... But how can I script this button to take an action when I click on it? In a standard...
by guylouis
Sat Mar 10, 2018 3:52 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: HTML in DataGrids
Replies: 2
Views: 2415

Re: HTML in DataGrids

Because nobody answers to my post, I searched by myself... 😄 This is the simplest solution: - Create a button "X" on the same card of the DataGrid "Y" - Edit the script of this button: on FillInData pData set the htmltext of me to pData end FillInData - Obviously it's more beautiful to hide this but...
by guylouis
Wed Mar 07, 2018 5:15 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: HTML in DataGrids
Replies: 2
Views: 2415

HTML in DataGrids

Hi,

How do I put HTML text in a DataGrid?

In a field I can use set the HTMLText of field "X" to "blablaHTML"...

But how to do the same thing in a DataGrid?

Thanks
by guylouis
Fri Oct 20, 2017 4:03 am
Forum: Android Deployment
Topic: My local IP address
Replies: 28
Views: 20723

Re: My local IP address

Hi,

The networkInterfaces solution is good on Windows and OS X.

But not on Androïd...

answer the networkInterfaces gives empty!

Best, Guy
by guylouis
Mon Oct 09, 2017 6:27 pm
Forum: Android Deployment
Topic: My local IP address
Replies: 28
Views: 20723

Re: My local IP address

I would suggest you submit a bug report because in my opinion these are very important commands for network usage or they should at least give us another way to get the device IP-Address and hostname and the abillity resolve other hostnames on android (and ios). let us know the results... Where do ...
by guylouis
Sat Oct 07, 2017 12:05 pm
Forum: Android Deployment
Topic: My local IP address
Replies: 28
Views: 20723

Re: My local IP address

I think I didn't pose my question clearly: why use the IP address at all? Why not make the server calls using the domain name? I think you don't really understand my problem... The server is always on a PC or a Mac. The clients are always on an Androïd tablet. The communication protocol uses socket...
by guylouis
Fri Oct 06, 2017 9:51 pm
Forum: Android Deployment
Topic: My local IP address
Replies: 28
Views: 20723

Re: My local IP address

One can also use tsNetGetSync for many rest API 's. on mouseUp put "" into fld "TheAnswer" tsNetInit tsNetSetTimeouts 5,5000, 5000, 5000, 0, 0 put "https://api.ipify.org?format=json" into tGetString put tsNetGetSync(tGetString, tHeaders, tRecvHeaders, tResult, tBytes) into tTheAnswer tsNetClose put...
by guylouis
Fri Oct 06, 2017 9:42 pm
Forum: Android Deployment
Topic: My local IP address
Replies: 28
Views: 20723

Re: My local IP address

Android: put URL "https://wtfismyip.com/text" into temp answer ("Your current IP is " & temp) :mrgreen: I knew that. But my application runs in an environment where some users have only a simple WIFI router. Thus, no access to Internet. Furthemore, this code gives the external IP address (i.e. 253....
by guylouis
Fri Oct 06, 2017 12:39 pm
Forum: Android Deployment
Topic: My local IP address
Replies: 28
Views: 20723

Re: My local IP address

What prevents you from using the domain name? Sorry, but it works on my Mac and my PC but not in Androïd. Mac : answer the hostname -> iMac-de-Guy-2.lan answer hostnametoadress(the hostname) -> 192.168.1.4 = my IP PC : answer the hostname -> Guy-PC answer hostnametoadress(the hostname) -> 192.168.1...
by guylouis
Thu Oct 05, 2017 11:20 pm
Forum: Android Deployment
Topic: My local IP address
Replies: 28
Views: 20723

Re: My local IP address

Hi Jacqueline, The Internet permission is selected in the Androïd pane. The inclusions field is empty. How do I fill it? In the general panel, I see two Radio buttons "Search for required inclusions..." and "Select inclusions..." The "Search..." is checked. But the result is the same if I choose "Se...
by guylouis
Thu Oct 05, 2017 11:09 pm
Forum: Android Deployment
Topic: My local IP address
Replies: 28
Views: 20723

Re: My local IP address

Hi, In fact, I don't need the local IP address but the IP address of my server (I can easily discover it from the first).. I have an application which uses sockets to communicate with a server. Here is a part of my code: put "192.168.1.4" into ServerIP put 9001 into bPort put ServerIP & ":" & bPort ...
by guylouis
Thu Oct 05, 2017 2:14 pm
Forum: Android Deployment
Topic: My local IP address
Replies: 28
Views: 20723

My local IP address

Hi all,

I use the well known code to get my local IP address: the hostNameToAddress of the hostName

This is working on Mac and PC, but always give 127.0.0.0 on Androïd.

An idea?

Thanks

Go to advanced search