Re: Project methods vs ...

2019-04-25 Thread Jim Dorrance via 4D_Tech
I prefer to keep 2 parameters: obhject and form event

That way I can emulate object events outside the objects. eg
MyGenericObjectMetod( ->bAccept, On Clicked) to emulate a click on my
accept button

On Thu, Apr 25, 2019 at 4:31 PM Herr Alexander Heintz via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> I absolutely agree with Chip!
> For quite some time I have made sure all code called by objects is 1 line
> only!
> Now, with ORDA and the Form. object, it gets even easier to do this!
> Also in many cases there is no neeed for parameter passing:
> Using
>
> OBJECT Get name(Object current <
> https://doc.4d.com/4Dv17R5/4D/17-R5/Form-Objects-Access.302-4127247.en.html
> >)
> and
> Current form name
>
> makes life so much simpler...
>
> Also:
> No form object should have an „on load“ event!!!
> The call order of the On Load event makes it quite difficult, especially
> if some things rely on others.
> Run it all in the Forms On Load event.
> BTW: Using the Form.whatever notation for Checkboxes and Radio Buttons
> will accept Boolean values.
> You can assign From.myBoolean to a checkbox…
> Oh how much easier would life have been with all the V17 Stuff…
>
> Cheers
> Alex
>
>
> > Am 25.04.2019 um 16:22 schrieb Chip Scheide via 4D_Tech <
> 4d_tech@lists.4d.com>:
> >
> > Chris B made the below statement about project methods.
> >
> > from a 'classic' 4D pogromming view, IMHO - which may mean nothing :),
> > this is not the approach I use or advocate.
> >
> > I do use object methods - but - only to call project methods which do
> > all of the actual work.
> > ex: accept button script
> >// accept button script <[table].form.object>
> > tablename_entry_accept
> >   // end accept button script <[table].form.object>
> >
> > the project method tablename_entry_accept will do data entry
> > validation, messaging about entry failures, related record existence,
> > calculations that need to be done etc. and usually an ACCEPT
> >
> >
> > Why?
> > Deduplication of code. Code should NOT be repeated. In the above
> > example, the code to accept the form maybe reusable or be made more
> > generic (with parameters). If the code for this accept button was
> > placed in the object script - I might end up re-creating/repeating the
> > code elsewhere (even to the point of copy/paste).
> >
> > At some point in the future I might need to change the logic/code. Then
> > I would need to find all instances of the code through out the system,
> > to make the change. If the system is NOT one I wrote, or it has been a
> > long time (3 days?) since I worked on that section I would/might not
> > know where all instances of the duplicated code are.
> >
> > If the code is in a project method, I can make the changes needed in
> > one place, done.
> > Also - code in scripts is harder to find/maintain.
> >
> > Some people in the past have advocated for removal of all object
> > scripts, placing the code instead into the form method (or better the
> > project method called by the form method). I do not personally do this,
> > as I looked at it once and, to me, the resulting code was too long and
> > not clear -- of course maybe I was not implementing the idea correctly
> > or completely :)
> >
> > just my 2 cents
> >
> > Chip
> >
> >
> > On Wed, 24 Apr 2019 22:37:51 -0600, Chris Belanger via 4D_Tech wrote:
> >>
> >> Another use for it that I have not explored yet is to have a chunk of
> >> code that gets run under several different circumstances, but which I
> >> don’t want to make a dedicated Project Method for it.
> >> I prefer to reduce the number of Project Methods while, of course,
> >> creating ones that make logical sense (as they can be called in
> >> several places in my code). But you understand that as a programmer.
> > ---
> > Gas is for washing parts
> > Alcohol is for drinkin'
> > Nitromethane is for racing
> > **
> > 4D Internet Users Group (4D iNUG)
> > Archive:  http://lists.4d.com/archives.html
> > Options: https://lists.4d.com/mailman/options/4d_tech
> > Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> > **
>
> **
> 4D Internet Users Group (4D iNUG)
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **



-- 
Jim Dorrance
jim.dorra...@gmail.com
4...@dorrance.eu
www.4d.dorrance.eu

PS: If you know of anyone that needs an experienced 4D programmer to add
energy and experience to their team, please let me know. I have
experience in many areas. Reasonable rates. Remote or Paris only.
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4

Re: 4D V16 R6 Vs 4D V16.5

2019-03-14 Thread Jim Dorrance via 4D_Tech
A rose is a rose is a rose, but a roseR is a tulip.
-- 
Jim Dorrance
jim.dorra...@gmail.com
4...@dorrance.eu
www.4d.dorrance.eu

PS: If you know of anyone that needs an experienced 4D programmer to add
energy and experience to their team, please let me know. I have
experience in many areas. Reasonable rates. Remote or Paris only.
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: 4D V16 R6 Vs 4D V16.5

2019-03-13 Thread Jim Dorrance via 4D_Tech
On Wed, Mar 13, 2019 at 9:51 AM Milan Adamov via 4D_Tech <
4d_tech@lists.4d.com> wrote:

>
> No, it would just add more confusion and it wouldn’t be accurate.


I do not agree. The problem is a final client has bought a v16 version but
does not have access to features announced and touted as v16 features. It
is difficult to say to the client he must now update to v17 to have these
new v16 features.


-- 
Jim Dorrance
jim.dorra...@gmail.com
4...@dorrance.eu
www.4d.dorrance.eu

PS: If you know of anyone that needs an experienced 4D programmer to add
energy and experience to their team, please let me know. I have
experience in many areas. Reasonable rates. Remote or Paris only.
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: 4D V16 R6 Vs 4D V16.5

2019-03-12 Thread Jim Dorrance via 4D_Tech
On Tue, Mar 12, 2019 at 10:38 AM Milan Adamov via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> If you are using any new feature from v16 R6 that are not in v16 line, the
> answer is no. You should upgrade to v17 instead. For example, object
> notation (which became available in v16 R4) is not available in v16.5.
>
> If you are not using any new features available in v16 R6 then why use R
> version in a first place?
>
> Wouldn't it be less confusing if 4D called v16 R6  something other
than  v16 , because the v16 R6 new features will never be released in a v16
upgrade.

jim.dorra...@gmail.com
4...@dorrance.eu
www.4d.dorrance.eu

PS: If you know of anyone that needs an experienced 4D programmer to add
energy and experience to their team, please let me know. I have
experience in many areas. Reasonable rates. Remote or Paris only.
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: How to Create a Browser-Like Tabbed Interface

2019-01-21 Thread Jim Dorrance via 4D_Tech
I do this sort of thing with SVG often for clients. Contact me in private
if you like.
-- 
Jim Dorrance
jim.dorra...@gmail.com
4...@dorrance.eu
www.4d.dorrance.eu

PS: If you know of anyone that needs an experienced 4D programmer to add
energy and experience to their team, please let me know. I have
experience in many areas. Reasonable rates. Remote or Paris only.
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Form data, Constants and dot notation

2018-10-14 Thread Jim Dorrance via 4D_Tech
Yes. this works:

My string constants:

*Constants_AddString* ($oParams;"kCity")

*Constants_AddString* ($oParams;"kPhone")

*Constants_AddString* ($oParams;"kOffice")

*Constants_AddString* ($oParams;"kHome")


On the form:


Form.kPhone.kCity

Form.kPhone.kOffice

Form.kPhone.kHome


My Method:


*C_OBJECT*($obj)

$obj:=*New object*

$obj.kCity:="London"  //creates the city property and sets its value to
"London"

$obj.kCity:="Paris"  //modifies the city property

$obj.kPhone:=*New object*(kOffice;"123456789";kHome;"0011223344")


*DIALOG*("myForm";$obj)


And everything appears correctly!


And I use the constants to create the localized xlif strings...

On Sun, Oct 14, 2018 at 4:02 PM Jim Dorrance  wrote:

> No, does not work
>
> On Sun, Oct 14, 2018 at 4:00 PM Jim Dorrance 
> wrote:
>
>> Thanks.
>>
>> Does form[constnt] work as a dynamic form object?
>>
>> On Sun, Oct 14, 2018 at 3:03 PM John DeSoi via 4D_Tech <
>> 4d_tech@lists.4d.com> wrote:
>>
>>> Only the bracketed expression form, e.g. myObject[constant].
>>>
>>> John DeSoi, Ph.D.
>>>
>>>
>>> > On Oct 14, 2018, at 1:56 AM, Jim Dorrance via 4D_Tech <
>>> 4d_tech@lists.4d.com> wrote:
>>> >
>>> > Constants cannot be used with dot notation?
>>>
>>> **
>>> 4D Internet Users Group (4D iNUG)
>>> Archive:  http://lists.4d.com/archives.html
>>> Options: https://lists.4d.com/mailman/options/4d_tech
>>> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
>>> **
>>
>>
>>
>> --
>> Jim Dorrance
>> jim.dorra...@gmail.com
>> 4...@dorrance.eu
>> www.4d.dorrance.eu
>>
>> PS: If you know of anyone that needs an experienced 4D programmer to add
>> energy and experience to their team, please let me know. I have
>> experience in many areas. Reasonable rates. Remote or Paris only.
>>
>
>
> --
> Jim Dorrance
> jim.dorra...@gmail.com
> 4...@dorrance.eu
> www.4d.dorrance.eu
>
> PS: If you know of anyone that needs an experienced 4D programmer to add
> energy and experience to their team, please let me know. I have
> experience in many areas. Reasonable rates. Remote or Paris only.
>


-- 
Jim Dorrance
jim.dorra...@gmail.com
4...@dorrance.eu
www.4d.dorrance.eu

PS: If you know of anyone that needs an experienced 4D programmer to add
energy and experience to their team, please let me know. I have
experience in many areas. Reasonable rates. Remote or Paris only.
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Form data, Constants and dot notation

2018-10-14 Thread Jim Dorrance via 4D_Tech
No, does not work

On Sun, Oct 14, 2018 at 4:00 PM Jim Dorrance  wrote:

> Thanks.
>
> Does form[constnt] work as a dynamic form object?
>
> On Sun, Oct 14, 2018 at 3:03 PM John DeSoi via 4D_Tech <
> 4d_tech@lists.4d.com> wrote:
>
>> Only the bracketed expression form, e.g. myObject[constant].
>>
>> John DeSoi, Ph.D.
>>
>>
>> > On Oct 14, 2018, at 1:56 AM, Jim Dorrance via 4D_Tech <
>> 4d_tech@lists.4d.com> wrote:
>> >
>> > Constants cannot be used with dot notation?
>>
>> **
>> 4D Internet Users Group (4D iNUG)
>> Archive:  http://lists.4d.com/archives.html
>> Options: https://lists.4d.com/mailman/options/4d_tech
>> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
>> **
>
>
>
> --
> Jim Dorrance
> jim.dorra...@gmail.com
> 4...@dorrance.eu
> www.4d.dorrance.eu
>
> PS: If you know of anyone that needs an experienced 4D programmer to add
> energy and experience to their team, please let me know. I have
> experience in many areas. Reasonable rates. Remote or Paris only.
>


-- 
Jim Dorrance
jim.dorra...@gmail.com
4...@dorrance.eu
www.4d.dorrance.eu

PS: If you know of anyone that needs an experienced 4D programmer to add
energy and experience to their team, please let me know. I have
experience in many areas. Reasonable rates. Remote or Paris only.
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Form data, Constants and dot notation

2018-10-14 Thread Jim Dorrance via 4D_Tech
Thanks.

Does form[constnt] work as a dynamic form object?

On Sun, Oct 14, 2018 at 3:03 PM John DeSoi via 4D_Tech <4d_tech@lists.4d.com>
wrote:

> Only the bracketed expression form, e.g. myObject[constant].
>
> John DeSoi, Ph.D.
>
>
> > On Oct 14, 2018, at 1:56 AM, Jim Dorrance via 4D_Tech <
> 4d_tech@lists.4d.com> wrote:
> >
> > Constants cannot be used with dot notation?
>
> **
> 4D Internet Users Group (4D iNUG)
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **



-- 
Jim Dorrance
jim.dorra...@gmail.com
4...@dorrance.eu
www.4d.dorrance.eu

PS: If you know of anyone that needs an experienced 4D programmer to add
energy and experience to their team, please let me know. I have
experience in many areas. Reasonable rates. Remote or Paris only.
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Form data, Constants and dot notation

2018-10-13 Thread Jim Dorrance via 4D_Tech
Constants cannot be used with dot notation?

-- 
Jim Dorrance
jim.dorra...@gmail.com
4...@dorrance.eu
www.4d.dorrance.eu

PS: If you know of anyone that needs an experienced 4D programmer to add
energy and experience to their team, please let me know. I have
experience in many areas. Reasonable rates. Remote or Paris only.
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Defining and documenting Objects

2018-10-11 Thread Jim Dorrance via 4D_Tech
I have no menus in my current work, menus for a form are built dynamically
"On Activate", disposed of "On Disactivate". The menu ref is kept in a form
variable, and is used on contextual click to pop-up the current menu. Don't
hesitate to ask if there are any questions.
-- 
Jim Dorrance
jim.dorra...@gmail.com
4...@dorrance.eu
www.4d.dorrance.eu

PS: If you know of anyone that needs an experienced 4D programmer to add
energy and experience to their team, please let me know. I have
experience in many areas. Reasonable rates. Remote or Paris only.
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Notes on converting pictures to v17

