Search found 1572 matches

by MaxV
Thu Jul 17, 2025 4:29 pm
Forum: Databases
Topic: Livecodescript and MySQL
Replies: 1
Views: 47469

Livecodescript and MySQL

I'm trying to use a pure livecode script (file.livecodescript) to access to a MySQL database, but it doesn't work outside the Livecode IDE.

I launch the the script this way:

/opt/livecode/livecode.x86_64 -ui /home/max/file.livecodescript

and I get error the line with revOpenDatabase function ...
by MaxV
Thu Aug 12, 2021 9:54 am
Forum: Talking LiveCode
Topic: Processing name, address, phone & URLs - text (pattern) manipulation libraries for Livecode?
Replies: 5
Views: 7001

Re: Processing name, address, phone & URLs - text (pattern) manipulation libraries for Livecode?

Hello,
this code extract all email adresses from a field:


on MouseUp
put field 1 into testo
repeat forever
if matchText(testo, "((\w|\.)+@(\w|\.)+)" , trovato) then
put trovato & return after listaEmail
put matchChunk(testo, "((\w|\.)+@(\w|\.)+)" , inizio, fine)
put char fine to -1 of ...
by MaxV
Mon May 24, 2021 7:56 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: how to check program already running?
Replies: 3
Views: 5738

how to check program already running?

Hello,
I created an access control time and attendance for my company using livecode.
It automatically starts when the user login successfully.
I want to add to the program a check that verify if it is already launched. So he use can't run more than an instance of the program.
just to give yo the ...
by MaxV
Wed Sep 30, 2020 6:44 am
Forum: Off-Topic
Topic: Please add highlight.js to this forum syle
Replies: 3
Views: 8596

Please add highlight.js to this forum syle

Hello,
please can you add https://highlightjs.org/ to the forum style? It's a syntax highlighting that support livecode.

It would make this forum code more readable.
by MaxV
Fri May 22, 2020 9:25 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Strange error (fork?)
Replies: 0
Views: 5841

Strange error (fork?)

Hello,
I got this strange error:

Code: Select all

button "Button": execution error at line n/a (System error: function) near "fork"
this is is the guilty line:

Code: Select all

put shell("cp temp.pdf '" & myPath &"/"& tLine &"'")
Any idea?
by MaxV
Tue Feb 18, 2020 6:12 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Telnet
Replies: 1
Views: 5074

Re: Telnet

Probably this is the code you need:

########CODE to copy and paste with your mouse#######
open socket to "192.168.1.5:23" with message "clientConnected"

on clientConnected pSocket
20 write "hello world! I'm talking to the server" & return to socket pSocket
20 read from socket pSocket ...
by MaxV
Mon Apr 22, 2019 11:18 pm
Forum: Linux
Topic: 64 bit browser not working
Replies: 3
Views: 47906

Re: 64 bit browser not working

Well, it isn't totally true.
Just create the standalone with livecode 8 and this:

Code: Select all

#! /bin/bash
export LC_ALL= LC_NUMERIC=C
export LIBGL_DRI3_DISABLE=1
/opt/livecode/livecodecommunity-8.1.10.x86_64/livecodecommunity.x86_64
by MaxV
Mon Apr 22, 2019 11:08 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Saving Files to SQL Database
Replies: 5
Views: 9454

Re: Saving Files to SQL Database

There a PRO and cons.
The PRO are:
  • it's more easy manage files, it's all on the DB
  • backup, you just need to backup the DB
  • it's very easy to delete files
Yes, the DB size will increase soon, but after a rapid increase, the size tends to stabilize.
by MaxV
Mon Apr 22, 2019 10:49 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: BMI Calculator
Replies: 8
Views: 11708

Re: BMI Calculator


I agree with Craig ,

Here is the BMI formula. Have fun.....

BMI_Formula.png


Yes, so the code would be:
########CODE to copy and paste with your mouse#######
function getBMI pHeight, pWeight
20 #if pHeight is in cm, then
20 put pHeight / 100 into pHeight
20 put pWeight / ((pHeight)^ 2 ...
by MaxV
Mon Apr 22, 2019 10:27 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: how can I load a website url into an image control
Replies: 11
Views: 16371

Re: how can I load a website url into an image control

Code: Select all

put URL "http://www.runrev.com/images/logo.jpg" into image "web"
by MaxV
Thu Apr 11, 2019 1:00 am
Forum: Talking LiveCode
Topic: Using the ComboBox
Replies: 8
Views: 13781

Re: Using the ComboBox


It's a hack, but try this in the combobox button script:

on keydown pkey -- set up the filtered content before the list is displayed
put the cText of me into tText -- grab the original list
put the label of me & pkey into tLabel
filter tText with (tLabel & "*")
lock screen
put tText into me ...
by MaxV
Mon Apr 01, 2019 5:55 am
Forum: LiveCode Builder
Topic: Browser Widget usage examples
Replies: 49
Views: 135404

Re: Browser Widget usage examples


Widget usage example #9: hhTextEditBasic
(Close to a basic TextEdit widget)

Uses a browser widget as "text field" extending by that LC's htmltext of fields to a larger set of text styling (e.g. justified textAlign), transforms/3D-rotations and filters (blur, sepia etc.).
Of course you can ...