### Re: incrementing a decimal...

```Monte Goulding's solution was what I was after.

Thank you.

--
Nicolas Cueto

On 8 November 2017 at 09:45, Monte Goulding via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Something like:
>
> put “3.33.007" into tValue
> set the itemDelimiter to "."
> put format("%s.%03d", item 1 to 2 of tValue, item 3 of tValue + 1) into
> tNextValue
>
> > On 8 Nov 2017, at 11:22 am, Nicolas Cueto via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >
> > I'm after an easy way to convert span 3.33.007-3.33.012 into this
> > incremental cr-del list:
> >
> > 3.33.007
> > 3.33.008
> > 3.33.009
> > 3.33.010
> > 3.33.011
> > 3.33.012
> >
> > From experience, I know if I add 1 to "07" the result is "8" and not
> "08".
> >
> > Thank you.
> >
> > --
> > Nicolas
> > ___
> > 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
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
```

### Re: incrementing a decimal...

```put 33.000 into x
put 34.123 into y
put 0.001 into stp
repeat with i=x to y-stp/2 step stp
put format("3.%.3f",i) & cr after lst
end repeat

___
use-livecode mailing list
use-livecode@lists.runrev.com
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

```

### Re: incrementing a decimal...

```
> On 8 Nov 2017, at 11:45 am, Monte Goulding via use-livecode
>  wrote:
>
> Something like:
>
> put “3.33.007" into tValue
> set the itemDelimiter to "."
> put format("%s.%03d", item 1 to 2 of tValue, item 3 of tValue + 1) into
> tNextValue

Actually probably simpler than that is:

put “3.33.007" into tValue
set the itemDelimiter to "."
put item 1 of tValue & “.” & item 2 to 3 of tValue + 0.001 into tNextValue
___
use-livecode mailing list
use-livecode@lists.runrev.com
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
```

### Re: incrementing a decimal...

```Something like:

put “3.33.007" into tValue
set the itemDelimiter to "."
put format("%s.%03d", item 1 to 2 of tValue, item 3 of tValue + 1) into
tNextValue

> On 8 Nov 2017, at 11:22 am, Nicolas Cueto via use-livecode
>  wrote:
>
> I'm after an easy way to convert span 3.33.007-3.33.012 into this
> incremental cr-del list:
>
> 3.33.007
> 3.33.008
> 3.33.009
> 3.33.010
> 3.33.011
> 3.33.012
>
> From experience, I know if I add 1 to "07" the result is "8" and not "08".
>
> Thank you.
>
> --
> Nicolas
> ___
> 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
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
```

### incrementing a decimal...

```I'm after an easy way to convert span 3.33.007-3.33.012 into this
incremental cr-del list:

3.33.007
3.33.008
3.33.009
3.33.010
3.33.011
3.33.012

>From experience, I know if I add 1 to "07" the result is "8" and not "08".

Thank you.

--
Nicolas
___
use-livecode mailing list
use-livecode@lists.runrev.com
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

```

### Re: OT : need help understanding why my web page isn't behaving right :-)

```
Flush your browser cache and try again?

Phil Davis

On 11/7/17 3:27 PM, Alex Tweedly via use-livecode wrote:

I just discovered a problem with one of my web pages - but can't
figure out just where it's coming from. Anyone know their way around
chrome tools and able to help ?

https://www.kilmelford.com/igniter.lc/basic/Services

the links in the body of the page (to "Netherlorn Churches") don't act

Same page on Safari works fine.

I think the reason they don't work in Chrome is that it won't load the
font file because it is loaded as an "http" rather than "https", and
chrome won't downgrade the security level.

Turning on "Developer tools" in Chrome, I see an error, that it is

css?family=Source+Sans+Pro:300,300italic,600,600italic

I don't (afaict) have any unchanged reference to

the only reference I have is in the main.css, and has been changed to
https.

Is there any way to find out exactly where this is being (indirectly)

Many thanks,

Alex.

___
use-livecode mailing list
use-livecode@lists.runrev.com
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-livecode

--
Phil Davis

___
use-livecode mailing list
use-livecode@lists.runrev.com
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
```

### Re: OT : need help understanding why my web page isn't behaving right :-)

```
On 11/07/2017 03:37 PM, Terry Judd via use-livecode wrote:

Hi Alex – those links work fine for me on Chrome on a Mac.

...although I should also say that the SourceCode Pro fonts are already
installed on my computers.

If I look in Chrome developer tools under Sources, I see that css?family
tag under fonts.googleapis.com, and the primary source is listed as
local. It's also specified as a fallback to load from an https url at
fonts.gstatic.com.

src:local('Source Sans Pro Light Italic'), etc.

--
Mark Wieder
ahsoftw...@gmail.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
```

### Re: OT : need help understanding why my web page isn't behaving right :-)