2018-10-08 Thread Jim Dorrance via 4D_Tech
I prefer to leave images in the resources:images folder so that I can
use apps like Graohic Converter to remove the resource fork and other
things to  optimize the images.
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Defining and documenting Objects

2018-10-03 Thread Jim Dorrance via 4D_Tech
Why are constants less useful? If the value is equal to the constant, it
avoids potential upper/lower case problems, no?

On Wed, Oct 3, 2018 at 5:41 PM Kirk Brooks via 4D_Tech <4d_tech@lists.4d.com>
wrote:

> Paul,
> You touch on an excellent point about using objects. At the heart of it is
> your naming convention. We haven't had to worry about naming too much in
> the past. Variable names aren't case sensitive and you could always use the
> COMPILER_ methods to document the IP and process variables. And the same is
> true for the object variables themselves.
>
> When it comes to the properties (or keys as in key:value) it's a different
> story. Starting with them being case sensitive. I find a difference in how
> I handle this between being able to handle native dot notation and not. The
> difference being in v15 I used constants for (not IP vars) key names. You
> can still do this in v17 but it's less useful. Looking through some
> projects here are the main schemes I use for documenting how an object is
> structured.
>
> 1) a disk file
> Add a folder to Resources and keep templates for various objects there. Or
> a single file with templates listed as objects. I do this for large
> templates, for objects with lots of default data, for objects I want to be
> able to configure for specific instances and for objects defined by some
> other service I communicate with. Reading them is fast. Fast enough to use
> when loading a form, for example, though obviously I wouldn't do this
> inside a loop.
>
> Working with large objects benefits by being able to open them in my text
> editor. A line like:
>
> $account_id:=$obj.source.data[2].customer.preferences.account.number
>
> is easier for me when I can be looking at the object. Especially if it's
> from some other source (like a API call).
>
> 2) in the method header
> Perfect for defining keys as parameters.
>
> // MyMethod (object)
>
> // $1: { date: , person_id: , query_str: }
>
> Handy because it pops up in the method editor to remind me what the keys
> are.
>
> I also do this to document moderate sized objects returned by a method.
>
> 3) initialization or getter methods
>
> $obj:=Address_get_object
>
> where the method initializes the object. This could include reading a disk
> file or simply defining the object in code. Frequently I write these to
> include an optional param for the key value of a record so it either
> returns an empty object or a specific record. With a complementary SAVE
> method it's a good way to manage record data.
>
> 4) readMe files for each module
> Module? Addresses for example. I'd make a folder in Home named ADDRESS and
> a method named Address_readMe. This method is where I make notes about
> what's important and explain what is supposed to be going on. Like naming
> conventions for addresses and the structure of objects.
>
> Like I said at the start a good naming convention is your friend.
> Especially in v17. Decide for yourself how you are going to manage key
> names. Basically this comes down to camelCase or snake_case. The first
> character of the name must be a letter, underscore or $. Decide what $ and
> _ mean and be consistent. Avoid "stringly_typing" : using the key to imply
> metadata like type, usage etc. These things are totally mutable in an
> object. It can seem like a good idea in the short term but will bite you
> eventually.
>
> And don't forget you have JSON Validate. Validation schemas can be quite
> complex but they don't have to be. Again, you can include a validation
> document(s) in the Resources folder to check critical objects against
> before using.
>
> I encourage you to just begin working with them. When you find yourself
> getting bogged down take a step back because you are likely trying to use
> these new tools incorrectly. This is the hardest thing for long time 4D
> devs - things we've done a certain way for years can be done with the new
> tools a different, easier way.
>
> Objects and collections are the gateway drug to ORDA and your programming
> life will never be the same again.
>
> Hope this helps.
>
> On Wed, Oct 3, 2018 at 6:02 AM Paul Dennis via 4D_Tech <
> 4d_tech@lists.4d.com>
> wrote:
>
> > We have not started using objects in our application but I can see how
> they
> > could be useful. However where I am struggling is how we are supposed to
> > keep documentation as to the object definition. With database structure
> you
> > can clearly see the definition of the table and fields and these are
> > available in the method editor for lookup.
> >
> > Am I missing something as it seems to me that it would be very easy to
> get
> > in a mess as to definition and contents of an object.  Would appreciate
> > feedback as to have everyone is managing this. We are using V16 R6.
> > Thanks
> > Paul
> >
> >
> >
> > --
> > Sent from: http://4d.1045681.n5.nabble.com/4D-Tech-f1376241.html
> > **
> > 4D Internet Users Group (4D

Re: 2 Factor Authentication

2018-09-19 Thread Jim Dorrance via 4D_Tech
America first


On Wed, Sep 19, 2018 at 8:39 PM Peter Bozek via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> On Wed, Sep 19, 2018 at 7:49 PM Timothy Penner via 4D_Tech <
> 4d_tech@lists.4d.com> wrote:
>
> >
> > Did you go to the 4D Summit?
> >
> > If so, then you should have access to this:
> > http://kb.4d.com/assetid=78020
> >
> > -
>
>
>
> Hmm, I went to Summit in Paris and do not have access to the article.
>
> --
>
> Peter Bozek
> **
> 4D Internet Users Group (4D iNUG)
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **



-- 
Jim Dorrance
jim.dorra...@gmail.com
4...@dorrance.eu
www.4d.dorrance.eu

PS: If you know of anyone that needs an experienced 4D programmer to add
energy and experience to their team, please let me know. I have
experience in many areas. Reasonable rates. Remote or Paris only.
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Off topic: small office laser printer Mac OS

2018-09-17 Thread Jim Dorrance via 4D_Tech
Thanks

On Mon, Sep 17, 2018 at 1:26 PM Jeffrey Kain via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> Anything by Brother.
>
> I've had really great luck with Brother and macOS, as have some of my
> colleagues.
>
>
> > On Sep 17, 2018, at 7:09 AM, Jim Dorrance via 4D_Tech <
> 4d_tech@lists.4d.com> wrote:
> >
> > I need to buy a new color laser printer , either w-fi or ethernet,
> > that works without hassle with OS X. Any suggestions?
>
> **
> 4D Internet Users Group (4D iNUG)
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **



-- 
Jim Dorrance
jim.dorra...@gmail.com
4...@dorrance.eu
www.4d.dorrance.eu

PS: If you know of anyone that needs an experienced 4D programmer to add
energy and experience to their team, please let me know. I have
experience in many areas. Reasonable rates. Remote or Paris only.
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Off topic: small office laser printer Mac OS

2018-09-17 Thread Jim Dorrance via 4D_Tech
I need to buy a new color laser printer , either w-fi or ethernet,
that works without hassle with OS X. Any suggestions?

Thanks

-- 
Jim Dorrance
jim.dorra...@gmail.com
4...@dorrance.eu
www.4d.dorrance.eu

PS: If you know of anyone that needs an experienced 4D programmer to add
energy and experience to their team, please let me know. I have
experience in many areas. Reasonable rates. Remote or Paris only.
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Application menu bar.

2018-09-01 Thread Jim Dorrance via 4D_Tech
v16.3

I'm building my menus by using INSERT MENU ITEM, APPEND MENU ITEM and SET
MENU BAR.
I am not always using a File menu and I would like to enable/disable the
Quit menu item in the application menu bar. How do I do that with
enable/disable menu item?
-- 
Jim Dorrance
jim.dorra...@gmail.com
4...@dorrance.eu
www.4d.dorrance.eu

PS: If you know of anyone that needs an experienced 4D programmer to add
energy and experience to their team, please let me know. I have
experience in many areas. Reasonable rates. Remote or Paris only.
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: SVG Overlay Layer

2018-08-06 Thread Jim Dorrance via 4D_Tech
The annotation svg is much larger than the data svg so the annotation can
pass the boundaries
 of the data svg

On Mon, Aug 6, 2018 at 4:05 PM, John J Foster via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> > Hi Jim,
>
> I see!
>
> I thought that was just a dialog.
>
> Cool UI and smooth control.
>
> John...
>
> > The On Hover annotation balloon is another svg image on top of the data
> > svg image
>
> **
> 4D Internet Users Group (4D iNUG)
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **
>



-- 
Jim Dorrance
jim.dorra...@gmail.com
4...@dorrance.eu
www.4d.dorrance.eu

PS: If you know of anyone that needs an experienced 4D programmer to add
energy and experience to their team, please let me know. I have
experience in many areas. Reasonable rates. Remote or Paris only.
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: SVG Overlay Layer

2018-08-05 Thread Jim Dorrance via 4D_Tech
The On Hover annotation balloon is another svg image on top of the data
svg image

On Mon, Aug 6, 2018 at 12:28 AM, John J Foster via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> Hey Jim,
>
> Thanks for the example.
>
> It looks like a single svg image and then some dragging logic. Is that
> correct?
>
> My intention is to draw on top of the image. So I am thinking I’ll just:
>
> 1. Make it clear I’m in drawing mode. This will prevent any of the
> underlying objects from firing any code.
>
> 2. I will keep the annotations as part of the svg image. But I”ll name
> them so that I can hide, show, edit, add to or  delete while in the drawing
> mode. I think I’d like to restore them for later use.
>
> 3. Solve whatever challenges come up - which they will!
>
> Appreciate the shoulders,
> John…
>
>
> > Here is an example:
> >
> > https://www.screencast.com/t/82CWeG8Vqu2  82CWeG8Vqu2>
>
> **
> 4D Internet Users Group (4D iNUG)
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **
>



-- 
Jim Dorrance
jim.dorra...@gmail.com
4...@dorrance.eu
www.4d.dorrance.eu

PS: If you know of anyone that needs an experienced 4D programmer to add
energy and experience to their team, please let me know. I have
experience in many areas. Reasonable rates. Remote or Paris only.
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: SVG Overlay Layer

2018-08-05 Thread Jim Dorrance via 4D_Tech
Hi John,

Here is an example:

https://www.screencast.com/t/82CWeG8Vqu2

Jim Dorrance
jim.dorra...@gmail.com
4...@dorrance.eu
www.4d.dorrance.eu

PS: If you know of anyone that needs an experienced 4D programmer to add
energy and experience to their team, please let me know. I have
experience in many areas. Reasonable rates. Remote or Paris only.
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: SVG Overlay Layer

2018-08-03 Thread Jim Dorrance via 4D_Tech
I've done that. It depends if you need to trap the events on the underlying
area or the topmost layer, or both. I use 2 SVG areas, the topmost area
visible depending on the current hover object on the underlying area.

On Fri, Aug 3, 2018 at 9:45 PM, John J Foster via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> Hi All,
>
> Just brainstorming right now.
>
> Have you’ve seen the way the new windows tablets can set a mode and draw
> over the image on the screen? Kind of funny since I have bene planning a
> module functionally similar to work on the Mac. I need it for a training
> app and essentially a markup over an SVG image that can then be created,
> saved, restored or deleted.
>
> I am in 4D v17 (cross-platform Mac and windows) and working in SVG.
>
> I am wondering how I will design it.
>
> Scenario one: I suppose I could just alter the SVG image and add the
> annoiations to it. That would work but I’d need to make sure that none fo
> the underlying image could be altered while it’s in this annotation kode.
>
> Scenario two:  maybe there could be two SVG images with one aligned
> transparently on top pof the other. I guess it’s more like layers but I’m
> not sure we can do that in SVG, can we?
>
> I will then build a series of objct that can be used for annotation:
>
> rectangles, circles, line with/without arro heads; text etc.
>
> Anyway, perhaps it’s as simpel as the first scenario I mentioned.
>
> Anyone ever created anything similar?
>
> Thanks,
> John…
>
>
> **
> 4D Internet Users Group (4D iNUG)
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **




-- 
Jim Dorrance
jim.dorra...@gmail.com
4...@dorrance.eu
www.4d.dorrance.eu

PS: If you know of anyone that needs an experienced 4D programmer to add
energy and experience to their team, please let me know. I have
experience in many areas. Reasonable rates. Remote or Paris only.
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Objects without Stylesheets suddenly displayed as Wingdings!

2018-07-12 Thread Jim Dorrance via 4D_Tech
That sounds really useful!

On Thu, Jul 12, 2018 at 4:12 PM, Chuck Miller via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> I have code that will report on any object on forms with no font or style
> sheets assigned
> Please advise if you want it
>
> Regards
>
> Chuck
> Sent from my iPhone
>
> > On Jul 11, 2018, at 10:44 PM, Bob Miller via 4D_Tech <
> 4d_tech@lists.4d.com> wrote:
> >
> > I've not ever seen this before today, when I was testing a database that
> I
> > moved from v15 -> v16r6.  The stylesheets came through, but some fields
> > that had style sheets and all the ones that did not all of a sudden are
> > displayed in the Wingdings font.
> >
> > Cheryl, how did you detect objects that did not have a style sheet
> > assigned?  (I've not yet found the Tech Tip that Rudy referred to in his
> > posting)
> >
> > What did you decide to do about your thousands of objects?
> >
> > I'm not even sure of where to go with this!
> >
> > Thanks -
> >
> > On Fri, Jun 15, 2018 at 6:10 AM Two Way Communications via 4D_Tech <
> > 4d_t...@xxx.xxx> wrote:
> >
> >> Hi Cheryl,
> >>
> >> I?m afraid there is no solution outside 4D.
> >>
> >> But there is e recent tip in the knowledgebase on how to find these
> >> objects.
> >>
> >> And if they can be located, I suppose that the font can be set for thos
> >> objects.
> >>
> >> This way you could write code to address the issues.
> >>
> >>
> >> Regards,
> >>
> >> Rudy Mortier
> >> Two Way Communications bvba
> >>
> >>
> >>
> >>> On 13 Jun 2018, at 20:57, Cheryl Michels via 4D_Tech <
> >> 4d_t...@xxx.xxx> wrote:
> >>>
> >>> A recent Windows update (Windows 10, version 1803) has resulted in at
> >> least two of our customer sites reporting that certain form objects are
> > now
> >> displaying as Wingdings. When I look at these objects, I note that the
> >> developer did not assign a style sheet to them. Against our SOP, but
> > that
> >> is a different story. So, using Form Introspection, I have discovered
> > over
> >> 14,000 objects without stylesheets. Not a trivial task to set them all.
> >>>
> >>> Has anyone else run into this problem? Is there something I can do
> >> globally that I'm not thinking of? Is there something that is causing it
> >> to select Wingdings that I can undo?
> >>>
> >>> Cheryl Michels
> >>> President and System Architect
> >
> >
> > Bob Miller
> > Chomerics, a division of Parker Hannifin Corporation
> >
> >
> > ll
> > "PLEASE NOTE: The preceding information may be confidential or
> privileged. It only should be used or disseminated for the purpose of
> conducting business with Parker. If you are not an intended recipient,
> please notify the sender by replying to this message and then delete the
> information from your system. Thank you for your cooperation."
> > **
> > 4D Internet Users Group (4D iNUG)
> > FAQ:  http://lists.4d.com/faqnug.html
> > Archive:  http://lists.4d.com/archives.html
> > Options: https://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: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **
>



-- 
Jim Dorrance
jim.dorra...@gmail.com
4...@dorrance.eu
www.4d.dorrance.eu

PS: If you know of anyone that needs an experienced 4D programmer to add
energy and experience to their team, please let me know. I have
experience in many areas. Reasonable rates. Remote or Paris only.
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Component for 64 bit v6

2018-07-11 Thread Jim Dorrance via 4D_Tech
Thank you.


On Wed, Jul 11, 2018 at 7:08 PM, Timothy Penner via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> See here:
> Tech Tip: Important requirements to run a compiled structure on a 64-bit
> server
> http://kb.4d.com/assetid=77858
>
>
>
>
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **
>



-- 
Jim Dorrance
jim.dorra...@gmail.com
4...@dorrance.eu
www.4d.dorrance.eu

PS: If you know of anyone that needs an experienced 4D programmer to add
energy and experience to their team, please let me know. I have
experience in many areas. Reasonable rates. Remote or Paris only.
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Component for 64 bit v6

2018-07-11 Thread Jim Dorrance via 4D_Tech
Hi,

I have a component created v15, opened with 64 bit 4D v16 on Mac, but the
host database stops us compiling with v16 on Mac.
Does a component create with a 32bit version need to be 'converted' somehow?

-- 
Jim Dorrance
jim.dorra...@gmail.com
4...@dorrance.eu
www.4d.dorrance.eu

PS: If you know of anyone that needs an experienced 4D programmer to add
energy and experience to their team, please let me know. I have
experience in many areas. Reasonable rates. Remote or Paris only.
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Converting pictures on 4D forms (Windows) to get transparency

2018-07-09 Thread Jim Dorrance via 4D_Tech
Hi Bob,

2 suggestions:

Buy a MacMini for the office.
Hire a Mac developper for 1 day to arrange all that.

Jim

On Mon, Jul 9, 2018 at 5:20 PM, Bob Miller via 4D_Tech <4d_tech@lists.4d.com
> wrote:

> Hi Everyone,
>
> I'm in the process of going through a database to convert all the
> pictures, icons, and such in it so I can use the database with 64-bit 4D
> v16 (and eventually v17).
>
> The documentation is pretty clear that even though any images pasted in
> did not start life as PICTS - and I'm talking about things like arrows,
> some icons, line drawings, navigation tools, etc., that are part of the
> user interface, not actual photo type pictures -  4D would receive and
> store them as PICTS, so you have to find each one and convert it.
>
> To do this, I'm using JPR's Picture Conversion utility that he provided on
> the 2017 4D Road Tour.  It does a fine job as it can scan all the forms,
> find the offending pictures, list them, and then provides a utility where
> you can either convert them and put them into the picture library or
> convert them and put them into an external folder.
>
> One thing I'm finding is that the conversion doesn't support transparency,
> so I end up with pictures that have white backgrounds, which doesn't look
> nice.  Here is part of a thread from me to JPR:
>
> Me: When I drag a Static Picture to the converter, then back to the form,
> it seems to lose its transparency, even though the 'Transparent' property
> is turned ON.  How can this be fixed?
> JPR> It cannot. The transparency done previously by 4D was just a trick
> replacing the white pixels with the background color dynamically, because
> the concept of transparency didn't exist at this time (like in PICT, JPEG,
> etc.)
> JPR> Now 4D uses the modern toolbox which relies on the picture
> transparency information coming from the alpha channel. So if you want
> transparent pictures, you must convert into a format supporting alpha
> channel (like PNG) and use any software able to add the alpha layer to
> your pictures.  On Mac, the simplest one to add alpha channel is
> PaintBrush (from Soggy Waffles). You add transparency with the paint Fill
> tool
>
>
> The problem is that I'm on Windows.  Does anyone have a recommendation for
> fast technique that they've used that supports this "alpha channel' so I
> can convert my non-transparent images so that they are transparent again?
> It looks so bad having an arrow on a form with a big white background.
>
> Thank you -
>
>
> Bob Miller
> Chomerics, a division of Parker Hannifin Corporation
>
>
> ll
> "PLEASE NOTE: The preceding information may be confidential or privileged.
> It only should be used or disseminated for the purpose of conducting
> business with Parker. If you are not an intended recipient, please notify
> the sender by replying to this message and then delete the information from
> your system. Thank you for your cooperation."
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **




