Re: OB Copy, New Object, or $1

2017-09-02 Thread David Adams via 4D_Tech
> This is not progress.

Progress for very small values of "progress"?
**
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: OB Copy, New Object, or $1

2017-09-02 Thread Jeffrey Kain via 4D_Tech
More examples of special, arbitrary rules for objects vs. every other data type 
in 4D.

This is not progress.


> On Sep 2, 2017, at 5:43 PM, John Baughman via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> In order to use dot notation a c_object must have been initialized. So when 
> passing a c_object as a parameter to a method you cannot use dot notation on 
> the object as you might normally do with any other kind of parameter. This 
> will not work...

**
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: 4D Backup failure alert

2017-09-02 Thread stardata.info via 4D_Tech

Thanks


Il 02/09/2017 21:00, 4d_tech-requ...@lists.4d.com ha scritto:

Message: 7
Date: Sat, 2 Sep 2017 15:33:45 +
From: Olivier Deschanels
To: 4D iNug Technical<4d_tech@lists.4d.com>
Subject: Re: 4D Backup failure alert
Message-ID:<9e5a71ea-01c6-4d46-885c-e7050cc7d...@4d.com>
Content-Type: text/plain; charset="utf-8"

Hello,

At the end of the backup the database method ‘On backup Shutdown’ is fired.
This method receive a error code as first parameter.
You may have more detail thanks to GET BACKUP INFORMATION command.

—>http://doc.4d.com/4Dv16/4D/16.2/On-Backup-Shutdown-database-method.301-3434276.en.html

Regards,

Olivier


Le 2 sept. 2017 à 15:28, stardata.info  via 4D_Tech 
<4d_tech@lists.4d.com> a écrit :

I all,

I'm looking for a way to get a notification when a backup error is
triggered. Is there a way that i can follow to make a custom code
that advertise me when this event comes up?

Thanks
Ferdinando
**
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: OB Copy, New Object, or $1

2017-09-02 Thread Douglas von Roeder via 4D_Tech
John:

Thanks for pointing that out.


--
Douglas von Roeder
949-336-2902

On Sat, Sep 2, 2017 at 3:07 PM, John Baughman via 4D_Tech <
4d_tech@lists.4d.com> wrote:

>
> > On Sep 2, 2017, at 11:50 AM, Douglas von Roeder via 4D_Tech <
> 4d_tech@lists.4d.com> wrote:
> >
> > When I use C_Object, it's
> >
> > C_Object($O_;$1)
> > $O_:=$1
>
>
> Unless you are using the OBJ Module component, this syntax would not allow
> dot notation. Now that R4 beta includes dot notation natively, I prefer to
> use the native code and so I ask the question.
>
> John
>
>
>
> John Baughman
> Kailua, Hawaii
> (808) 262-0328
> john...@hawaii.rr.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
**

Re: OB Copy, New Object, or $1

2017-09-02 Thread John Baughman via 4D_Tech

> On Sep 2, 2017, at 11:50 AM, Douglas von Roeder via 4D_Tech 
> <4d_tech@lists.4d.com> wrote:
> 
> When I use C_Object, it's
> 
> C_Object($O_;$1)
> $O_:=$1


Unless you are using the OBJ Module component, this syntax would not allow dot 
notation. Now that R4 beta includes dot notation natively, I prefer to use the 
native code and so I ask the question.

John



John Baughman
Kailua, Hawaii
(808) 262-0328
john...@hawaii.rr.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: OB Copy, New Object, or $1

2017-09-02 Thread Douglas von Roeder via 4D_Tech
John:

I would use Cannon Smith's "OBJ Module". The component is 4D code that
allows supports dotted notation.


For many years, I passed an Object Tools Object at $1 so my code looks like

C_Longint($h_;$1)
$h_:=$1

When I use C_Object, it's

C_Object($O_;$1)
$O_:=$1




--
Douglas von Roeder
949-336-2902

On Sat, Sep 2, 2017 at 2:43 PM, John Baughman via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> In order to use dot notation a c_object must have been initialized. So
> when passing a c_object as a parameter to a method you cannot use dot
> notation on the object as you might normally do with any other kind of
> parameter. This will not work...
>
> C_Object($myCoolObject;$1)
> $myCoolObject:=$1
> If($myCoolObject.action=“Startup”)  // this will generate a
> syntax error.
> End If
>
> So we have several options…
> C_Object($1)
> If($1=“Startup”)
> End If
> Or
> c_Object($myCoolObject;$1)
> New object(myCoolObject)
> $myCoolObject:=$1
> If($myCoolObject.action=“Startup”)
> End If
> Or
> C_Object($myCoolObject;$1)
> $myCoolObject:=OB Copy($1)
> If($myCoolObject.action=“Startup”)
> End If
>
> Is any one of these options better than the other? I am guessing not.
> Since I like to always have readable vars, $1 means nothing, I have opted
> to use OB Copy as it is the simplest form and closest to myCoolObject:=$1.
>
> Any other way to do this?
>
> John
>
>
> John Baughman
> Kailua, Hawaii
> (808) 262-0328
> john...@hawaii.rr.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
**