```
On 11/07/2017 03:37 PM, Terry Judd via use-livecode wrote:

Hi Alex – those links work fine for me on Chrome on a Mac.

Ditto here Chrome on linux mint. No worries.

--
Mark Wieder
ahsoftw...@gmail.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
```

### Re: OT : need help understanding why my web page isn't behaving right :-)

```Hi Alex – those links work fine for me on Chrome on a Mac.

Terry...

On 8/11/2017 10:27 am, "use-livecode on behalf of Alex Tweedly via
use-livecode"  wrote:

I just discovered a problem with one of my web pages - but can't figure
out just where it's coming from. Anyone know their way around chrome
tools and able to help ?

https://www.kilmelford.com/igniter.lc/basic/Services

the links in the body of the page (to "Netherlorn Churches") don't act

Same page on Safari works fine.

I think the reason they don't work in Chrome is that it won't load the
font file because it is loaded as an "http" rather than "https", and
chrome won't downgrade the security level.

Turning on "Developer tools" in Chrome, I see an error, that it is

css?family=Source+Sans+Pro:300,300italic,600,600italic

I don't (afaict) have any unchanged reference to

the only reference I have is in the main.css, and has been changed to https.

Is there any way to find out exactly where this is being (indirectly)

Many thanks,

Alex.

___
use-livecode mailing list
use-livecode@lists.runrev.com
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
```

### OT : need help understanding why my web page isn't behaving right :-)

```

I just discovered a problem with one of my web pages - but can't figure
out just where it's coming from. Anyone know their way around chrome
tools and able to help ?

https://www.kilmelford.com/igniter.lc/basic/Services

the links in the body of the page (to "Netherlorn Churches") don't act

Same page on Safari works fine.

I think the reason they don't work in Chrome is that it won't load the
font file because it is loaded as an "http" rather than "https", and
chrome won't downgrade the security level.

Turning on "Developer tools" in Chrome, I see an error, that it is

css?family=Source+Sans+Pro:300,300italic,600,600italic

I don't (afaict) have any unchanged reference to

the only reference I have is in the main.css, and has been changed to https.

Is there any way to find out exactly where this is being (indirectly)

Many thanks,

Alex.

___
use-livecode mailing list
use-livecode@lists.runrev.com
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
```

### Re: The coming of SVG

```Hi all, long time not around, but clarity in language is a key point so my 2
cents :

1) I would much favor DRAWING versus image. The core differentation of a
vector image is that it has been drawn versus "shot" by a camera for an
image. That can be physically understood by all. The idea of a vector is
much more technical and designates the technicalities of the coding of the
information.

2) I would make the largest subset of basic commands and property that can
apply both to DRAWINGS and IMAGES common, same name and parameters :
Example : resize, tilt, position...

3) I would add specific commands and properties that only apply to DRAWINGS
like export into some other format, change size of lines, delete background,
whatever (change fonts, replace colors)

4) Picture is really confusing, so close to image, yet so far from drawing.
Picture is what we actually see on screen… or in museums!

last but not least I find it great that the question is put up, and openedu
up to shared intelligence! thumbs up! Robert

--
Sent from:
http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html

___
use-livecode mailing list
use-livecode@lists.runrev.com
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
```

### Re: The coming of SVG

```
On 11/7/17 2:01 PM, Alex Tweedly via use-livecode wrote:

On 07/11/2017 19:02, J. Landman Gay via use-livecode wrote:
I believe the objection to using "vector" is because the object isn't
going to contain only vector graphics. Eventually it will be a
representation of many different image formats, a sort of catch-all
that will replace all the existing bitmap and vector controls in the
future.

So it's going to be about controls where the *appearance* is important.

Right. Kind of like a...picture.

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

```

### Re: How to (in iOS) Import snapshot and paste resulting image to substack?

```
On 11/7/17 12:21 PM, JOHN PATTEN via use-livecode wrote:

cut image "pages 2-3" of this card. —there is no cut in iOS???

go to stack "Print Template"

paste  — there is no paste in iOS

You can do:

copy img "pages 2-3" of this card to card  of stack "print
template"

delete img "pages 2-3" of this card

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
```

### Re: using LC as an emulator

```I used to work on HP-3000s in HP BASIC, COBOL, and FORTRAN.
What a pain in the you know what!

Rick

> On Nov 7, 2017, at 2:48 PM, Jerry Jensen via use-livecode
>  wrote:
>
> I too have spent way too much of my life in HP BASIC. IIRC, it is tokenized
> before storing (around here called byte codes). One approach might be to
> figure a way to get at the HPB tokens and emulate each of them in LC. Also
> IIRC HPB uses a pretty simple symbol table for variables and such.
>
> Do you know about HTBasic which emulated HPBasic under DOS (I think)? The
> company was Trans-Era. I have no idea if they are still around.
>
> .Jerry
>
>> On Nov 7, 2017, at 8:42 AM, Mike Kerner via use-livecode
>>  wrote:
>>
>> No, the ERP is written in HP BASIC, so I would want to emulate the
>> language, given the breadth and number of programs.  I was thinking about
>> writing wrappers for the various commands and functions of the language,
>> but it won't be easy, no matter what I do.
>
>
> ___
> 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
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

```