-- 
Jim Dorrance
jim.dorra...@gmail.com
4...@dorrance.eu
www.4d.dorrance.eu

PS: If you know of anyone that needs an experienced 4D programmer to add
energy and experience to their team, please let me know. I have
experience in many areas. Reasonable rates. Remote or Paris only.
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Pointer to field using field name

2018-05-19 Thread Jim Dorrance via 4D_Tech
I use maxint because it is a constant:)


-- 
Jim Dorrance
jim.dorra...@gmail.com
4...@dorrance.eu
www.4d.dorrance.eu

PS: If you know of anyone that needs an experienced 4D programmer to add
energy and experience to their team, please let me know. I have
experience in many areas. Reasonable rates. Remote or Paris only.
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: PDFjs component - display PDFs without a plug-in

2018-05-19 Thread Jim Dorrance via 4D_Tech
Thank you. Lots of good things inside.
-- 
Jim Dorrance
jim.dorra...@gmail.com
4...@dorrance.eu
www.4d.dorrance.eu

PS: If you know of anyone that needs an experienced 4D programmer to add
energy and experience to their team, please let me know. I have
experience in many areas. Reasonable rates. Remote or Paris only.
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: 4D Summit 2018 Comments

2018-04-09 Thread Jim Dorrance via 4D_Tech
Thanks
-- 
Jim Dorrance
jim.dorra...@gmail.com
4...@dorrance.eu
www.4d.dorrance.eu

PS: If you know of anyone that needs an experienced 4D programmer to add
energy and experience to their team, please let me know. I have
experience in many areas. Reasonable rates. Remote or Paris only.
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Where can I find 4D Internet Commands (for v16)?

2018-03-21 Thread Jim Dorrance via 4D_Tech
Hi Bob,

Sorry, I don't know.

Jim

On Wed, Mar 21, 2018 at 9:00 PM, Bob Miller via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> Hi Jim,
>
> I feel a bit silly, but I've just killed an hour looking for the v16
> version of "4D Internet Commands".The v16 Conversion manual specifies
> there are differences between v15 and v16, so I presume there is a v16
> version out there, but I don't see it on the FTP site (mostly old stuff at
> ftp://ftp.4d.com/ - and ftp://ftp.4d.com/PRODUCTS/Current/ contains v14.x
> stuff), nor is it listed at http://www.4d.com/products/4dv16.html
>
> Search on the site didn't find anything newer than v
>
> forums.4d.fr has always confused me, but I couldn't find it there, either.
>
> Is there a new 4D Pack for v16, or have all the 4D Pack commands now been
> built in?
>
> thanks -
>
>
> Bob Miller
> Chomerics, a division of Parker Hannifin Corporation
>
>
> ll
> "PLEASE NOTE: The preceding information may be confidential or privileged.
> It only should be used or disseminated for the purpose of conducting
> business with Parker. If you are not an intended recipient, please notify
> the sender by replying to this message and then delete the information from
> your system. Thank you for your cooperation."
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **




-- 
Jim Dorrance
jim.dorra...@gmail.com
4...@dorrance.eu
www.4d.dorrance.eu

PS: If you know of anyone that needs an experienced 4D programmer to add
energy and experience to their team, please let me know. I have
experience in many areas. Reasonable rates. Remote or Paris only.
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Using a Web Area as a Data Entry Area

2018-03-17 Thread Jim Dorrance via 4D_Tech
I agree 100%.

You will have to start with arrays or a selection anyway, so why complicate
the solution.
I can do everything in your screenshot suggests (plus more interface
goodies) in 1 or 2 days work maximum, promised.

I will develop a proof of concept and send it to you on Monday, Is 1 hour
of a developer's time equivalent to the cost of 1 beer?

Jim

On Sat, Mar 17, 2018 at 7:43 PM, Philippe Ganter via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> Re: Why would you want to do that?
>
> IMHO you don’t really need a web area for this need.
>
> Your description perfectly fits listbox arrays for basic features, or
> AreaList Pro if you want a more advanced tool, yet easier to use.
>
> It all depends on the granularity that you wish, and if you need any of
> the other numerous features that are available in AreaList Pro, but not in
> listbox.
>
> Best regards,
> --
> Phil
> forums.e-node.net
>
>
> > On 17 Mar 2018, at 15:36, Kirk Brooks via 4D_Tech <4d_tech@lists.4d.com>
> wrote:
> >
> > Hi Bob,
> > I have to agree with John - I don't see anything that precludes using a
> > listbox. And I say this as a guy who really likes using web areas.
> >
> > Just make all the listbox arrays text. (This is essentially what you
> would
> > be doing using javascript anyway.) You can handle converting to and from
> > other data types when you load/ save the arrays.
> >
> > On Fri, Mar 16, 2018 at 1:09 PM, Bob Miller via 4D_Tech <
> > 4d_tech@lists.4d.com> wrote:
> >
> >> Hi Everyone,
> >>
> >> I have a task that might be a good application for a 4D web area.  This
> >> would be my first use of this feature; normally I'd use Arealist or a
> >> Listbox to do this, but in this case the number of variables is high
> >> enough that a new approach might be warranted.
> >>
> >> The problem: we have a number of workcenters that each have different
> data
> >> collection requirements when a product is made at that workcenter.  I
> have
> >> a table for each workcenter that includes data on what each data element
> >> is; the user can set up a workcenter and specify how many data elements
> >> are to be collected, what the name of each data element is, and what the
> >> data type (alpha or real) of each data element is.
> >>
> >> The problem is creating a data entry area.  The area is supposed to look
> >> like a spreadsheet so that a user can enter multiple data points on a
> >> single screen and then click one button that behind the scenes will
> update
> >> multiple records.
> >>
> >> I've created a simplistic screen shot at:
> >> https://s13.postimg.org/hmj5o10fr/Web_Area_Mockup.jpg <
> https://s13.postimg.org/hmj5o10fr/Web_Area_Mockup.jpg>
>
>
>
>
>
>
>
>
>
>
>
>
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **
>



-- 
Jim Dorrance
jim.dorra...@gmail.com
4...@dorrance.eu
www.4d.dorrance.eu

PS: If you know of anyone that needs an experienced 4D programmer to add
energy and experience to their team, please let me know. I have
experience in many areas. Reasonable rates. Remote or Paris only.
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Collections

2018-03-16 Thread Jim Dorrance via 4D_Tech
Clearly explained. Thank you.

On Fri, Mar 16, 2018 at 1:23 PM, Jeff Grann via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> Haven’t worked with them yet, but my understanding is that a collection is
> an ordered list of values of possibly varying types.  In 4D arrays, all of
> the values must be the same type.  In a 4D collection, you can use mixed
> types as the elements.
>
> Example:
>
> $MyCollection[0]:=“Hello”
> $MyCollection[1]:=5
> $MyCollection[2]:=$AnObject
> $MyCollection[3]:=$AnArray
> $MyCollection[4]:=True
>
> --
> Jeff Grann
> SuccessWare, Inc.
>
> > On Mar 15, 2018, at 10:43 PM, Keith Goebel via 4D_Tech <
> 4d_tech@lists.4d.com> wrote:
> >
> > Hi all.
> > 4D seem to be really fired up about the new Collection object available
> in upcoming versions.
> > I’ve read the examples given in the blurb, but I have yet to read
> anything that would give me an idea as to why I would want to use a
> Collection instead of an Object.
> > It seems as though Collections are objects that don’t need a name
> parameter to identify the content; but if I have to name a Collection,
> what’s the difference between that and an Object item?
> >
> > There must be a very good reason for them, and I am sure I’m missing the
> point, but what is it?...
> > Cheers, Keith
>
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **
>