OB Copy, New Object, or $1

2017-09-02 Thread John Baughman via 4D_Tech
In order to use dot notation a c_object must have been initialized. So when 
passing a c_object as a parameter to a method you cannot use dot notation on 
the object as you might normally do with any other kind of parameter. This will 
not work...

C_Object($myCoolObject;$1)
$myCoolObject:=$1
If($myCoolObject.action=“Startup”)  // this will generate a syntax 
error.
End If

So we have several options…
C_Object($1)
If($1=“Startup”)
End If
Or
c_Object($myCoolObject;$1)
New object(myCoolObject)
$myCoolObject:=$1
If($myCoolObject.action=“Startup”)  
End If
Or
C_Object($myCoolObject;$1)
$myCoolObject:=OB Copy($1)
If($myCoolObject.action=“Startup”)
End If

Is any one of these options better than the other? I am guessing not. Since I 
like to always have readable vars, $1 means nothing, I have opted to use OB 
Copy as it is the simplest form and closest to myCoolObject:=$1.

Any other way to do this?

John


John Baughman
Kailua, Hawaii
(808) 262-0328
john...@hawaii.rr.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: 4D Backup failure alert

2017-09-02 Thread Olivier Deschanels via 4D_Tech
Hello,

At the end of the backup the database method ‘On backup Shutdown’ is fired.
This method receive a error code as first parameter.
You may have more detail thanks to GET BACKUP INFORMATION command.

—> 
http://doc.4d.com/4Dv16/4D/16.2/On-Backup-Shutdown-database-method.301-3434276.en.html

Regards,

Olivier


Le 2 sept. 2017 à 15:28, stardata.info via 4D_Tech 
<4d_tech@lists.4d.com> a écrit :

I all,

I'm looking for a way to get a notification when a backup error is
triggered. Is there a way that i can follow to make a custom code
that advertise me when this event comes up?

Thanks
Ferdinando
**
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
**

4D Backup failure alert

2017-09-02 Thread stardata.info via 4D_Tech

I all,

I'm looking for a way to get a notification when a backup error is
triggered. Is there a way that i can follow to make a custom code
that advertise me when this event comes up?

Thanks
Ferdinando
**
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: Widget questions

2017-09-02 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi Timothy,

Thanks for your answer!

We are 4D partner but I don't know if I can, and if so how I can vote for your 
bug.

Do you know how I can do that?

Thanks,

Piotr

> -Oorspronkelijk bericht-
> Van: Timothy Penner [mailto:tpen...@4d.com]
> Verzonden: vrijdag 1 september 2017 21:22
> Aan: 4D iNug Technical <4d_tech@lists.4d.com>; Keisuke Miyako
> 
> CC: Piotr Chabot Stadhouders 
> Onderwerp: RE: Widget questions
> 
> Hi Piotr,
> 
> > I meant : When the mouse is over the 3D buttons the scrollbar doesn't
> respond when using the SCROLL WHEEL
> 
> Although I don't recall trying with a 3D Button, I am aware of the following
> bug that I filed for a v16 case:
> 
> ACI0096405  [135202] Scrolling a subform stops when the mouse is above an
> enterable object
> 
> Basically, if you had a scrollable subform, and you scrolled it using the 
> mouse
> wheel, it would stop scrolling when the mouse gets positioned above an
> enterable object. This behavior was seen in both v15.x and v16.x plus v13.6
> and v14.6 (I didn't test v12 or older versions) so the behavior has existed 
> for
> at least 4 major versions (13-16).
> 
> The bug is listed as in progress.
> 
> Hope this helps!
> 
> -Tim
> 
> 
> 
> Timothy Penner
> Technical Services Engineer
> 
> 4D Inc
> 95 S. Market Street, Suite #240
> San Jose,CA 95113
> United States
> 
> Telephone: +1-408-557-4600
> Fax:   +1-408-271-5080
> Email: tpen...@4d.com
> Web:   www.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
**