### Re: The coming of SVG

```
On 07/11/2017 19:02, J. Landman Gay via use-livecode wrote:
I believe the objection to using "vector" is because the object isn't
going to contain only vector graphics. Eventually it will be a
representation of many different image formats, a sort of catch-all
that will replace all the existing bitmap and vector controls in the
future.

So it's going to be about controls where the *appearance* is important.

I vote for "apparition" - just wish I'd thought of it a week ago :-)

-- Alex
(btw - I'm joking - I do not vote for apparition :-)

___
use-livecode mailing list
use-livecode@lists.runrev.com
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

```

### Re: using LC as an emulator

```I too have spent way too much of my life in HP BASIC. IIRC, it is tokenized
before storing (around here called byte codes). One approach might be to figure
a way to get at the HPB tokens and emulate each of them in LC. Also IIRC HPB
uses a pretty simple symbol table for variables and such.

Do you know about HTBasic which emulated HPBasic under DOS (I think)? The
company was Trans-Era. I have no idea if they are still around.

.Jerry

> On Nov 7, 2017, at 8:42 AM, Mike Kerner via use-livecode
>  wrote:
>
> No, the ERP is written in HP BASIC, so I would want to emulate the
> language, given the breadth and number of programs.  I was thinking about
> writing wrappers for the various commands and functions of the language,
> but it won't be easy, no matter what I do.

___
use-livecode mailing list
use-livecode@lists.runrev.com
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

```

### RE: iPhone X or "Apple is just the most annoying company of all time"

```FYI: While doing the iPhone X screen shots for iTunes Connect I realized that
the iPhone X is much more "portraitity" than any other device I have run
across. I have some serious re-working to do. The iPhone X aspect ratio is
something like 19:9 where the iPhone 8 is more-or-less a standard 16:9. Brings
me back to when I hand filed aperture plates for half-frame-flat movie
projection.

FYI: iOS developers.

iPhone X Dimensions
Portrait  1125px × 2436px (375pt × 812pt @3x)
Landscape 2436px × 1125px (812pt × 375pt @3x)

I compiled the safe areas in points and pixels for iPhone X:

Portrait right side up safe area margins:
Left: 0
Top: 44 Pts 132 Pixels
Right: 0
Bottom: 34 Pts 102 Pixels

Portrait upside down: NOT SUPPORTED

Landscape left/right safe area margins:
Left: 16 Pts 48 Pixels
Top: 32 Pts 96 Pixels
Right: 16 Pts 48 Pixels
Bottom: 23 Pts 69 Pixels

Ralph DiMola
IT Director
Evergreen Information Services
rdim...@evergreeninfo.net

___
use-livecode mailing list
use-livecode@lists.runrev.com
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
```

### Re: using LC as an emulator