-- 
Jim Dorrance
jim.dorra...@gmail.com
4...@dorrance.eu
www.4d.dorrance.eu

PS: If you know of anyone that needs an experienced 4D programmer to add
energy and experience to their team, please let me know. I have
experience in many areas. Reasonable rates. Remote or Paris only.
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: [v16-Mac] Syntax check hits me with 3,300 + Errors...

2018-02-18 Thread Jim Dorrance via 4D_Tech
I'd love to know in private. 4...@dorrance.eu if you agree to share.

On Sun, Feb 18, 2018 at 12:43 PM, Jörg Knebel via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> Jim,
>
> Thanks for the tip mate.
>
>
> > On 18 Feb 2018, at 20:16 AEDT, Jim Dorrance via 4D_Tech <
> 4d_tech@lists.4d.com> wrote:
> >
> > Try it,…
>
> Done.
> It works, but...
>
>
> > … you'll like it.
>
> Nope and I don’t make my reasons public.
>
>
> Cheers
> Jörg
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **
>



-- 
Jim Dorrance
jim.dorra...@gmail.com
4...@dorrance.eu
www.4d.dorrance.eu

PS: If you know of anyone that needs an experienced 4D programmer to add
energy and experience to their team, please let me know. I have
experience in many areas. Reasonable rates. Remote or Paris only.
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: [v16-Mac] Syntax check hits me with 3,300 + Errors...

2018-02-18 Thread Jim Dorrance via 4D_Tech
Use the generate typing button. You can continue to create extra work for
yourself by hand crafting your compiler methods, but what was
necessary in v12 is no longer necessary in v16.

Try it, you'll like it.

On Sun, Feb 18, 2018 at 8:53 AM, Jörg Knebel via 4D_Tech <
4d_tech@lists.4d.com> wrote:

>
> > On 18 Feb 2018, at 18:47 AEDT, Stephen Shaw via 4D_Tech <
> 4d_tech@lists.4d.com> wrote:
> >
> > I presume you have used the generate typing button in the compiler
> dialog.
>
> NO, I never used the “4D variable typing function” or what ever it is/was
> called and I’m with 4D since v2.
>
> All Compiler_definition-Methods are "hand-crafted"!
>
> Cheers
> Jörg
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **
>



-- 
Jim Dorrance
jim.dorra...@gmail.com
4...@dorrance.eu
www.4d.dorrance.eu

PS: If you know of anyone that needs an experienced 4D programmer to add
energy and experience to their team, please let me know. I have
experience in many areas. Reasonable rates. Remote or Paris only.
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: [v16-Mac] Syntax check hits me with 3,300 + Errors...

2018-02-17 Thread Jim Dorrance via 4D_Tech
I assume 4D knows what it needs so I let 4D do the compiler declarations.


On Sun, Feb 18, 2018 at 8:32 AM, Jörg Knebel via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> Hi All,
>
> I thought I’ve seen it all but now I’m at a loss here. :-(
>
> I’m upgrading my stuff from v12 to v16 and tried a syntax check with the
> result shown in the subject.
>
> Now it’s kidding me with
> "The variable MYProcessvariable has not been explicitly declared
> in the typing methods (Compiler…).”
>
> "The variable SPLITTER29 has not been explicitly declared in the
> typing methods (Compiler…).”
>
> AND
>
> The parameter ${$} has not been explicitly declared in
> the typing methods (Compiler…).
> 
>
> Method name="SU_TableAccess”>
>  The parameter $1 has not been explicitly declared in the
> typing methods (Compiler…).
>  
>
>
> I used the same compiler settings as before:
> Compilation Options
> Generate error file
> Multi-target compilation (32-bit and 64-bit)
>
> Initialize local variables: to “zero”
> Compilation Path: Process and interprocess ar typed
>
> Default typing
>  Numeric: REAL
>  Button: Long Integer
>
> - Compiler Method for ALL
>  Compiler_Definition
>
> My “Computer_Definition” method looks like this:
> Compiler_Web
> Compiler_OT
> Compiler_Process
> Compiler_Application
> Compiler_ErrorCatch
> Compiler_Methods
>
>
> In those methods ALL process and interprocess variables and arrays are
> declared!
>
> Local variables and parameters are declared at the top of every method!
>
> NOT all methods have there parameter declared in “Compiler_Methods"(is
> this mandatory now?).
>
> I also reorganised/ folders for the structure objects e.g. specific
> folders for generic methods, different folders for different tables and so
> on.
>
>
> Big Question: What the f is going on?
>
> Thanks for any help, hint, slap…
>
> Cheers
> Jörg
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **




-- 
Jim Dorrance
jim.dorra...@gmail.com
4...@dorrance.eu
www.4d.dorrance.eu

PS: If you know of anyone that needs an experienced 4D programmer to add
energy and experience to their team, please let me know. I have
experience in many areas. Reasonable rates. Remote or Paris only.
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: 10.13.2 running on a MacMini (Late 2014) 8GB RAM External RAID 0+1 Samsung SSD. Using SoftRaid XT

2018-01-29 Thread Jim Dorrance via 4D_Tech
Find a mac mini late 2012 i7 with ssd and 16 gb ram

On Mon, Jan 29, 2018 at 9:37 PM, Tim Nevels via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> On Jan 29, 2018, at 2:00 PM, Mitchell Shiller wrote:
>
> > 4D Server 16.2
> > Mac OS  10.13.2 running on a MacMini (Late 2014) 8GB RAM
> > External RAID 0+1 Samsung SSD. Using SoftRaid XT
> >
> > Only applications running are:
> > 4D Server (no stored procedures), 15 users
> > Carbon Copy Cloner 5.05 (latest) scheduled to run every hour except from
> 22:00 - 6:00 when there are no users logged in)
> > Retrospect Client (14.6.0.127 latest) (which backs up a second attached
> drive that contains the 4D backup files at 23:00)
> >
> > I have been having  intermittent system crashes. These happen every 2-5
> days.. Never when the system is in use. (8-21:00) Usually  early in the
> morning long after Retrospect has run. Retrospect Client takes about 15-30
> to back up to our main Server.
> > I get the spinning beach ball of death. So it is not just a 4D crash.
> Nothing is responsive. The computer requires a hard reboot to get going
> again and then I am fine for 2-5 days.
> > Usually no users are logged in at the time.
> >
> > In the console I get the following information from the most recent 2
> crashes;
> >
> > https://www.dropbox.com/sh/2xejz2dehwqf3wu/
> AADcablM2L7vzu8uLRxY0-Hxa?dl=0  2xejz2dehwqf3wu/AADcablM2L7vzu8uLRxY0-Hxa?dl=0>
> >
> > I have tested the disk integrity, RAM integrity. All OK. I changed to a
> new computer with no change.
> > The previous computer was running 10.12
> > I contacted the SoftRaid support who downloaded  a crash report and
> stated that the crash is not happening with a disk access to the RAID
> system.
> >
> > Any idea what the next step should be?
>
>
> I would use the “Console” and see what messages were happening around the
> time it goes crazy. Start by checking “Errors and Faults” in the Favorites
> bar.  Then resort to “All Messages” to see everything.
>
> Could be some messages there will give you an idea of what’s going on. I
> had a problem years about on a Mac Pro server machine that would sometimes
> go deaf. Very random. Some morning people would come to work and try to log
> into the database and couldn’t. They’d go check the server and it would be
> frozen. I tracked it down by checking the Console for messages.
>
> I would immediately restart the server and the immediately go check
> Console and scroll back up until I got to log entries just before the
> restart. It turned out to be a memory issue. The machine was running low on
> RAM and would get into a page swap problem and never recover. There was a
> message in the Console about “low memory” and then just a few messages
> after that and it was dead. The fix was easy. Install another 8GB of RAM in
> the machine.
>
> Sad news is I don’t think your Mac Mini is RAM upgradable. You buy it with
> either 8GB of 16GB and that’s it.
>
> Tim
>
> Tim Nevels
> timnev...@mac.com 
> Innovative Solutions
> 785-749-3444
>
>
> **
> 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
> **




-- 
Jim Dorrance
jim.dorra...@gmail.com
4...@dorrance.eu
www.4d.dorrance.eu

PS: If you know of anyone that needs an experienced 4D programmer to add
energy and experience to their team, please let me know. I have
experience in many areas. Reasonable rates. Remote or Paris only.
**
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 SQL Question

2018-01-23 Thread Jim Dorrance via 4D_Tech
Thanks, I'll try that...

Jim Dorrance
jim.dorra...@gmail.com
4...@dorrance.eu
www.4d.dorrance.eu

PS: If you know of anyone that needs an experienced 4D programmer to add
energy and experience to their team, please let me know. I have
experience in many areas. Reasonable rates. Remote or Paris only.
**
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 SQL Question

2018-01-23 Thread Jim Dorrance via 4D_Tech
What I am doing now is

Begin SQL

 SELECT * FROM [myTable] LIMIT 1 into LISTBOX :myListbox;

End SQL

if Records in table > 1 I then fill the rest of the arrays manually
starting at goto record (1) on successive outside calls

Any other ideas?
-- 
Jim Dorrance
jim.dorra...@gmail.com
4...@dorrance.eu
www.4d.dorrance.eu

PS: If you know of anyone that needs an experienced 4D programmer to add
energy and experience to their team, please let me know. I have
experience in many areas. Reasonable rates. Remote or Paris only.
**
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 SQL Question

2018-01-23 Thread Jim Dorrance via 4D_Tech
Anybody have some hints how I could I fill a list box progressively (
LIMIT? OFFSET),
or a demo DB...

Thanks,
Jim



On Mon, Jan 22, 2018 at 7:30 PM, Keisuke Miyako via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> Not so dissimilar from your idea but you could do
>
> Begin SQL
>
>  SELECT * FROM [myTable] LIMIT 0 into LISTBOX :myListbox;
>
> End SQL
>
>
> **
> 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
> **
>



-- 
Jim Dorrance
jim.dorra...@gmail.com
4...@dorrance.eu
www.4d.dorrance.eu

PS: If you know of anyone that needs an experienced 4D programmer to add
energy and experience to their team, please let me know. I have
experience in many areas. Reasonable rates. Remote or Paris only.
**
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 SQL Question

2018-01-23 Thread Jim Dorrance via 4D_Tech
Thank you. Perfect.

On Mon, Jan 22, 2018 at 7:30 PM, Keisuke Miyako via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> Not so dissimilar from your idea but you could do
>
> Begin SQL
>
>  SELECT * FROM [myTable] LIMIT 0 into LISTBOX :myListbox;
>
> End SQL
>
>
> **
> 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
> **
>



-- 
Jim Dorrance
jim.dorra...@gmail.com
4...@dorrance.eu
www.4d.dorrance.eu

PS: If you know of anyone that needs an experienced 4D programmer to add
energy and experience to their team, please let me know. I have
experience in many areas. Reasonable rates. Remote or Paris only.
**
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: dot notation object

2018-01-22 Thread Jim Dorrance via 4D_Tech
Oooops... Thanks

On Mon, Jan 22, 2018 at 5:12 PM, Keisuke Miyako via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> yes, but the syntax would look like:
>
> $nTable:=$oParameters[kOParam_Requested_nTableNumber]
>
> see
>
> http://doc.4d.com/4Dv16R4/4D/16-R4/Using-object-notation-
> preview.300-3303773.en.html
>
> the example to follow is
>
> employee.name:="Smith"
>
> $vName:=employee["name"]
>
> > 2018/01/22 23:14、Jim Dorrance via 4D_Tech <4d_tech@lists.4d.com> のメール:
> > $nTable:=$oParameters.kOParam_Requested_nTableNumber
>
>
>
>
> **
> 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
> **




-- 
Jim Dorrance
jim.dorra...@gmail.com
4...@dorrance.eu
www.4d.dorrance.eu

PS: If you know of anyone that needs an experienced 4D programmer to add
energy and experience to their team, please let me know. I have
experience in many areas. Reasonable rates. Remote or Paris only.
**
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 SQL Question

2018-01-22 Thread Jim Dorrance via 4D_Tech
While you are on the subject...

I am a big fan of:

$tSQL:="SELECT * FROM "+$tTableName+" INTO : "+$tLBox

Because it creates dynamic Listbox columns automatically.

Is there a clever way to select nothing into a Listbox so that an
empty listbox with all the columns defined? I could then fill the
listbox "manually". What I do now is

$tSQL:="SELECT * FROM "+$tTableName+" WHERE "+$tFieldName+" = "+
MYNon-ExistantValue+" INTO : "+$tLBox


Not very elegant:)

-- 
Jim Dorrance
jim.dorra...@gmail.com
4...@dorrance.eu
www.4d.dorrance.eu

PS: If you know of anyone that needs an experienced 4D programmer to add
energy and experience to their team, please let me know. I have
experience in many areas. Reasonable rates. Remote or Paris only.
**
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
**

dot notation object

2018-01-22 Thread Jim Dorrance via 4D_Tech
Hi,

Can I use a 4D custom constant with dot notation, eg instead of

$nTable:=*OB Get*($oParameters;kOParam_Requested_nTableNumber;Is longint)



$nTable:=$oParameters.kOParam_Requested_nTableNumber

-- 
Jim Dorrance
jim.dorra...@gmail.com
4...@dorrance.eu
www.4d.dorrance.eu

PS: If you know of anyone that needs an experienced 4D programmer to add
energy and experience to their team, please let me know. I have
experience in many areas. Reasonable rates. Remote or Paris only.
**
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: v16R and v16

