Re: Open a folder on the desktop from a LiveCode app

2021-06-23 Thread William Prothero via use-livecode
Klaus and others:
I love it! I can use this too.
Bill Prothero

> On Jun 19, 2021, at 12:50 PM, Klaus major-k via use-livecode 
>  wrote:
> 
> Hi Paul,
> 
>> Am 19.06.2021 um 20:48 schrieb Paul Dupuis via use-livecode 
>> :
>> 
>> What is the "best" way (or any way) to open a folder on the Windows desktop 
>> from a Livecode script.
>> 
>> For example:
>> 
>> on openFolder pPath -- where pPath is the path and name to a document (file)
>>  set itemDel to slash
>>  delete last item of pPath -- leaves the the path to the folder containing 
>> the document
>>  -- now, how do I open this on the desktop (i.e in Explorer)?
> 
> launch document pPath
> ## :-)
> 
>> end openFolder
> 
> Best
> 
> Klaus
> 
> --
> Klaus Major
> https://www.major-k.de
> https://www.major-k.de/bass
> kl...@major-k.de
> 
> 
> ___


___
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: Open a folder on the desktop from a LiveCode app

2021-06-23 Thread Bob Sneidar via use-livecode
Oooh nice. I have a use for that. 

Bob S


> On Jun 23, 2021, at 11:43 , Eller, Roger via use-livecode 
>  wrote:
> 
> I like to use the full path to the file and use the /SELECT switch.  This 
> opens the folder AND selects the file.
> 
> 
> on mouseUp
> 
>   set the hideConsoleWindows to true
> 
>   get shell("explorer.exe /SELECT," & quote & tPathToFile & quote)
> 
> end mouseUp
> 
> ~Roger


___
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: Open a folder on the desktop from a LiveCode app

2021-06-23 Thread Eller, Roger via use-livecode
I like to use the full path to the file and use the /SELECT switch.  This opens 
the folder AND selects the file.


on mouseUp

   set the hideConsoleWindows to true

   get shell("explorer.exe /SELECT," & quote & tPathToFile & quote)

end mouseUp

~Roger





From: use-livecode  on behalf of Klaus 
major-k via use-livecode 
Sent: Saturday, June 19, 2021 3:50 PM
To: How to use LiveCode 
Cc: Klaus major-k 
Subject: Re: Open a folder on the desktop from a LiveCode app


 CAUTION: This email originated from outside of the organization. Do not click 
links or open attachments unless you recognize the sender and know the content 
is safe.


Hi Paul,

> Am 19.06.2021 um 20:48 schrieb Paul Dupuis via use-livecode 
> :
>
> What is the "best" way (or any way) to open a folder on the Windows desktop 
> from a Livecode script.
>
> For example:
>
> on openFolder pPath -- where pPath is the path and name to a document (file)
>   set itemDel to slash
>   delete last item of pPath -- leaves the the path to the folder containing 
> the document
>   -- now, how do I open this on the desktop (i.e in Explorer)?

launch document pPath
## :-)

> end openFolder

Best

Klaus

___
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: [OT] PHP Developer wanted for small job

2021-06-23 Thread Antti Ilola via use-livecode
Try change mysql_ to mysqli_ . It works for me.

Antti

ti 22. kesäk. 2021 klo 23.47 JeeJeeStudio via use-livecode (
use-livecode@lists.runrev.com) kirjoitti:

> a very very very very very good one is https://phpdelusions.net
>
> Try to switch over to use PDO for database connections and query's, it
> supports almost all types of databases, and prevent injections.
>
> You can also check this to have an idea:
> https://forums.livecode.com/viewtopic.php?f=12=27521
>
>
> Op 22-6-2021 om 21:36 schreef Paul Dupuis via use-livecode:
> > Um, NEVER MIND.
> >
> > I just did a quick Google search and found this
> > https://www.w3schools.com/php/php_mysql_insert.asp
> >
> > Easy enough for me to tackle. Sorry.
> >
> >
> >
> > On 6/22/2021 3:32 PM, Paul Dupuis via use-livecode wrote:
> >> I am looking for a PHP developer familiar with current releases of
> >> PHP (7.4 specifically)
> >>
> >> I have two PHP scripts, one @ 150 lines (including comments) and one
> >> @ 192 lines (including comments), written for PHP 5.6 and earlier.
> >>
> >> Both basically get some posted parameters. One inserts the posted
> >> data into a mySQL database and returns OK or an error. The other uses
> >> a different set of posted data to look up a record in a mySQL
> >> database and return a value from the matching record or an error.
> >>
> >> My problem is my hosting provider is moving everything to PHP 7.4 and
> >> the scripts use PHP 5.6 mySQL functions (like $dblink =
> >> mysql_connect(...); or $result = mysql_query ($SQLstmt); which are
> >> deprecated in newer versions of PHP, so I need to update them. My PHP
> >> skills ended when PHP when object oriented.
> >>
> >> I could do this (by teaching myself the new SQL calls), but it would
> >> probably take me longer than for someone more familiar with current
> >> PHP syntax.
> >>
> >> If you have the current PHP knowledge and are interested, contact me
> >> directly, off-list.
> >>
> >>
> >> ___
> >> 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
> >
> >
> > ___
> > 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
>
> ___
> 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
>
___
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