```Hi Mike,

It sounds like a lot of work however you do it.
Is creating an emulator really going to be easier
than doing a whole system migration to LiveCode
or some other language?

Good luck with whatever you do!

Rick

> On Nov 7, 2017, at 1:57 PM, Mike Kerner via use-livecode
>  wrote:
>
> I'll email you offline.
>
> On Tue, Nov 7, 2017 at 1:36 PM, Mark Waddingham via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
>> On 2017-11-07 17:42, Mike Kerner via use-livecode wrote:
>>
>>> No, the ERP is written in HP BASIC, so I would want to emulate the
>>> language, given the breadth and number of programs.  I was thinking about
>>> writing wrappers for the various commands and functions of the language,
>>> but it won't be easy, no matter what I do.
>>>
>>
>> In this case 'ease' is probably related to the breadth of the language and
>> how complex individual commands/functions are - if you have a good
>> architecture for the emulator, most of the work will be in recreating that
>> functionality, rather than the parsing/execution mechanism.
>>
>> There are also binary resources that I would have to have recreated such as
>>> forms and dialogs, and I would have to take the db schemas and convert
>>> them
>>> to a modern database, which seems like the least work of this entire silly
>>> idea.
>>>
>>
>> From what you've said it doesn't sound like a silly idea at all.
>>
>> Would it be less work to rewrite it?  I doubt it.  Would it be less effort
>>> to cough up for an off-the-self ERP package?  Possibly, but the one piece
>>> that is extremely valuable is the payroll piece, because it is so
>>> expensive
>>> to hire a service or to pay for someone else's payroll software.  For
>>> example, look at the time and attendance piece.  I was able to write a
>>> timeclock app that runs on a tablet for a tiny fraction of what it would
>>> cost to replace the existing timeclocks.  Timekeeping software is also
>>> crazy expensive, and payroll is akin to highway robbery.
>>>
>>
>> If it is a system you've been maintaining for 30 years, then I suspect you
>> are correct - it won't be less work to rewrite as you'll spend a lot of
>> time making things work as they did before... After all, I suspect that
>> after 30 years working on it even you can't remember where all the bodies
>> are buried!
>>
>> (I certainly find zombies popping up now and again to bite me in the
>> LiveCode engine from things I've done in the past!)
>>
>> Would it be easier to try to build an emulator in Xojo?  I've thought about
>>> it, but before I add yet another development tool to the mix, here, I
>>> thought I'd chase this idea, first.
>>>
>>
>> Well I can certainly say that LiveCode is perfectly capable, and indeed
>> very good for writing compilers/interpreters because of the way its arrays
>> work (copy-on-write in particular), and the ability to pass references to
>> array elements to functions. (I've writing a few such things in the last 12
>> months - the SVG compiler being the most recent example).
>>
>> I'd generally recommend using a LiveCode array to represent the source
>> structure (after parsing - which will be a tree), and then write a
>> recursive evaluator for it, threading through the node which is being
>> executed and a mutable context array which contains all the current
>> execution state:
>>
>>  on langExecute @xContext, pNode
>>- dispatch to do what you need to do for node, using state from
>> xContext
>>  end langExecute
>>
>> If you can figure out how to map the source language to (essentially) a
>> sequence of command invocations, then you can write the each piece of
>> functionality provided by the language (i.e. the bits other than variable
>> manipulations and control transfer) as a single handler which takes the
>> xContext parameter.
>>
>> Okay, so all the above is a bit vague - but it is just to give an idea of
>> how I've found the best way to structure such things in LiveCode.
>>
>> Warmest Regards,
>>
>> P.S. Do you have the online links for the reference manuals? I'm
>> intrigued...
>>
>>
>> --
>> Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/
>> LiveCode: Everyone can create apps
>>
>> ___
>> 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
>>
>
>
>
> --
> On the first day, God created the heavens and the Earth
> On the second day, God created the oceans.
> On the third day, God put the animals on hold for a few hours,
>   and did a little diving.
> And God said, "This is good."
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription
> preferences:
> ```

### Re: How to (in iOS) Import snapshot and paste resulting image to substack? (Solved)

```I figured it out :)

Needed to just use export snapshot, instead of import snapshot, and create
named image holders to “paste” the exported snapshots into.

export snapshot from rectangle (the rect of cd fld "pages 2-3") of this card to
img "pages 2-3" of stack "Print Template"

go to stack "Print Template”

set the angle of img "pages 2-3" of this card to 90

set the loc of image "pages 2-3" of this card to 107,603

Cheers!

John Patten
SUSD

> On Nov 7, 2017, at 10:21 AM, JOHN PATTEN via use-livecode
>  wrote:
>
> Hi All,
>
> In iOS on an iPad, I am trying to import a snapshot and then place the
> resulting image on a substack of the main stack. The idea is to save the
> substack out as a PDF after placing a number of snapshots on it.
>
> The code I am using is:
>
> -
> import snapshot from rectangle (the rect of cd fld "pages 2-3") of this card
>
> set the name of last image to "pages 2-3"
>
> set the angle of img "pages 2-3" of this card to 90
>
> cut image "pages 2-3" of this card. —there is no cut in iOS???
>
> go to stack "Print Template"
>
> paste  — there is no paste in iOS
>
> set the loc of last image of this card to 107,603
>
> -
>
>
> This all works fine on a desktop, but I am having trouble with some of the
> iOS.  What is the proper way to cut, copy and paste images from one stack, to
> a sub stack, in iOS?
>
> Thank you!
>
> John Patten
> SUSD
>
>
> ___
> 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
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
```

### Re: The coming of SVG

```I believe the objection to using "vector" is because the object isn't
going to contain only vector graphics. Eventually it will be a
representation of many different image formats, a sort of catch-all that
will replace all the existing bitmap and vector controls in the future.

On 11/7/17 12:23 PM, Stephen Barncard via use-livecode wrote:

Well,  the word vector is not to be found anywhere in the dictionary.

*vectorImage*  (we already have newImage and deleteImage messages, and
several properties begin with *image*

*imageVector*  (we already have imageSource imageData and imagePixmapID

*vectorRender*

somehow function and command names look far more important in a classic
boldface serif font.

--
Stephen Barncard - Sebastopol Ca. USA -
mixstream.org

On Tue, Nov 7, 2017 at 10:05 AM, Richmond Mathewson via use-livecode <
use-livecode@lists.runrev.com> wrote:

I have a feeling the name should be one word, probably in camel format,
so that has to be

vectorSomethingOrOther

shartened, presumably, to vSOO

Richmond.

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

```