2018-01-22 Thread Jim Dorrance via 4D_Tech
Are you suggesting it might be better to skip updating to and deploying v16
and wait for v17?

On Mon, Jan 22, 2018 at 1:45 PM, npdennis via 4D_Tech <4d_tech@lists.4d.com>
wrote:

> Anything in the R releases are included in the next major version of 4D so
> features in 16R2 will be in the first 17 dot release.
>
> There are a lot of cool things coming up not only with list boxes, but 4D
> Write Pro that I’m looking forward to in 17.0
>
> --
Jim Dorrance
jim.dorra...@gmail.com
4...@dorrance.eu
www.4d.dorrance.eu

PS: If you know of anyone that needs an experienced 4D programmer to add
energy and experience to their team, please let me know. I have
experience in many areas. Reasonable rates. Remote or Paris only.
**
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: v16R and v16

2018-01-21 Thread Jim Dorrance via 4D_Tech
On Sun, Jan 21, 2018 at 7:41 PM, Douglas von Roeder via 4D_Tech <
4d_tech@lists.4d.com> wrote:


> ...acompany whose bottom line depends on their ability satisfy customer
> demand:
>
> I think we can say the same thing about 4D.

I've been waiting for it for years also. LISTBOX SET PROPERTY is such an
obvious necessity, it's a shame it cannot be deployed now..
-- 
Jim Dorrance
jim.dorra...@gmail.com
4...@dorrance.eu
www.4d.dorrance.eu

PS: If you know of anyone that needs an experienced 4D programmer to add
energy and experience to their team, please let me know. I have
experience in many areas. Reasonable rates. Remote or Paris only.
**
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: Call Form to the rescue

2017-12-09 Thread Jim Dorrance via 4D_Tech
A welcome addition, the inverse of EXECUTE METHOD IN SUBFORM

Finished crazy On Timer hacks, Call Subform with negative events...

On Sat, Dec 9, 2017 at 8:55 PM, John Baughman via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> I was trying to update a footer cell of a list box in a parent form, from
> a list box in a sub form.  While the subform could reference the list box
> itself in the parent, I could not get it to reference any of the parent
> list box’s footers.
>
> Hey, maybe a call form will work… Yep.
>
> So the cool part, at least in my simple mind is, that I did not have to
> write any new code. I just used the same method I was using to update the
> footers while in the parent as the call form method.
>
> So while in the parent form I call...
>
> Timesheets_UpdateFooter
>
> From the subform…
>
> CALL FORM(vTimeSheetFormID;” Timesheets_UpdateFooter”)
>
> As an 4D old timer always said… Cool Beans (wonder what’s become of
> Michael Erickson)
>
> Was this an obvious use to everyone else, or am i just slow to the point?
>
> 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
> **




-- 
Jim Dorrance
jim.dorra...@gmail.com
4...@dorrance.eu
www.4d.dorrance.eu

PS: If you know of anyone that needs an experienced 4D programmer to add
energy and experience to their team, please let me know. I have
experience in many areas. Reasonable rates. Remote or Paris only.
**
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: Component works with compiled source but not as a component

2017-12-03 Thread Jim Dorrance via 4D_Tech
Apres moi, no sense to create an object to pass a simple text array of
record keys. I stuffed them into a local blob and passed the blob as a
parameter. I have the impression I am asking 4D to do much less doing it
this way.

On Sun, Dec 3, 2017 at 11:11 AM, Ortwin Zillgen via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> > Thanks, I'll try stuffing the array into a blob, and passing the blob.
>
> I'm passing them as objects.
> Objects passed can be local-vars, great!
>
>
> Regards
> O r t w i n  Z i l l g e n
> -
>    
>  
> member of developer-network 
>
> **
> 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
> **
>



-- 
Jim Dorrance
jim.dorra...@gmail.com
4...@dorrance.eu
www.4d.dorrance.eu

PS: If you know of anyone that needs an experienced 4D programmer to add
energy and experience to their team, please let me know. I have
experience in many areas. Reasonable rates. Remote or Paris only.
**
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: poor performance LISTBOX INSERT COLUMN

2017-12-02 Thread Jim Dorrance via 4D_Tech
Ever use:

$tSQL:="SELECT * FROM "+$tTableName+" INTO : "+$tLBox


to create a listbox with all fields as columns and then hide the unwanted
columns?

On Sat, Dec 2, 2017 at 9:38 AM, Piotr Chabot Stadhouders via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> Hi Arnaud,
>
> Array listboxes
>
> >> Le 1 déc. 2017 à 15:49, Piotr Chabot Stadhouders via 4D_Tech
> <4d_t...@xxx.xxx> a écrit :
> >>
> >> Hi,
> >>
> >> In search of a performance problem in 1 of our forms I am asking for
> some advice.
> >>
> >> I have succeeded in analyzing 10 4DDebuglog.txt files (using an Oracle
> DB by the way) and have come to following :
> >> The problem is with the execution time of the "LISTBOX INSERT COLUMN"
>
> > array or selection listbox?
>
> > --
> > Arnaud
>
> **
> 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
> **
>



-- 
Jim Dorrance
jim.dorra...@gmail.com
4...@dorrance.eu
www.4d.dorrance.eu

PS: If you know of anyone that needs an experienced 4D programmer to add
energy and experience to their team, please let me know. I have
experience in many areas. Reasonable rates. Remote or Paris only.
**
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: Component works with compiled source but not as a component

2017-12-02 Thread Jim Dorrance via 4D_Tech
Putting the pointer de-pointed in a blob and passing the blob solves the
problem.

On Fri, Dec 1, 2017 at 11:58 PM, Jim Dorrance 
wrote:

> Thanks, I'll try stuffing the array into a blob, and passing the blob.
>
> On Fri, Dec 1, 2017 at 9:44 PM, Timothy Penner via 4D_Tech <
> 4d_tech@lists.4d.com> wrote:
>
>> This thread sounds familiar...  Maybe the answer is already posted:
>> http://4d.1045681.n5.nabble.com/Passing-var-from-component-
>> to-host-td5737479.html
>>
>> http://forums.4d.com/Post/FR/16238062/1/16238063#16238063
>>
>> http://livedoc.4d.com/4Dv16.1/help/Title/en/page1274.html#516584
>> " The component architecture allows the coexistence, within the same
>> interpreted database, of both interpreted and compiled components
>> (conversely, only compiled components can be used in a compiled database).
>> In order to use pointers in this case, you must respect the following
>> principle: the interpreter can unpoint a pointer built in compiled mode;
>> however, in compiled mode, you cannot unpoint a pointer built in
>> interpreted mode. "
>>
>> Hope that helps,
>>
>> -Tim
>>
>>
>>
>>
>> **
>> 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
>> **
>>
>
>
>
> --
> Jim Dorrance
> jim.dorra...@gmail.com
> 4...@dorrance.eu
> www.4d.dorrance.eu
>
> PS: If you know of anyone that needs an experienced 4D programmer to add
> energy and experience to their team, please let me know. I have
> experience in many areas. Reasonable rates. Remote or Paris only.
>



-- 
Jim Dorrance
jim.dorra...@gmail.com
4...@dorrance.eu
www.4d.dorrance.eu

PS: If you know of anyone that needs an experienced 4D programmer to add
energy and experience to their team, please let me know. I have
experience in many areas. Reasonable rates. Remote or Paris only.
**
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: Component works with compiled source but not as a component

2017-12-01 Thread Jim Dorrance via 4D_Tech
Thanks, I'll try stuffing the array into a blob, and passing the blob.

On Fri, Dec 1, 2017 at 9:44 PM, Timothy Penner via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> This thread sounds familiar...  Maybe the answer is already posted:
> http://4d.1045681.n5.nabble.com/Passing-var-from-
> component-to-host-td5737479.html
>
> http://forums.4d.com/Post/FR/16238062/1/16238063#16238063
>
> http://livedoc.4d.com/4Dv16.1/help/Title/en/page1274.html#516584
> " The component architecture allows the coexistence, within the same
> interpreted database, of both interpreted and compiled components
> (conversely, only compiled components can be used in a compiled database).
> In order to use pointers in this case, you must respect the following
> principle: the interpreter can unpoint a pointer built in compiled mode;
> however, in compiled mode, you cannot unpoint a pointer built in
> interpreted mode. "
>
> Hope that helps,
>
> -Tim
>
>
>
>
> **
> 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
> **
>



-- 
Jim Dorrance
jim.dorra...@gmail.com
4...@dorrance.eu
www.4d.dorrance.eu

PS: If you know of anyone that needs an experienced 4D programmer to add
energy and experience to their team, please let me know. I have
experience in many areas. Reasonable rates. Remote or Paris only.
**
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: Component works with compiled source but not as a component

2017-12-01 Thread Jim Dorrance via 4D_Tech
$tCallbackMethod gets called in the context of the host database and $1 is
correct. It is just that $2 contains ->$

On Fri, Dec 1, 2017 at 9:23 PM, Jim Dorrance  wrote:

> Thanks for your input.
>
> On a contextual click on a svg area in a subform:
>
> $nArraySize:=*Size of array*($atSelectedRecordKeys)
>
> *If *($nArraySize>0)
>
> *EXECUTE METHOD*($tCallbackMethod;*;$tSubformName;->$atSelectedRecordKeys)
>
> *End if *
>
>
> And I works when the component runs interpreted or compiled. If I build a
> component, I get ->$ in the $tCallbackMethod, not a valid pointer.
>
>
> How else could I pass an array of record keys to the host?
>
>
> Jim
>
> On Fri, Dec 1, 2017 at 7:08 PM, Kirk Brooks via 4D_Tech <
> 4d_tech@lists.4d.com> wrote:
>
>> Jim,
>> ​
>> First, if $tCallbackMethod is a Host database method it must have the
>> Shared with host & component property set.
>>
>> As I understand it EXECUTE METHOD runs in the context of the method
>> called.
>> So if ​$tCallbackMethod is in the host it will run there. If it's in the
>> component it will run there.
>>
>> ​Since this is being called in the context of a component ​that means
>> $atSelectedRecordKeys
>> is in the component memory space and I don't think can be passed to a host
>> method as a reference if $tCallBackMethod is a host method. This would
>> account for it working when you run the component code itself but failing
>> when called as a component.
>>
>> ​Maybe put the array in a blob or c-obj and pass that?​
>>
>>
>> On Fri, Dec 1, 2017 at 1:32 AM, Jim Dorrance via 4D_Tech <
>> 4d_tech@lists.4d.com> wrote:
>>
>> > 4D v15.5
>> >
>> > EXECUTE METHOD($tCallbackMethod;*;$tSubformName;->$atSelectedRecordK
>> eys)
>> >
>> > On a contextual click in a component subform displayed in the host
>> > database, the method $tCallbackMethod is to be executed in the context
>> of
>> > the host database.
>> >
>> > When the component source runs interpreted, or the component source is
>> run
>> > compiled, everything runs as expected.
>> >
>> > But after building a component using the Build Application menu, the
>> > callback method receives $1 correctly, but $2 contains ->$, a pointer
>> to $.
>> >
>> > Anybody have any idea what could be happening?
>> >
>> > --
>> Kirk Brooks
>> San Francisco, CA
>> ===
>>
>> *The only thing necessary for the triumph of evil is for good men to do
>> nothing.*
>>
>> *- Edmund Burke*
>> **
>> 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
>> **
>
>
>
>
> --
> Jim Dorrance
> jim.dorra...@gmail.com
> 4...@dorrance.eu
> www.4d.dorrance.eu
>
> PS: If you know of anyone that needs an experienced 4D programmer to add
> energy and experience to their team, please let me know. I have
> experience in many areas. Reasonable rates. Remote or Paris only.
>



-- 
Jim Dorrance
jim.dorra...@gmail.com
4...@dorrance.eu
www.4d.dorrance.eu

PS: If you know of anyone that needs an experienced 4D programmer to add
energy and experience to their team, please let me know. I have
experience in many areas. Reasonable rates. Remote or Paris only.
**
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: Component works with compiled source but not as a component

2017-12-01 Thread Jim Dorrance via 4D_Tech
Thanks for your input.

On a contextual click on a svg area in a subform:

$nArraySize:=*Size of array*($atSelectedRecordKeys)

*If *($nArraySize>0)

*EXECUTE METHOD*($tCallbackMethod;*;$tSubformName;->$atSelectedRecordKeys)

*End if *


And I works when the component runs interpreted or compiled. If I build a
component, I get ->$ in the $tCallbackMethod, not a valid pointer.


How else could I pass an array of record keys to the host?


Jim

