Re: SVG - how to encode angle brackets as text?

2017-01-24 Thread Kirk Brooks
Ok, so this is an edge case. The ultimate workaround was to just build the
image in pure SVG using lines.

On Tue, Jan 24, 2017 at 11:39 AM, Kirk Brooks  wrote:

> I'm playing with some SVG and using the *SVGTool_SHOW_IN_VIEWER.* I
> notice that when I attempt to set angle brackets in some text I get an
> error if I try to display it in the viewer.
>
> I don't do a lot of SVG so this may be well known already but is this an
> issue with the 4D SVG viewer tool or something about text in VSG in general?
>
> Here's an example of what I'm doing:
>
> $text:=""
> $fontSize:=80
> $x:=25
> $y:=10
> $textWidth:=90
> $font:="Helvetica"
> $textHeight:=$fontSize+2
>
> $svg_textArea:=SVG_New_textArea ($svgRef;$text;$x;$y;$
> textWidth;$textHeight;$font;$fontSize;0;Align center)
>
>
> ​I'm working on some code to generate file icons if you're wondering why
> I'm trying to use such text.​
>
> ​That part all works fine. The error pops up when I put the $svgRef object
> into the viewer tool. It only seems to be angle brackets. I tried escaping
> them to no avail. I even tried rendering the text into a picture and then
> setting the picture in the $svgRef object but the Viewer also barfed on
> that.
>
> Anyone have some insight?
>
> Thanks​
>
>
> --
> Kirk Brooks
> San Francisco, CA
> ===
>



-- 
Kirk Brooks
San Francisco, CA
===
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Equals is not always transitive

2017-01-24 Thread Kirk Brooks
Tom,
Good job on burying the real lede in this exchange - that you have the
archive going back over 20 years...

On Tue, Jan 24, 2017 at 3:24 PM, Tom Dillon 
wrote:

> David Adams wrote:
>
> >! Yeah, but the great thing about forgetting is that you can read books
> and
> >see movies again for the first time. Now I get to be a newbie in 4D again
> >;-)
>
> I've developed small database that shrinks a list of my ten favorite
> movies, based on how I answer questions, until there is only one movie
> left. Then, it sends me on a beer run along Moab's Portal Trail <
> http://www.ultrarob.com/blog/uploaded_images/P3220287-794338.JPG>.
>
> I'm down to two.
>
> --
>--
>Tom Dillon   825 N. 500 W.
>DataCraft   Moab, UT 84532
>tomdil...@datacraft-inc.com   720/209-6502
>--
>It's not what you don't know that kills you, it's what you
>know for sure that ain't true. - Mark Twain
>--
>
>
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: http://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **
>



-- 
Kirk Brooks
San Francisco, CA
===
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Equals is not always transitive

2017-01-24 Thread Tom Dillon
David Adams wrote:

>! Yeah, but the great thing about forgetting is that you can read books and
>see movies again for the first time. Now I get to be a newbie in 4D again
>;-)

I've developed small database that shrinks a list of my ten favorite movies, 
based on how I answer questions, until there is only one movie left. Then, it 
sends me on a beer run along Moab's Portal Trail 
.

I'm down to two.

-- 
   --
   Tom Dillon   825 N. 500 W.
   DataCraft   Moab, UT 84532
   tomdil...@datacraft-inc.com   720/209-6502
   --
   It's not what you don't know that kills you, it's what you
   know for sure that ain't true. - Mark Twain
   --


**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Can't Select Text In v15 - Any Ideas?

2017-01-24 Thread Allan Udy
We have one database that was written in v14, upgraded to v15 a few 
months ago.


Several tables have alpha/text fields, and in (only) one of thois 
tables, in the input form, the users can NOT select text in any of those 
fields by clicking and dragging with the mouse.  They can double click a 
word which will highlight it (and allow cut/copy/paste), and they can 
use Edit > Select All which again allows cut/copy/paste.


All other tables (input screens) allow 'normal' click and dfrag 
selection of text in any fields.


I've got to the point of creating a brand new input form with just two 
text fields on it , and even that doesn't work for the problematic table.


Anyone have any suggestions as what could be the issue?

Cheers
Allan
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: How to bring an application to the foreground (Windows)?

2017-01-24 Thread Christian Sakowski
Hi,

you can do this with hmCal: "hmCal_SET FRONT PROCESS"
--