### Re: using LC as an emulator

```I'll email you offline.

On Tue, Nov 7, 2017 at 1:36 PM, Mark Waddingham via use-livecode <
use-livecode@lists.runrev.com> wrote:

> On 2017-11-07 17:42, Mike Kerner via use-livecode wrote:
>
>> No, the ERP is written in HP BASIC, so I would want to emulate the
>> language, given the breadth and number of programs.  I was thinking about
>> writing wrappers for the various commands and functions of the language,
>> but it won't be easy, no matter what I do.
>>
>
> In this case 'ease' is probably related to the breadth of the language and
> how complex individual commands/functions are - if you have a good
> architecture for the emulator, most of the work will be in recreating that
> functionality, rather than the parsing/execution mechanism.
>
> There are also binary resources that I would have to have recreated such as
>> forms and dialogs, and I would have to take the db schemas and convert
>> them
>> to a modern database, which seems like the least work of this entire silly
>> idea.
>>
>
> From what you've said it doesn't sound like a silly idea at all.
>
> Would it be less work to rewrite it?  I doubt it.  Would it be less effort
>> to cough up for an off-the-self ERP package?  Possibly, but the one piece
>> that is extremely valuable is the payroll piece, because it is so
>> expensive
>> to hire a service or to pay for someone else's payroll software.  For
>> example, look at the time and attendance piece.  I was able to write a
>> timeclock app that runs on a tablet for a tiny fraction of what it would
>> cost to replace the existing timeclocks.  Timekeeping software is also
>> crazy expensive, and payroll is akin to highway robbery.
>>
>
> If it is a system you've been maintaining for 30 years, then I suspect you
> are correct - it won't be less work to rewrite as you'll spend a lot of
> time making things work as they did before... After all, I suspect that
> after 30 years working on it even you can't remember where all the bodies
> are buried!
>
> (I certainly find zombies popping up now and again to bite me in the
> LiveCode engine from things I've done in the past!)
>
> Would it be easier to try to build an emulator in Xojo?  I've thought about
>> it, but before I add yet another development tool to the mix, here, I
>> thought I'd chase this idea, first.
>>
>
> Well I can certainly say that LiveCode is perfectly capable, and indeed
> very good for writing compilers/interpreters because of the way its arrays
> work (copy-on-write in particular), and the ability to pass references to
> array elements to functions. (I've writing a few such things in the last 12
> months - the SVG compiler being the most recent example).
>
> I'd generally recommend using a LiveCode array to represent the source
> structure (after parsing - which will be a tree), and then write a
> recursive evaluator for it, threading through the node which is being
> executed and a mutable context array which contains all the current
> execution state:
>
>   on langExecute @xContext, pNode
> - dispatch to do what you need to do for node, using state from
> xContext
>   end langExecute
>
> If you can figure out how to map the source language to (essentially) a
> sequence of command invocations, then you can write the each piece of
> functionality provided by the language (i.e. the bits other than variable
> manipulations and control transfer) as a single handler which takes the
> xContext parameter.
>
> Okay, so all the above is a bit vague - but it is just to give an idea of
> how I've found the best way to structure such things in LiveCode.
>
> Warmest Regards,
>
> P.S. Do you have the online links for the reference manuals? I'm
> intrigued...
>
>
> --
> Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/
> LiveCode: Everyone can create apps
>
> ___
> 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
>

--
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
and did a little diving.
And God said, "This is good."
___
use-livecode mailing list
use-livecode@lists.runrev.com
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

```

### Re: using LC as an emulator