On Fri, Dec 1, 2017 at 7:08 PM, Kirk Brooks via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> Jim,
> ​
> First, if $tCallbackMethod is a Host database method it must have the
> Shared with host & component property set.
>
> As I understand it EXECUTE METHOD runs in the context of the method called.
> So if ​$tCallbackMethod is in the host it will run there. If it's in the
> component it will run there.
>
> ​Since this is being called in the context of a component ​that means
> $atSelectedRecordKeys
> is in the component memory space and I don't think can be passed to a host
> method as a reference if $tCallBackMethod is a host method. This would
> account for it working when you run the component code itself but failing
> when called as a component.
>
> ​Maybe put the array in a blob or c-obj and pass that?​
>
>
> On Fri, Dec 1, 2017 at 1:32 AM, Jim Dorrance via 4D_Tech <
> 4d_tech@lists.4d.com> wrote:
>
> > 4D v15.5
> >
> > EXECUTE METHOD($tCallbackMethod;*;$tSubformName;->$atSelectedRecordKeys)
> >
> > On a contextual click in a component subform displayed in the host
> > database, the method $tCallbackMethod is to be executed in the context of
> > the host database.
> >
> > When the component source runs interpreted, or the component source is
> run
> > compiled, everything runs as expected.
> >
> > But after building a component using the Build Application menu, the
> > callback method receives $1 correctly, but $2 contains ->$, a pointer to
> $.
> >
> > Anybody have any idea what could be happening?
> >
> > --
> Kirk Brooks
> San Francisco, CA
> ===
>
> *The only thing necessary for the triumph of evil is for good men to do
> nothing.*
>
> *- Edmund Burke*
> **
> 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
> **




-- 
Jim Dorrance
jim.dorra...@gmail.com
4...@dorrance.eu
www.4d.dorrance.eu

PS: If you know of anyone that needs an experienced 4D programmer to add
energy and experience to their team, please let me know. I have
experience in many areas. Reasonable rates. Remote or Paris only.
**
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
**

Component works with compiled source but not as a component

2017-12-01 Thread Jim Dorrance via 4D_Tech
4D v15.5

EXECUTE METHOD($tCallbackMethod;*;$tSubformName;->$atSelectedRecordKeys)

On a contextual click in a component subform displayed in the host
database, the method $tCallbackMethod is to be executed in the context of
the host database.

When the component source runs interpreted, or the component source is run
compiled, everything runs as expected.

But after building a component using the Build Application menu, the
callback method receives $1 correctly, but $2 contains ->$, a pointer to $.

Anybody have any idea what could be happening?


-- 
Jim Dorrance
jim.dorra...@gmail.com
4...@dorrance.eu
www.4d.dorrance.eu

PS: If you know of anyone that needs an experienced 4D programmer to add
energy and experience to their team, please let me know. I have
experience in many areas. Reasonable rates. Remote or Paris only.
**
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: Slow characters visualization

2017-11-22 Thread Jim Dorrance via 4D_Tech
Me too. Mac 10.12.6  4D 15.5

On Tue, Nov 21, 2017 at 10:53 PM, stardata.info via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> Yes! i have this issue...
>
> Thanks
> /Ferdinando/
>
>>
>> Il 21/11/2017 18:35, 4d_tech-requ...@lists.4d.com ha scritto:
>>
>>> Message: 4
>>> Date: Tue, 21 Nov 2017 06:49:58 +
>>> From: lists
>>> To: 4D iNug Technical<4d_tech@lists.4d.com>
>>> Subject: RE: Slow characters visualization
>>> Message-ID:
>>> >> 11.prod.outlook.com>
>>>
>>> Content-Type: text/plain; charset="utf-8"
>>>
>>> Ferdinando,
>>>
>>> There was an issue with memory leak in some versions that exhibit
>>> similar behaviour.  I know the issue existed in v16 (fixed in one of the
>>> NB), returned in 16r3 and 16r4, and it's been since fixed in 16r4 build
>>> 215501, but I don't know if it effected any v15 releases too.
>>>
>>> To verify if this is your issue, open a method with about 100 lines of
>>> code or more, scroll down to the bottom of the method (this is important to
>>> trigger the leak), open your task manager and look at the amount of memory
>>> 4D is taking.  If you notice the memory grow every second, you have a
>>> version with this leak.
>>>
>>> Regards,
>>>
>>> Lahav
>>>
>>
>>
> **
> 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
> **
>



-- 
Jim Dorrance
jim.dorra...@gmail.com
4...@dorrance.eu
www.4d.dorrance.eu

PS: If you know of anyone that needs an experienced 4D programmer to add
energy and experience to their team, please let me know. I have
experience in many areas. Reasonable rates. Remote or Paris only.
**
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: SVG add object question

2017-10-22 Thread Jim Dorrance via 4D_Tech
You are opening an image, not  xml. You should save the source xml also and
edit it

On Sat, Oct 21, 2017 at 8:48 PM, Kirk Brooks via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> I must be confused about how this works. I have some SVG files I want to
> use to create button icons. These are nice, simple, native SVG. I want to
> manipulate them using SVG. I can open a file and export it to a pic
> variable just fine. But I'm not able to put that object into a new svg.
>
> For example:
>
> $svgImg:=SVG_Open_file ($path+$aDocs{$n})
>
> $svg:=SVG_Copy ($svgImg)
> $pic1:=SVG_Export_to_picture ($svg;0)
> SVG_CLEAR ($svg)
>
> This works as expected.
>
> $svg:=SVG_New
> $newObj:=SVG_Add_object ($svg;$svgImg)
> $pic2:=SVG_Export_to_picture ($svg;0)
>
>
> This doesn't work. $pic2 is blank even though $svg has received the new
> object. I can see that by looking at $svg in the viewer.
>
> What am I missing here?
>
> --
> Kirk Brooks
> San Francisco, CA
> ===
>
> *The only thing necessary for the triumph of evil is for good men to do
> nothing.*
>
> *- Edmund Burke*
> **
> 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
> **




-- 
Jim Dorrance
jim.dorra...@gmail.com
4...@dorrance.eu
www.4d.dorrance.eu

PS: If you know of anyone that needs an experienced 4D programmer to add
energy and experience to their team, please let me know. I have
experience in many areas. Reasonable rates. Remote or Paris only.
**
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: Components and subforms

2017-10-20 Thread Jim Dorrance via 4D_Tech
Thank you

On Sat, Oct 21, 2017 at 2:37 AM, Keisuke Miyako via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> structure file=(structure file(*))
>
> its even in the documentation
>
> http://doc.4d.com/4Dv16R4/4D/16-R4/Structure-file.301-3317749.en.html
>
> a notable exception is PROCESS 4D TAGS (apart from plugins)
> which is evaluated in the host context even when used in a component
> (it's the only way I know to directly access process variables of the host
> from a component)
>
> > 2017/10/20 23:52、Jim Dorrance via 4D_Tech <4d_tech@lists.4d.com> のメール:
> > Is there a simple way to discover in what context (host DB or component)
> a
> > particular method (host DB method or component method) is being executed
> > when I execute a method on a Call Subform Container call event?
>
>
>
>
> **
> 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
> **




-- 
Jim Dorrance
jim.dorra...@gmail.com
4...@dorrance.eu
www.4d.dorrance.eu

PS: If you know of anyone that needs an experienced 4D programmer to add
energy and experience to their team, please let me know. I have
experience in many areas. Reasonable rates. Remote or Paris only.
**
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
**

Components and subforms

2017-10-20 Thread Jim Dorrance via 4D_Tech
I have component in a subform included on a form in the host database. Is
there a simple way to discover in what context (host DB or component) a
particular method (host DB method or component method) is being executed
when I execute a method on a Call Subform Container call event?

Thanks

-- 
Jim Dorrance
jim.dorra...@gmail.com
4...@dorrance.eu
www.4d.dorrance.eu

PS: If you know of anyone that needs an experienced 4D programmer to add
energy and experience to their team, please let me know. I have
experience in many areas. Reasonable rates. Remote or Paris only.
**
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 can a component get a pointer to a host form (dynamic) variable?