Grüße/Regards,
[heubach-media] | Christian Sakowski
christian.sakow...@heubach-media.de
iChat/AIM: SakowskiF
Tel: +49/(0)40/52 10 59-23



> Am 24.01.2017 um 17:50 schrieb Daniel N. Solenthaler :
> 
> Hi friends,
> 
> on a 4D form, we have a button that calls a VB script to have Outlook create 
> a new email window (on Windows).
> 
> The VB script inserts all the necessary data (To:, CC, etc. including 
> attachments).
> 
> The only problem we have, is that Outlook stays in the background and the new 
> email window is also in the background, thus not visible for the user.
> 
> We need a way to bring Outlook to the front.
> 
> Any ideas?
> 
> Thanks!
> Daniel
> 
> Daniel Nestor Solenthaler
> eMail: dan...@solenthaler.com
> 
> 
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: http://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **


--
heubach media
Osterfeldstr. 12-14 | Haus 1 | Eingang Nord
22529 Hamburg
tel: 040 / 52 10 59 - 10 | fax: -99
mail: i...@heubach-media.de
home: www.heubach-media.de
Geschäftsführer|CEO: Matthias Heubach

Mieten Sie Ihre Computer, iPads & Drucker für Ihre Events bei:
http://www.milo-rental.com

Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen.
Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten 
haben,
informieren Sie bitte sofort den Absender und vernichten Sie diese Mail.
Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht 
gestattet.
 
This e-mail may contain confidential and/or privileged information.
If you are not the intended recipient (or have received this e-mail in error)
please notify the sender immediately and destroy this e-mail.
Any unauthorized copying, disclosure or distribution of the
material in this e-mail is strictly forbidden.
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

SVG - how to encode angle brackets as text?

2017-01-24 Thread Kirk Brooks
I'm playing with some SVG and using the *SVGTool_SHOW_IN_VIEWER.* I notice
that when I attempt to set angle brackets in some text I get an error if I
try to display it in the viewer.

I don't do a lot of SVG so this may be well known already but is this an
issue with the 4D SVG viewer tool or something about text in VSG in general?

Here's an example of what I'm doing:

$text:=""
$fontSize:=80
$x:=25
$y:=10
$textWidth:=90
$font:="Helvetica"
$textHeight:=$fontSize+2

$svg_textArea:=SVG_New_textArea
($svgRef;$text;$x;$y;$textWidth;$textHeight;$font;$fontSize;0;Align center)


​I'm working on some code to generate file icons if you're wondering why
I'm trying to use such text.​

​That part all works fine. The error pops up when I put the $svgRef object
into the viewer tool. It only seems to be angle brackets. I tried escaping
them to no avail. I even tried rendering the text into a picture and then
setting the picture in the $svgRef object but the Viewer also barfed on
that.

Anyone have some insight?

Thanks​


-- 
Kirk Brooks
San Francisco, CA
===
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: How to bring an application to the foreground (Windows)?

2017-01-24 Thread Jeremy Roussak
I don’t know VBA, but a quick search revealed this page, which seems to include 
your answer.

http://stackoverflow.com/questions/5663961/how-do-i-bring-an-ms-outlook-2007-dialog-to-the-front-from-ms-access-2007

Jeremy


Jeremy Roussak
j...@mac.com



> On 24 Jan 2017, at 16:50, Daniel N. Solenthaler  
> wrote:
> 
> Hi friends,
> 
> on a 4D form, we have a button that calls a VB script to have Outlook create 
> a new email window (on Windows).
> 
> The VB script inserts all the necessary data (To:, CC, etc. including 
> attachments).
> 
> The only problem we have, is that Outlook stays in the background and the new 
> email window is also in the background, thus not visible for the user.
> 
> We need a way to bring Outlook to the front.
> 
> Any ideas?
> 
> Thanks!
> Daniel
> 
> Daniel Nestor Solenthaler
> eMail: dan...@solenthaler.com
> 
> 
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: http://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **

**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

XML Validation with XSD...

2017-01-24 Thread Benedict, Tom
I'm trying to validate some XML using an XML schema (XSD). 

I have XML and XSD documents which validate successfully in oXygen (an XML 
editor). However, when I use them with 4D's DOM Parse XML variable I get the 
following error:

The XML file is not valid or is not well-formed. (grammar not found for 
namespace '' : Line #  3,Column # 60.)

Postings back in 2014 by Mitchell Shiller and Bruno Legay explain how including 
a namespace declaration is essential, so I have included 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance; in the root element.

Here is the XML:

  
  http://www.w3.org/2001/XMLSchema-instance;>
  
  WS_SQLReg_MO
  State
  True
  
  

And here is the XSD:

  
  http://www.w3.org/2001/XMLSchema; 
elementFormDefault="qualified">

  

  

  


  

  
  
  

  




  

Any clues as to what I am missing?

Thanks,

Tom Benedict
Optum

This e-mail, including attachments, may include confidential and/or
proprietary information, and may be used only by the person or entity
to which it is addressed. If the reader of this e-mail is not the intended
recipient or his or her authorized agent, the reader is hereby notified
that any dissemination, distribution or copying of this e-mail is
prohibited. If you have received this e-mail in error, please notify the
sender by replying to this message and delete this e-mail immediately.

**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

How to bring an application to the foreground (Windows)?

2017-01-24 Thread Daniel N. Solenthaler
Hi friends,

on a 4D form, we have a button that calls a VB script to have Outlook create a 
new email window (on Windows).

The VB script inserts all the necessary data (To:, CC, etc. including 
attachments).

The only problem we have, is that Outlook stays in the background and the new 
email window is also in the background, thus not visible for the user.

We need a way to bring Outlook to the front.

Any ideas?

Thanks!
Daniel

Daniel Nestor Solenthaler
eMail: dan...@solenthaler.com


**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

[ANN] hmBarcode 5.0 available / QR-Code/Datamatrix/Aztec Code/PDF417 and others

2017-01-24 Thread Christian Sakowski
Today, heubach media released version 5.0 of hmBarcode.

hmBarcode is a plug-in developed by heubach media, Hamburg, Germany for 4th 
Dimension.

With Version 5.0 of hmBarcode we provide the Plugin as native Unicode Plugin 
for 4D v15 and 4D v16 in 32 and 64 Bit.

hmBarcode 5.0 introduces the following NEW features:

-> Complete new demo database, which demonstrates all Barcode types and it’s 
options
-> New way of Barcode creation with more options and output possibilities
-> Native output in SVG, BMP, PNG, EPS, GIF
-> New Symbologies: DotCode and Han Xin (Chinese Sensible) Code 
-> New constants for each Barcode type

The demo database now demonstrates all available Barcodes.

With hmBarcode can produce 1D and 2D-Barcodes in your 4D application. Supported 
barcodes are:

- QR-Code
- Aztec Code
- Datamatrix
- PDF417
- Australia Post Redirection
- Australia Post Reply Paid
- Australia Post Routing
- Australia Post Standard Customer
- Codabar
- Code 11 
- Code 16K
- Code 128
- Code 128 (Subset B)
- Code 2 of 5 Data Logic | IATA | Industrial Code
- 3 of 9 (Code 39)
- Code 93
- Deutsche Post Identcode & Leitcode
- DotCode
- EAN Extended Code 3 of 9 (Code 39+) 
- FIM
- Flattermarken
- GS1 DataBar Expanded | Expanded Stacked | Limited
- GS1 DataBar-14 | Stacked | Stacked Omnidirectional
- GS1-128
- Han Xin (Chinese Sensible) Code
- Interleaved 2 of 5
- ISBN (EAN-13 with verification stage) 
- ITF-14
- LOGMARS
- MicroPDF417
- MSI Code
- MSIPlessey
- NVE-18
- PDF417 normal & Truncated
- Pharmacode One-Track | Two-Track
- PLANET
- Plessey Code
- PostNet
- PZN
- Royal Mail 4 State (RM4SCC)
- Standard Code 2 of 5
- Telepen Alpha | Numeric
- UPC A & UPC E
- USPS OneCode
- and some others...

=== Download ===

You find more information the download here:



The download includes a sample database with the hmBarcode Plugin and a 
documentation.

=== Requirements ===
hmBarcode will run with 4D v15/v16 on Macintosh 10.9 and higher/Windows 7 and 
higher
hmBarcode uses the newest available system API's.

--

Grüße/Regards,
[heubach-media] | Christian Sakowski
christian.sakow...@heubach-media.de
Tel: +49/(0)40/52 10 59-23


--
heubach media
Osterfeldstr. 12-14 | Haus 1 | Eingang Nord
22529 Hamburg
tel: 040 / 52 10 59 - 10 | fax: -99
mail: i...@heubach-media.de
home: www.heubach-media.de
Geschäftsführer|CEO: Matthias Heubach

Mieten Sie Ihre Computer, iPads & Drucker für Ihre Events bei:
http://www.milo-rental.com

Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen.
Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten 
haben,
informieren Sie bitte sofort den Absender und vernichten Sie diese Mail.
Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht 
gestattet.
 
This e-mail may contain confidential and/or privileged information.
If you are not the intended recipient (or have received this e-mail in error)
please notify the sender immediately and destroy this e-mail.
Any unauthorized copying, disclosure or distribution of the
material in this e-mail is strictly forbidden.
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Updated OBJ Module

2017-01-24 Thread Cannon Smith
For those of you who are interested in the OBJ module and are still way back on 
v15 :-) I’ve back-ported the OBJ module to that version and it is available 
here:

 