```
On 2017-11-07 17:42, Mike Kerner via use-livecode wrote:

No, the ERP is written in HP BASIC, so I would want to emulate the
language, given the breadth and number of programs.  I was thinking
writing wrappers for the various commands and functions of the
language,

but it won't be easy, no matter what I do.

In this case 'ease' is probably related to the breadth of the language
and how complex individual commands/functions are - if you have a good
architecture for the emulator, most of the work will be in recreating
that functionality, rather than the parsing/execution mechanism.

There are also binary resources that I would have to have recreated
such as
forms and dialogs, and I would have to take the db schemas and convert
them
to a modern database, which seems like the least work of this entire
silly

idea.

From what you've said it doesn't sound like a silly idea at all.

Would it be less work to rewrite it?  I doubt it.  Would it be less
effort
to cough up for an off-the-self ERP package?  Possibly, but the one
piece
that is extremely valuable is the payroll piece, because it is so
expensive

to hire a service or to pay for someone else's payroll software.  For
example, look at the time and attendance piece.  I was able to write a
timeclock app that runs on a tablet for a tiny fraction of what it
would

cost to replace the existing timeclocks.  Timekeeping software is also
crazy expensive, and payroll is akin to highway robbery.

If it is a system you've been maintaining for 30 years, then I suspect
you are correct - it won't be less work to rewrite as you'll spend a lot
of time making things work as they did before... After all, I suspect
that after 30 years working on it even you can't remember where all the
bodies are buried!

(I certainly find zombies popping up now and again to bite me in the
LiveCode engine from things I've done in the past!)

Would it be easier to try to build an emulator in Xojo?  I've thought

it, but before I add yet another development tool to the mix, here, I
thought I'd chase this idea, first.

Well I can certainly say that LiveCode is perfectly capable, and indeed
very good for writing compilers/interpreters because of the way its
arrays work (copy-on-write in particular), and the ability to pass
references to array elements to functions. (I've writing a few such
things in the last 12 months - the SVG compiler being the most recent
example).

I'd generally recommend using a LiveCode array to represent the source
structure (after parsing - which will be a tree), and then write a
recursive evaluator for it, threading through the node which is being
executed and a mutable context array which contains all the current
execution state:

on langExecute @xContext, pNode
- dispatch to do what you need to do for node, using state from
xContext

end langExecute

If you can figure out how to map the source language to (essentially) a
sequence of command invocations, then you can write the each piece of
functionality provided by the language (i.e. the bits other than
variable manipulations and control transfer) as a single handler which
takes the xContext parameter.

Okay, so all the above is a bit vague - but it is just to give an idea
of how I've found the best way to structure such things in LiveCode.

Warmest Regards,

P.S. Do you have the online links for the reference manuals? I'm
intrigued...

--
Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/
LiveCode: Everyone can create apps

___
use-livecode mailing list
use-livecode@lists.runrev.com
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

```

### Re: The coming of SVG

```Well,  the word vector is not to be found anywhere in the dictionary.

*vectorImage*  (we already have newImage and deleteImage messages, and
several properties begin with *image*

*imageVector*  (we already have imageSource imageData and imagePixmapID

*vectorRender*

somehow function and command names look far more important in a classic
boldface serif font.

--
Stephen Barncard - Sebastopol Ca. USA -
mixstream.org

On Tue, Nov 7, 2017 at 10:05 AM, Richmond Mathewson via use-livecode <
use-livecode@lists.runrev.com> wrote:

> I have a feeling the name should be one word, probably in camel format,
> so that has to be
>
> vectorSomethingOrOther
>
> shartened, presumably, to vSOO
>
> Richmond.
>
>
> On 7/11/17 5:31 pm, Bob Sneidar via use-livecode wrote:
>
>> +1 for vector something or other.
>>
>> Bob S
>>
>>
>> On Nov 6, 2017, at 15:35 , Stephen Barncard via use-livecode <
>>> use-livecode@lists.runrev.com> wrote:
>>>
>>> How about just plain vector?
>>>
>>> Or is that a parameter?
>>>
>>
>> ___
>> 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
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

```

### How to (in iOS) Import snapshot and paste resulting image to substack?

```Hi All,

In iOS on an iPad, I am trying to import a snapshot and then place the
resulting image on a substack of the main stack. The idea is to save the
substack out as a PDF after placing a number of snapshots on it.

The code I am using is:

-
import snapshot from rectangle (the rect of cd fld "pages 2-3") of this card

set the name of last image to "pages 2-3"

set the angle of img "pages 2-3" of this card to 90

cut image "pages 2-3" of this card. —there is no cut in iOS???

go to stack "Print Template"

paste  — there is no paste in iOS

set the loc of last image of this card to 107,603

-

This all works fine on a desktop, but I am having trouble with some of the iOS.
What is the proper way to cut, copy and paste images from one stack, to a sub
stack, in iOS?

Thank you!

John Patten
SUSD

___
use-livecode mailing list
use-livecode@lists.runrev.com
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
```

### Re: The coming of SVG

```
I have a feeling the name should be one word, probably in camel format,
so that has to be

vectorSomethingOrOther

shartened, presumably, to vSOO

Richmond.

On 7/11/17 5:31 pm, Bob Sneidar via use-livecode wrote:

+1 for vector something or other.

Bob S

On Nov 6, 2017, at 15:35 , Stephen Barncard via use-livecode
wrote:

Or is that a parameter?

___
use-livecode mailing list
use-livecode@lists.runrev.com
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

```

### Re: using LC as an emulator