2017-10-11 Thread Jim Dorrance via 4D_Tech
No, the pointer is nil. I finally execute a host process that executes a
component process that returns the picture to the host to be copied to a
host form var. There must be a simpler way:(


On Wed, Oct 11, 2017 at 5:49 PM, Jeremy Roussak via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> Can’t the pointer be passed from the host as a parameter to the method in
> the host which draws the picture? Just a thought.
>
>
> Jeremy Roussak
> j...@mac.com
>
>
>
> > On 11 Oct 2017, at 14:06, Jim Dorrance via 4D_Tech <4d_tech@lists.4d.com>
> wrote:
> >
> > Thanks.
> >
> > I just want to copy a SVG picture created in a component ( using lots of
> > data only available in the subform) to the host form.
> >
> > On Wed, Oct 11, 2017 at 2:21 PM, Jeremy Roussak via 4D_Tech <
> > 4d_tech@lists.4d.com> wrote:
> >
> >> Jim,
> >>
> >> I do it via a callback routine in the host. To make things easy, the
> >> component creates several methods in the host the first time it’s used.
> >>
> >> Jeremy
> >>
> >> Jeremy Roussak
> >> j...@mac.com
> >>
> >>
> >>
> >>> On 11 Oct 2017, at 13:02, Jim Dorrance via 4D_Tech <
> 4d_tech@lists.4d.com>
> >> wrote:
> >>>
> >>> How can a component method get a pointer to a host form (dynamic)
> >> variable?
> >>>
> >>> --
> >>> Jim Dorrance
> >> **
> >> 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
> >> **
> >
> >
> >
> >
> > --
> > Jim Dorrance
> > jim.dorra...@gmail.com
> > 4...@dorrance.eu
> > www.4d.dorrance.eu
> >
> > PS: If you know of anyone that needs an experienced 4D programmer to add
> > energy and experience to their team, please let me know. I have
> > experience in many areas. Reasonable rates. Remote or Paris only.
> > **
> > 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
> **
>



-- 
Jim Dorrance
jim.dorra...@gmail.com
4...@dorrance.eu
www.4d.dorrance.eu

PS: If you know of anyone that needs an experienced 4D programmer to add
energy and experience to their team, please let me know. I have
experience in many areas. Reasonable rates. Remote or Paris only.
**
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 can a component get a pointer to a host form (dynamic) variable?

2017-10-11 Thread Jim Dorrance via 4D_Tech
Thanks.

I just want to copy a SVG picture created in a component ( using lots of
data only available in the subform) to the host form.

On Wed, Oct 11, 2017 at 2:21 PM, Jeremy Roussak via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> Jim,
>
> I do it via a callback routine in the host. To make things easy, the
> component creates several methods in the host the first time it’s used.
>
> Jeremy
>
> Jeremy Roussak
> j...@mac.com
>
>
>
> > On 11 Oct 2017, at 13:02, Jim Dorrance via 4D_Tech <4d_tech@lists.4d.com>
> wrote:
> >
> > How can a component method get a pointer to a host form (dynamic)
> variable?
> >
> > --
> > Jim Dorrance
> **
> 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
> **




-- 
Jim Dorrance
jim.dorra...@gmail.com
4...@dorrance.eu
www.4d.dorrance.eu

PS: If you know of anyone that needs an experienced 4D programmer to add
energy and experience to their team, please let me know. I have
experience in many areas. Reasonable rates. Remote or Paris only.
**
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 can a component get a pointer to a host form (dynamic) variable?

2017-10-11 Thread Jim Dorrance via 4D_Tech
How can a component method get a pointer to a host form (dynamic) variable?

-- 
Jim Dorrance
jim.dorra...@gmail.com
4...@dorrance.eu
www.4d.dorrance.eu

PS: If you know of anyone that needs an experienced 4D programmer to add
energy and experience to their team, please let me know. I have
experience in many areas. Reasonable rates. Remote or Paris only.
**
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: Canvas alternative

2017-10-03 Thread Jim Dorrance via 4D_Tech
I also use On Mouse Move for hover events


On Tue, Oct 3, 2017 at 8:33 PM, Timothy Penner via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> Hi Tom,
>
> > Could you please explain a bit further how you get from attributes to
> event callbacks? Do you capture an event on the SVG area and scan all its
> element attributes?
>
> I am just guessing here but check out this command:
>
> SVG Find element ID by coordinates
> http://livedoc.4d.com/4Dv15.4/help/Command/en/page1054.html
>
> The description of this command talks about using the On Clicked event of
> the object to get the mouse coordinates and then then using the X Y
> coordinates of the mouse location with the SVG Find element ID by
> coordinates to find out what is beneath the mouse during the click event.
>
> You should then have the ID of the element that was clicked on.
>
> If you had set a custom attribute for that element using SVG SET ATTRIBUTE
> you could then use SVG GET ATTRIBUTE to obtain that custom attribute, then,
> assuming it is a method name, you could use the EXECUTE METHOD command to
> execute it.
>
> This is just one approach.
>
> Another approach could be to use a case statement for the elements that
> you know may be clicked on, with each action defined within the case
> statements.
>
> There could be other approaches to.
>
> -Tim
>
>
>
>
>
>
> **
> 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
> **
>



-- 
Jim Dorrance
jim.dorra...@gmail.com
4...@dorrance.eu
www.4d.dorrance.eu

PS: If you know of anyone that needs an experienced 4D programmer to add
energy and experience to their team, please let me know. I have
experience in many areas. Reasonable rates. Remote or Paris only.
**
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: Canvas alternative

2017-10-03 Thread Jim Dorrance via 4D_Tech
That's exactly what I do.

On Tue, Oct 3, 2017 at 8:33 PM, Timothy Penner via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> Hi Tom,
>
> > Could you please explain a bit further how you get from attributes to
> event callbacks? Do you capture an event on the SVG area and scan all its
> element attributes?
>
> I am just guessing here but check out this command:
>
> SVG Find element ID by coordinates
> http://livedoc.4d.com/4Dv15.4/help/Command/en/page1054.html
>
> The description of this command talks about using the On Clicked event of
> the object to get the mouse coordinates and then then using the X Y
> coordinates of the mouse location with the SVG Find element ID by
> coordinates to find out what is beneath the mouse during the click event.
>
> You should then have the ID of the element that was clicked on.
>
> If you had set a custom attribute for that element using SVG SET ATTRIBUTE
> you could then use SVG GET ATTRIBUTE to obtain that custom attribute, then,
> assuming it is a method name, you could use the EXECUTE METHOD command to
> execute it.
>
> This is just one approach.
>
> Another approach could be to use a case statement for the elements that
> you know may be clicked on, with each action defined within the case
> statements.
>
> There could be other approaches to.
>
> -Tim
>
>
>
>
>
>
> **
> 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
> **
>



-- 
Jim Dorrance
jim.dorra...@gmail.com
4...@dorrance.eu
www.4d.dorrance.eu

PS: If you know of anyone that needs an experienced 4D programmer to add
energy and experience to their team, please let me know. I have
experience in many areas. Reasonable rates. Remote or Paris only.
**
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: Canvas alternative

2017-10-03 Thread Jim Dorrance via 4D_Tech
When I build the SVG I *optionally* associate a call-back method name in a
custom SVG attribute. When On Mouse Move, On Click, On Double Click etc.,
if there is a custom call-back attribute, I execute method.

I can always be contacted in private for more info: www.4d.dorrance.eu

On Tue, Oct 3, 2017 at 7:33 PM, Tom DeMeo via 4D_Tech <4d_tech@lists.4d.com>
wrote:

> Hi Jim
>
>
> Could you please explain a bit further how you get from attributes to
> event callbacks? Do you capture an event on the SVG area and scan all its
> element attributes?
>
> I took a look at the Projects page you mentioned but those are screen
> shots.
>
>
>
> Tom
>
> > --
> >
> > Message: 4
> > Date: Tue, 3 Oct 2017 08:25:10 +0200
> > From: Jim Dorrance 
> > To: 4D iNug Technical <4d_tech@lists.4d.com>
> > Subject: Re: Canvas alternative
> > Message-ID:
> >com>
> > Content-Type: text/plain; charset="UTF-8"
> >
> > I regularly implement call-back events by creating custom attributes in
> > SVG. The associated 4D methods are then executed either in the host
> > database or in the component. You can see some interface possibilities on
> > my website: www.dorrance.eu in the section:"Projects".
> >
> >>
> >> --
> > Jim Dorrance
> > jim.dorra...@gmail.com
> > 4...@dorrance.eu
> > www.4d.dorrance.eu
>
>
>
> **
> 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
> **
>



-- 
Jim Dorrance
jim.dorra...@gmail.com
4...@dorrance.eu
www.4d.dorrance.eu

PS: If you know of anyone that needs an experienced 4D programmer to add
energy and experience to their team, please let me know. I have
experience in many areas. Reasonable rates. Remote or Paris only.
**
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: Canvas alternative

2017-10-02 Thread Jim Dorrance via 4D_Tech
I regularly implement call-back events by creating custom attributes in
SVG. The associated 4D methods are then executed either in the host
database or in the component. You can see some interface possibilities on
my website: www.dorrance.eu in the section:"Projects".

>
> --
Jim Dorrance
jim.dorra...@gmail.com
4...@dorrance.eu
www.4d.dorrance.eu

PS: If you know of anyone that needs an experienced 4D programmer to add
energy and experience to their team, please let me know. I have
experience in many areas. Reasonable rates. Remote or Paris only.
**
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: Is it possible to put a SVG file directly on a form?

2017-09-26 Thread Jim Dorrance via 4D_Tech
I just dragged an xmlns.svg file on a form as a background picture,
displayed the form and re-sized it. It scaled perfectly.

Then I created a picture button on the form, selected 'file' as the source,
and dragged an xmlns.svg file onto the button.It also scaled perfectly.

Jim
-- 
Jim Dorrance
jim.dorra...@gmail.com
4...@dorrance.eu
www.4d.dorrance.eu

PS: If you know of anyone that needs an experienced 4D programmer to add
energy and experience to their team, please let me know. I have
experience in many areas. Reasonable rates. Remote or Paris only.
**
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: Is it possible to put a SVG file directly on a form?

2017-09-24 Thread Jim Dorrance via 4D_Tech
Of course you can display the source in a text variable (either visible or
invisible) on a form if you need to save the SVG temporarily. What are you
trying to do?

On Mon, Sep 25, 2017 at 12:51 AM, Kirk Brooks via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> or does it have to be converted to a picture?
>
> --
> Kirk Brooks
> San Francisco, CA
> ===
>
> *The only thing necessary for the triumph of evil is for good men to do
> nothing.*
>
> *- Edmund Burke*
> **
> 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
> **




-- 
Jim Dorrance
jim.dorra...@gmail.com
4...@dorrance.eu
www.4d.dorrance.eu

PS: If you know of anyone that needs an experienced 4D programmer to add
energy and experience to their team, please let me know. I have
experience in many areas. Reasonable rates. Remote or Paris only.
**
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: Check if DOM element has attribute

2017-09-22 Thread Jim Dorrance via 4D_Tech
Thanks, I wanted to avoid installing an error handler for 1 line of code...
I was hoping I missed a native 4D call.

On Fri, Sep 22, 2017 at 10:16 AM, Epperlein, Lutz (agendo) via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> I don't think so.
>
> But you can build your own implementation using
> - DOM Count XML attributes
> - DOM GET XML ATTRIBUTE BY INDEX
>
> Or
> - DOM GET XML ATTRIBUTE BY NAME in conjunction with an error handler
>
> HTH
> Lutz Epperlein
>
>
> > Is there a 4D equivalent of: DOMElement::hasAttributeNS — Checks to see
> if
> > attribute exists
> **
> 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
> **




-- 
Jim Dorrance
jim.dorra...@gmail.com
4...@dorrance.eu
www.4d.dorrance.eu

PS: If you know of anyone that needs an experienced 4D programmer to add
energy and experience to their team, please let me know. I have
experience in many areas. Reasonable rates. Remote or Paris only.
**
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
**

Check if DOM element has attribute

2017-09-22 Thread Jim Dorrance via 4D_Tech
Hi,

Is there a 4D equivalent of: DOMElement::hasAttributeNS — Checks to see if
attribute exists


Thanks
-- 
Jim Dorrance
jim.dorra...@gmail.com
4...@dorrance.eu
www.4d.dorrance.eu

PS: If you know of anyone that needs an experienced 4D programmer to add
energy and experience to their team, please let me know. I have
experience in many areas. Reasonable rates. Remote or Paris only.
**
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: SVG Scale

2017-09-19 Thread Jim Dorrance via 4D_Tech
Thanks Kieth, I'm sure you have set me on the right path!

On Tue, Sep 19, 2017 at 6:58 PM, Keith Culotta via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> Sorry, there is also this: SVG_SCALING_CENTERED ( svgObject ; scale {; x ;
> y} )
> http://doc.4d.com/4Dv16/4D/16/SVG-SCALING-CENTERED.301-3202422.en.html
>
> Keith - CDI
>
> > On Sep 19, 2017, at 11:03 AM, Jim Dorrance via 4D_Tech <
> 4d_tech@lists.4d.com> wrote:
> >
> > Hi,
> >
> > I am looking for a very quick way to scale a SVG object (circle, rect
> etc.)
> > but not move the center of the object.
> >
> > I use:
> >
> > *DOM SET XML ATTRIBUTE*($tObjectRef;"transform";"scale(2)")
> >
> >
> > And of course, the object is  moved xy*2
> >
> >
> > Any ideas how to scale on object but not its position on the cancas.
> >
> >
> > Thanks
> >
> > Jim
> >
> > --
> > Jim Dorrance
> > jim.dorra...@gmail.com
> > 4...@dorrance.eu
> > www.4d.dorrance.eu
> >
> > PS: If you know of anyone that needs an experienced 4D programmer to add
> > energy and experience to their team, please let me know. I have
> > experience in many areas. Reasonable rates. Remote or Paris only.
> > **
> > 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
> **
>



-- 
Jim Dorrance
jim.dorra...@gmail.com
4...@dorrance.eu
www.4d.dorrance.eu

PS: If you know of anyone that needs an experienced 4D programmer to add
energy and experience to their team, please let me know. I have
experience in many areas. Reasonable rates. Remote or Paris only.
**
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 Scale

2017-09-19 Thread Jim Dorrance via 4D_Tech
Hi,

I am looking for a very quick way to scale a SVG object (circle, rect etc.)
but not move the center of the object.

I use:

*DOM SET XML ATTRIBUTE*($tObjectRef;"transform";"scale(2)")


And of course, the object is  moved xy*2


Any ideas how to scale on object but not its position on the cancas.


Thanks

Jim

-- 
Jim Dorrance
jim.dorra...@gmail.com
4...@dorrance.eu
www.4d.dorrance.eu

PS: If you know of anyone that needs an experienced 4D programmer to add
energy and experience to their team, please let me know. I have
experience in many areas. Reasonable rates. Remote or Paris only.
**
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: Thinking through object/text fields: Findings summarized, advice solicited

2017-07-14 Thread Jim Dorrance via 4D_Tech
I agree... If the structure is fixed and the values need to be visualised,I:

Store in specific arrays.
Arrays to blob.
Blob to field (or Document).

To visualise:
Blob from Document or field
Blob to arrays
Arrays to Listbox
and my QuerySort component to search etc

On Fri, Jul 14, 2017 at 10:49 AM, Julio Carneiro via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> On Jul 14, 2017, at 4:21 AM, David Adams via 4D_Tech <4d_tech@lists.4d.com>
> wrote:
> >
> > Does that all sound about right? Am I missing reasons why I would want to
> > use object fields. vs. text fields? Any other technical details that
> people
> > have learned or figured out?
>
> I’d add that using an object field is only meaningful if your objects have
> a variable structure, that is, objects differ among records not just by
> contents but have a variable internal structure.
> If all objects in all records share a common structure, that is, they all
> have the same attributes (even if some are optional and may be empty/null),
> then go with standard 4D fields. As you pointed out, they take a lot less
> space, can be individually indexed/keyworded, are easier to deal with,
> their usage is syntax checked by compiler, etc..
>
> Just my $.02
> --
> Julio Carneiro
> jjfo...@gmail.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
> **
>



-- 
Jim Dorrance
jim.dorra...@gmail.com
4...@dorrance.eu
www.4d.dorrance.eu

PS: If you know of anyone that needs an experienced 4D programmer to add
energy and experience to their team, please let me know. I have
experience in many areas. Reasonable rates. Remote or Paris only.
**
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: Mouse Over Events in a standard 4D Output form... ToolTips?

2017-07-04 Thread Jim Dorrance via 4D_Tech
I did a demo db using 4D 2014 that does that and all sorts of other things
On Mouse Move, including displaying help in a balloon. It also takes into
account the position of the scroll bar. Go to: www.dorrance.eu then Demos,
then Remember.

On Mon, Jul 3, 2017 at 9:46 PM, rooftop99--- via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> Hi All,
>
> Version: 4D v15.2, Windows, Client/Server
>
> I would like to create a record specific “ToolTips” display on a standard
> 4D output form.  This is without a click on any records.
>
> The desired end user behavior is:
>
> User mouses over a particular object in one of the rows of an output form.
> Form Event “On Mouse Enter” fires triggering collection of data related to
> that specific record.
> A window appears displaying the information and stays visible until the
> user moves the mouse off that object (Clean up handled by code in Form
> Event “On Mouse Leave”)
>
> Challenges/How Do I:
> - Without a click, how do I make 4D recognize the specific record related
> to the row on which the mouse events are triggered?
> - Any thought on how best to display the collected data in a window which
> rests on top of the output form, while still allowing the output form
> events to trigger as the user moves the mouse…?
>
> Your help is appreciated.
>
> Thanks,
> Kirk
> **
> 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
> **




-- 
Jim Dorrance
jim.dorra...@gmail.com
4...@dorrance.eu
www.4d.dorrance.eu

PS: If you know of anyone that needs an experienced 4D programmer to add
energy and experience to their team, please let me know. I have
experience in many areas. Reasonable rates. Remote or Paris only.
**
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: Custom comments: Lots of tips, more wanted!

2017-06-04 Thread Jim Dorrance via 4D_Tech
> On Sun, Jun 4, 2017 at 2:40 PM, Kirk Brooks via 4D_Tech <

The reload thing is a deal on apps with an extensive startup process.



> Constants are meant to be used. If you do not re-initialise everything,
> you might have code built with previous constant values.
>
>
>
> --
Jim Dorrance
jim.dorra...@gmail.com
4...@dorrance.eu
www.4d.dorrance.eu

PS: If you know of anyone that needs an experienced 4D programmer to add
energy and experience to their team, please let me know. I have
experience in many areas. Reasonable rates. Remote or Paris only.
**
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: Custom comments: Lots of tips, more wanted!

2017-06-04 Thread Jim Dorrance via 4D_Tech
Re-loading constants. Run Menu, Restart Interpreted: Alt Command I.

Faster than finding a command and executing it.
-- 
Jim Dorrance
jim.dorra...@gmail.com
4...@dorrance.eu
www.4d.dorrance.eu

PS: If you know of anyone that needs an experienced 4D programmer to add
energy and experience to their team, please let me know. I have
experience in many areas. Reasonable rates. Remote or Paris only.
**
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: oObject and dynamic form variable

2017-05-21 Thread Jim Dorrance via 4D_Tech
Thanks to both of you... I should have known...


On Sun, May 21, 2017 at 8:22 PM, Arnaud de Montard via 4D_Tech <
4d_tech@lists.4d.com> wrote:

>
> > Le 21 mai 2017 à 19:51, Jim Dorrance via 4D_Tech <4d_tech@lists.4d.com>
> a écrit :
> >
> > Merci As a longint?
>
> No, I've just drawn a variable rect, and in properties named="object",
> type=none.
> Then I use it like this:
>   (object get pointer (named object;"object"))->:=$someObject_o  //write
>   $someObject_o:=object get pointer (named object;"object")->  //read
> In the display, I don't see nothing but it works.
>
> I must mention this app is not compiled, so in this context I'd add this
> on load:
>   $obj_p:=object get pointer (named object;"object")->
>   c_pointer($obj_p->)
>
> If all above fails, stringify into a text variable instead.
>
> --
> Arnaud de Montard
>
>
>
> **
> 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
> **
>



-- 
Jim Dorrance
jim.dorra...@gmail.com
4...@dorrance.eu
www.4d.dorrance.eu

PS: If you know of anyone that needs an experienced 4D programmer to add
energy and experience to their team, please let me know. I have
experience in many areas. Reasonable rates. Remote or Paris only.
**
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: oObject and dynamic form variable

2017-05-21 Thread Jim Dorrance via 4D_Tech
Merci As a longint?

On Sun, May 21, 2017 at 7:26 PM, Arnaud de Montard via 4D_Tech <
4d_tech@lists.4d.com> wrote:

>
> > Le 21 mai 2017 à 19:07, Jim Dorrance via 4D_Tech <4d_tech@lists.4d.com>
> a écrit :
> >
> > Hello,
> >
> > Does anybody now if it is possible to put an oObject in a dynamic form
> > variable?
>
> Yes, I remember I did it recently.
>
> --
> Arnaud de Montard
>
>
>
> **
> 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
> **




-- 
Jim Dorrance
jim.dorra...@gmail.com
4...@dorrance.eu
www.4d.dorrance.eu

PS: If you know of anyone that needs an experienced 4D programmer to add
energy and experience to their team, please let me know. I have
experience in many areas. Reasonable rates. Remote or Paris only.
**
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
**

oObject and dynamic form variable

2017-05-21 Thread Jim Dorrance via 4D_Tech
Hello,

Does anybody now if it is possible to put an oObject in a dynamic form
variable?

I want to reuse the contents of a local oObject outside of the scope of the
method that created it.

Thanks,

-- 
Jim Dorrance
jim.dorra...@gmail.com
4...@dorrance.eu
www.4d.dorrance.eu

PS: If you know of anyone that needs an experienced 4D programmer to add
energy and experience to their team, please let me know. I have
experience in many areas. Reasonable rates. Remote or Paris only.
**
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: Components, forms & menu bars

2017-04-27 Thread Jim Dorrance via 4D_Tech
Send the method name to the host subform the execute it in the subform?
**
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: Custom constants files: finding doubles

2017-04-20 Thread Jim Dorrance via 4D_Tech
Was the code usefull?


-- 
Jim Dorrance
jim.dorra...@gmail.com
4...@dorrance.eu
www.4d.dorrance.eu

PS: If you know of anyone that needs an experienced 4D programmer to add
energy and experience to their team, please let me know. I have
experience in many areas. Reasonable rates. Remote or Paris only.
**
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
**

Custom constants files: finding doubles

2017-04-20 Thread Jim Dorrance via 4D_Tech
Here is a small database that checks for constants doubles.

https://drive.google.com/drive/folders/0B8pBPbPwN9eERVVEOHNwT0dlTVk?usp=sharing

-- 
Jim Dorrance
jim.dorra...@gmail.com
4...@dorrance.eu
www.4d.dorrance.eu

PS: If you know of anyone that needs an experienced 4D programmer to add
energy and experience to their team, please let me know. I have
experience in many areas. Reasonable rates. Remote or Paris only.
**
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: Components: How do you reuse utility code?

2017-04-20 Thread Jim Dorrance via 4D_Tech
I prefix all methods shared with the host with an underscore so I can
easily see what I have shared.


> --
Jim Dorrance
jim.dorra...@gmail.com
4...@dorrance.eu
www.4d.dorrance.eu

PS: If you know of anyone that needs an experienced 4D programmer to add
energy and experience to their team, please let me know. I have
experience in many areas. Reasonable rates. Remote or Paris only.
**
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: Components and custom constants files

2017-04-19 Thread Jim Dorrance via 4D_Tech
I will try to find it tomorrow...


On Wed, Apr 19, 2017 at 2:10 PM, David Adams via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> On Wed, Apr 19, 2017 at 8:36 PM, Jim Dorrance via 4D_Tech <
> 4d_tech@lists.4d.com> wrote:
>
> > Check for duplicate constants. They really mess things up in a compiled
> DB.
> > I made a method that automatically dumps all constants from all xlf files
> > into an array and then checks for doubles.
> >
>
> That sounds like very good advice, thanks. And thanks to everyone for their
> quick suggestions and help. Jim, is there any chance that you would be
> willing to share your xlf to array code? I can write it, but it's a bit
> tedious. If you can't share it, thanks anyway for the suggestion.
> **
> 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
> **
>



-- 
Jim Dorrance
jim.dorra...@gmail.com
4...@dorrance.eu
www.4d.dorrance.eu

PS: If you know of anyone that needs an experienced 4D programmer to add
energy and experience to their team, please let me know. I have
experience in many areas. Reasonable rates. Remote or Paris only.
**
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: Components and custom constants files

2017-04-19 Thread Jim Dorrance via 4D_Tech
Check for duplicate constants. They really mess things up in a compiled DB.
I made a method that automatically dumps all constants from all xlf files
into an array and then checks for doubles.




-- 
Jim Dorrance
jim.dorra...@gmail.com
4...@dorrance.eu
www.4d.dorrance.eu

PS: If you know of anyone that needs an experienced 4D programmer to add
energy and experience to their team, please let me know. I have
experience in many areas. Reasonable rates. Remote or Paris only.
**
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: Components and custom constants files

2017-04-19 Thread Jim Dorrance via 4D_Tech
-- 
Jim Dorrance
jim.dorra...@gmail.com
4...@dorrance.eu
www.4d.dorrance.eu

PS: If you know of anyone that needs an experienced 4D programmer to add
energy and experience to their team, please let me know. I have
experience in many areas. Reasonable rates. Remote or Paris only.
**
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: Components and custom constants files

2017-04-18 Thread Jim Dorrance via 4D_Tech
I use constants in components all the time and I have never experienced
this problem. If you regenerate constants often, perhaps just to make a
minor spelling change, perhaps the modified constants are not tokenised.All
my constants start with 'k', so I do a search and replace of 'k' (case
sensitive) and replace with 'k'. That tokenises everything.

Also, if the component has been compiled and the constants are only used in
the component, this component code is executed on startup in the host db:

*If *(*_pgComponentIsCompiled_bGET *)

*_pgOnHostStartup *

*End if *

where *_pgOnHostStartup *deletes the constants file. That way the constants
are not visible in the host db.


On Wed, Apr 19, 2017 at 6:10 AM, David Adams via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> One more detail: No component code is being invoked. I removed all startup
> code in the host. No matter, you still get the error. Compiled only.
> **
> 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
> **
>



-- 
Jim Dorrance
jim.dorra...@gmail.com
4...@dorrance.eu
www.4d.dorrance.eu

PS: If you know of anyone that needs an experienced 4D programmer to add
energy and experience to their team, please let me know. I have
experience in many areas. Reasonable rates. Remote or Paris only.
**
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: Weird variable (non-)refresh issue

2017-03-15 Thread Jim Dorrance via 4D_Tech
Did you try: x:=x


Jim Dorrance
jim.dorra...@gmail.com
4...@dorrance.eu
www.4d.dorrance.eu

PS: If you know of anyone that needs an experienced 4D programmer to add
energy and experience to their team, please let me know. I have
experience in many areas. Reasonable rates. Remote or Paris only.
**
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: List Box Hidden rows array

2017-03-13 Thread Jim Dorrance via 4D_Tech
arrrg... v13 or v15

Thanks for the help

On Mon, Mar 13, 2017 at 2:32 PM, npdennis via 4D_Tech <4d_tech@lists.4d.com>
wrote:

> > On Mar 12, 2017, at 11:14 PM, Jim Dorrance via 4D_Tech <
> 4d_tech@lists.4d.com <mailto:4d_tech@lists.4d.com>> wrote:
> >
> > I would to use a dynamic form array as a ListBox hidden rows array. Is
> > there a way I can set this with code.
>
>
> You can with 4D v16 or one of the 4D v15r releases, but not in a 4D 15 dot
> release or before.
>
> So, if you are using 15.4 or earlier you would need to set a process
> variable in the hidden rows and use it.
>
>
> Neil
>
>
> --
> Neil Dennis
> 4D Developer since 1990
>
> GreaText - Designing Software for the Way You Work
> 716 East 1850 N
> North Ogden, UT 84414
>
> mailto:npden...@greatext.com
> http://www.greatext.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
> **




-- 
Jim Dorrance
jim.dorra...@gmail.com
4...@dorrance.eu
www.4d.dorrance.eu

PS: If you know of anyone that needs an experienced 4D programmer to add
energy and experience to their team, please let me know. I have
experience in many areas. Reasonable rates. Remote or Paris only.
**
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
**

List Box Hidden rows array

2017-03-12 Thread Jim Dorrance via 4D_Tech
I would to use a dynamic form array as a ListBox hidden rows array. Is
there a way I can set this with code.

Thanks,
Jim

-- 
Jim Dorrance
jim.dorra...@gmail.com
4...@dorrance.eu
www.4d.dorrance.eu

PS: If you know of anyone that needs an experienced 4D programmer to add
energy and experience to their team, please let me know. I have
experience in many areas. Reasonable rates. Remote or Paris only.
**
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: Force the execution of an object method

2017-03-12 Thread Jim Dorrance via 4D_Tech
Why in the object and not in the object method called from the form? The
form method has access to all the dynamic form variables, including the
form object initiating the call.

On Sun, Mar 12, 2017 at 5:46 PM, Foucauld Perotin via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> Hi,
>
> I am doing things by using CALL WORKER, and then reply by CALL FORM. Last
> june, you alreadu discussed here the possibility to have the form method
> being used then by using CALL PROCESS (Current Process). I wanted to do
> something like that, BUT I would like to do the end of the job in an object
> method, actually the same one that did the initial call, and object methods
> cannot get the event On Outside Call.
>
> Something might be possible with On Getting Focus, with a GOTO OBJECT
> before in the project method, but it does not seem to me to be really clean
> (if focus can only be on one single object, if the object has already the
> focus, etc.). I would not like to use POST EVENT as well. So, I would
> prefer to be able to force the "On Data Change" event for my object, for
> example.
>
> Any idea of how I could do that?
>
> Thanks!
>
> Foucauld Pérotin
>
>  Try again.
>  Fail again. Fail better.
>
>  Samuel Beckett
>
> **
> 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
> **




-- 
Jim Dorrance
jim.dorra...@gmail.com
4...@dorrance.eu
www.4d.dorrance.eu

PS: If you know of anyone that needs an experienced 4D programmer to add
energy and experience to their team, please let me know. I have
experience in many areas. Reasonable rates. Remote or Paris only.
**
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: Which rows are selected?

2017-03-10 Thread Jim Dorrance via 4D_Tech
A ListBox is a boolean array, with an element returning True representing a
selected rows.

On Fri, Mar 10, 2017 at 8:56 PM, bob.miller--- via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> Hi Everyone,
>
> Call it Friday, call it memory loss, but don't call it lack of effort.
> I've been scouring the docs looking for how, using an array-type listbox
> with the 'Selection Mode = Multiple' attribute set, how can I detect which
> rows are selected?
>
> It's going to be a big 'ah, duh!' moment, but I just can't find it.
>
> Thanks for the help -
>
>
> Bob Miller
> Chomerics, a division of Parker Hannifin Corporation
>
>
>
>
> **
> 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
> **




-- 
Jim Dorrance
jim.dorra...@gmail.com
4...@dorrance.eu
www.4d.dorrance.eu

PS: If you know of anyone that needs an experienced 4D programmer to add
energy and experience to their team, please let me know. I have
experience in many areas. Reasonable rates. Remote or Paris only.
**
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: Better variable names

2017-02-24 Thread Jim Dorrance via 4D_Tech
I hate working on other developer's code where I am expected to guess the
type by its use and context. It is a waste of my time and therefore a waste
of my client's money.

It is often possible to correct/optimise code without understanding the
context. I was a photographer in a previous life, and I often look for
variations in the 'look' of code to discover anomalies.

I think Module + Descriptor + Type is perfect for method names, but not for
variables.


On Fri, Feb 24, 2017 at 4:29 AM, David Adams via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> Here's one of those thoughts that I think to repost every few years.
>
>
> Of course, no one uses that particular format as it's use will later
> condemn you to the pits of perdition. Instead, people are probably using:
>
> Module + Descriptor + Type
>
> Like
>
> Customer_City_t
>
> --
Jim Dorrance
jim.dorra...@gmail.com
4...@dorrance.eu
www.4d.dorrance.eu

PS: If you know of anyone that needs an experienced 4D programmer to add
energy and experience to their team, please let me know. I have
experience in many areas. Reasonable rates. Remote or Paris only.
**
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
**