--
Cannon.Smith
Synergy Farm Solutions Inc.
Hill Spring, AB Canada
403-626-3236




> On Jan 21, 2017, at 10:23 AM, Cannon Smith  
> wrote:
> 
> It is a v16 structure. There isn't anything special about v16 for it (that’s 
> just where I happen to be coding these days), so feel free to back-port it to 
> previous versions if you like.

**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Equals is not always transitive

2017-01-24 Thread Keith Culotta
"@lt" right?

Keith - CDI

> On Jan 24, 2017, at 9:15 AM, Chip Scheide <4d_o...@pghrepository.org> wrote:
> 
> "@" always on the right
> 
> On Tue, 24 Jan 2017 14:00:51 +1100, David Adams wrote:
>> 
>> If someone has something usefully smart to say to help me keep this
>> straight in my head, I'm all ears.
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: http://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **

**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Equals is not always transitive

2017-01-24 Thread Jeremy French
Hi David,

This section of the Language Reference may help in remembering which operand 
(of the equality operator) gets the wildcard.

It’s found in  “Operators” -> “Comparison Operators”. Then look for section 
titled "More about string comparisons”.

For wildcard placement:

"The wildcard character must be used within the second operand (the string on 
the right side) in order to match any number of characters.”

See: 
http://doc.4d.com/4Dv16/4D/16/Comparison-Operators.300-3036456.en.html#Paragraph_863680

Best regards,
Jeremy French


> On Jan 23, 2017, at 10:00 PM, David Adams  wrote:
> 
> This is probably documented, long-standing behavior that everyone but me
> knows and remembers. But, just in case, I just (re)discovered that the =
> operator is *not* always transitive. Specifically, when you're comparing a
> string with a wildcard.
> 
> C_TEXT($comparison_text)
> C_TEXT($input_text)
> $comparison_text:="@"
> $input_text:="Hello"
> 
> C_BOOLEAN($returns_false)
> C_BOOLEAN($returns_true)
> $returns_false:=$comparison_text=$input_text
> $returns_true:=$input_text=$comparison_text
> 
> If someone has something usefully smart to say to help me keep this
> straight in my head, I'm all ears.

**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Equals is not always transitive

2017-01-24 Thread David Adams
> Shouldn't that be 'commutative

Sounds like it. Yeah, that one!

On Tue, Jan 24, 2017 at 7:29 PM, Koen Van Hooreweghe  wrote:

> Hi David,
>
> Shouldn't that be 'commutative'? I.e. when changing the order of the
> operands does not change the result.
> Transitive in this contexts means that when A=B and B=C then A=C
>
> Normally the equal operator is commutative, but in 4D it isn't when the
> wildcard character is involved.
>
> :-)
> Koen
>
> Op 24-jan.-2017, om 04:00 heeft David Adams  het
> volgende geschreven:
>
> > This is probably documented, long-standing behavior that everyone but me
> > knows and remembers. But, just in case, I just (re)discovered that the =
> > operator is *not* always transitive. Specifically, when you're comparing
> a
> > string with a wildcard.
>
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: http://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **
>
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Sierra 10.12.3

2017-01-24 Thread Bernd Fröhlich
Lee Hinde:

> Sierra was just updated. I have a client who is running a v14 system and
> has already started updating to Sierra (and isn't reporting any problems.).
> 
> There have been quite a few threads on the topic and I don't have an
> overall sense of the issues.

I am developing with V14 on 10.12.2 and have no problems.
One of my users switched to Sierra a few days ago and 4D is crashing sometimes 
(not always) when he is creating a pdf from 4D write. Apart from that he 
reported no other issues so far.

Greetings from Germany,
Bernd Fröhlich
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**