```No, the ERP is written in HP BASIC, so I would want to emulate the
language, given the breadth and number of programs.  I was thinking about
writing wrappers for the various commands and functions of the language,
but it won't be easy, no matter what I do.
There are also binary resources that I would have to have recreated such as
forms and dialogs, and I would have to take the db schemas and convert them
to a modern database, which seems like the least work of this entire silly
idea.
Would it be less work to rewrite it?  I doubt it.  Would it be less effort
to cough up for an off-the-self ERP package?  Possibly, but the one piece
that is extremely valuable is the payroll piece, because it is so expensive
to hire a service or to pay for someone else's payroll software.  For
example, look at the time and attendance piece.  I was able to write a
timeclock app that runs on a tablet for a tiny fraction of what it would
cost to replace the existing timeclocks.  Timekeeping software is also
crazy expensive, and payroll is akin to highway robbery.
Would it be easier to try to build an emulator in Xojo?  I've thought about
it, but before I add yet another development tool to the mix, here, I
thought I'd chase this idea, first.

As for a spec for HP BASIC, yes, it is well documented.  I have both paper
and online manuals.

On Tue, Nov 7, 2017 at 11:28 AM, Mark Waddingham via use-livecode <
use-livecode@lists.runrev.com> wrote:

> On 2017-11-07 04:00, Mike Kerner via use-livecode wrote:
>
>> It's a LOT of code, all of which was originally written 30+ years ago, but
>> we've been maintaining it ever since.  Many of the other systems that we
>> have written interface with this core, and extend it, since there are much
>> better tools available to us, now (like LC).  It's written in HP BASIC for
>> an environment called Eloquence, which is an HP 3000/HP250 legacy
>> environment that now runs on your stock iron hardware and OS's.
>>
>
> Interesting - so is it HP BASIC you are wanting to emulate? Or is the ERP
> an interpreter *written* in HP BASIC for some other language...
>
> If its the former, then is there a language spec for the variant of HP
> BASIC it is written in lurking somewhere?
>
> Warmest Regards,
>
> Mark.
>
> --
> Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/
> LiveCode: Everyone can create apps
>
>
> ___
> 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
>

--
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
and did a little diving.
And God said, "This is good."
___
use-livecode mailing list
use-livecode@lists.runrev.com
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

```

### Re: using LC as an emulator

```
On 2017-11-07 04:00, Mike Kerner via use-livecode wrote:
It's a LOT of code, all of which was originally written 30+ years ago,
but
we've been maintaining it ever since.  Many of the other systems that
we
have written interface with this core, and extend it, since there are
much
better tools available to us, now (like LC).  It's written in HP BASIC
for

an environment called Eloquence, which is an HP 3000/HP250 legacy
environment that now runs on your stock iron hardware and OS's.

Interesting - so is it HP BASIC you are wanting to emulate? Or is the
ERP an interpreter *written* in HP BASIC for some other language...

If its the former, then is there a language spec for the variant of HP
BASIC it is written in lurking somewhere?

Warmest Regards,

Mark.

--
Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/
LiveCode: Everyone can create apps

___
use-livecode mailing list
use-livecode@lists.runrev.com
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

```

### Re: using LC as an emulator

```I know what it does.  I own it.  I've been working on it and in it since I
was in grade school.  I just don't like it.

On Tue, Nov 7, 2017 at 11:07 AM, Mark Wieder via use-livecode <
use-livecode@lists.runrev.com> wrote:

> On 11/06/2017 07:00 PM, Mike Kerner via use-livecode wrote:
>
>> It's a LOT of code, all of which was originally written 30+ years ago, but
>> we've been maintaining it ever since.  Many of the other systems that we
>> have written interface with this core, and extend it, since there are much
>> better tools available to us, now (like LC).  It's written in HP BASIC for
>> an environment called Eloquence, which is an HP 3000/HP250 legacy
>> environment that now runs on your stock iron hardware and OS's.
>>
>
> Wow. I almost remember working in hp basic back in the day. My guess is
> that if you're looking at a tangle of code written 30+ years ago, your time
> is better spent analyzing what it does and then creating anew from those
> specs.
>
> --
>  Mark Wieder
>  ahsoftw...@gmail.com
>
>
> ___
> 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
>

--
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
and did a little diving.
And God said, "This is good."
___
use-livecode mailing list
use-livecode@lists.runrev.com
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

```

### Re: using LC as an emulator

```
On 11/06/2017 07:00 PM, Mike Kerner via use-livecode wrote:

It's a LOT of code, all of which was originally written 30+ years ago, but
we've been maintaining it ever since.  Many of the other systems that we
have written interface with this core, and extend it, since there are much
better tools available to us, now (like LC).  It's written in HP BASIC for
an environment called Eloquence, which is an HP 3000/HP250 legacy
environment that now runs on your stock iron hardware and OS's.

Wow. I almost remember working in hp basic back in the day. My guess is
that if you're looking at a tangle of code written 30+ years ago, your
time is better spent analyzing what it does and then creating anew from
those specs.

--
Mark Wieder
ahsoftw...@gmail.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

```

### Re: Control properties not included in the Property Inspector

```There are no tabs or clear delimiters that I could tell, at least not when
scraped from the web page. I tried to paste into a spreadsheet then do text to
columns, but there are no clear delimiters. No biggie it's nice to have a list
to look through.

Bob S

> On Nov 6, 2017, at 20:03 , Brian Milby via use-livecode
>  wrote:
>
> Wow... almost looks like you will need to use a script to go through all of
> those files and ensure the lines each have the correct number of tabs.

___
use-livecode mailing list
use-livecode@lists.runrev.com
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

```

### Re: using LC as an emulator

```I attempted this once for a dBase accounting application. What I ran into is
certain things like & which can be used to concatenate, but can also be used to
denote a macro substitution variable. Periods would be used to dereference
chained macro variables. To reproduce this in Livecode would mean constructing
a command statement and then doing it. But then inside quotes a period might be
a table.column delimiter. I was going to have to do a lot of conditional
interpretation of such things.

Also, a great deal of code was devoted to drawing fields and buttons onscreen,
then getting the user input for them. There was no corollary in livecode for
that, unless I wanted to create fields on the fly, which would have sucked.

After a while I saw that it would have been much easier to start from scratch,
running each input screen or report, and then graphically recreating it in
Livecode (Revolution back then), and then doing the business logic as best I
could. It was a large application.

Bob S

> On Nov 6, 2017, at 15:24 , Paul Dupuis via use-livecode
>  wrote:
>
> On 11/6/2017 2:22 PM, Mike Kerner via use-livecode wrote:
>> Anyone write an emulator in LC?  I've got an old ERP system that we own all
>> the source to.  I'd like to.  The environment is interpreted, so if I could
>> make an emulator/wrapper, I could in theory move the whole thing into LC
>> and dump the old environments.
>>
>>
>
> That is potentially a huge amount of work. I wrote an expert system
> inferencing engine in LC. It is interpreted. The rules language is very
> simple syntax (essentially a rule is an IF THEN with parsing of the
> boolean expression syntax for the IF and 2 possible statements for the
> THEN) and it is still a fair amount of code.
>
> What language is the source for the ERP in? I expect the language has a
> reasonable robust syntax to support and ERP app. Possible a translator
> to convert the source to xTalk? However, if you really want a
> self-maintained ERP it might ultimately be easier to write one in LC
> that convert or interpret a legacy system.

___
use-livecode mailing list
use-livecode@lists.runrev.com
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

```

### Re: The coming of SVG

```+1 for vector something or other.

Bob S

> On Nov 6, 2017, at 15:35 , Stephen Barncard via use-livecode
>  wrote:
>
> How about just plain vector?
>
> Or is that a parameter?

___
use-livecode mailing list
use-livecode@lists.runrev.com
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

```

### AW: [OT] Been there, done that

```YES!

-Ursprüngliche Nachricht-
Von: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] Im Auftrag
von J. Landman Gay via use-livecode
Gesendet: Dienstag, 7. November 2017 06:22
An: LiveCode Mailing List
Cc: J. Landman Gay
Betreff: [OT] Been there, done that

To everyone who has ever done tech support:

https://imgs.xkcd.com/comics/thermostat.png

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

```

### Re: Getting directory list from web server??

```Tim,

you can change this setting/behaviour directly in your cPanel account.

In cPanel go to "Advanced Section" and select “Indexes".
You get a list of folder names something like this

/ (Current Folder)
access-logs
cache
etc
logs
mail
perl5
public_ftp
public_html
softaculous_backups
ssl
tmp
www

There is a folder icon at the beginning of each entry.

If you want to change the setting for an entry, then click on the text of the
folder name.
If you want to edit the settings for a subfolder(which currently is not
listed), then click on the leading icon of the folder name which contains that
subfolder. You get then the subfolders of that folder listed, again each with a
Clicking on the icon always opens that folder and lists its subfolders. And so
on….

By default the account uses the “Default system setting”, which might have been
changed due to a security update or so.

When you have selected the correct subfolder you will see 4 options.

Default System Setting
No indexing
Standard Indexing (filename only)
Fancy Indexing (filename and description)

Select Standard Indexing to get a listing as before.

Regards,
Matthias

Matthias Rebbe
+49 5741 31
‌wirmachen.software ‌

> Am 07.11.2017 um 04:24 schrieb Tim Selander via use-livecode
> >:
>
> Hi,
>
> Up until now, in my livecode server script,
>
> " after vlist
>
> has gotten me text list of the directory contents.
>
> Now it gets me a "You don't have permission to access." error message.
>
> on-rev hosting, "sage" is the server.
>
> Anyone know what is going on?
>
> TIA
>
> Tim Selander
> Tokyo, Japan
>
> ___
> 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