Re: 4D Compiler

2017-04-06 Thread Tim Nevels via 4D_Tech
> On Apr 6, 2017, at 7:52 PM, Lee Hinde wrote:
> 
> On Apr 6, 2017, at 3:09 PM, Tim Nevels via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
>> 
>> I wonder whatever happened to the original 4D Compiler writer David Hemmo?
> 
> David’s at Apple now.

I wonder what group he works in. You think he’s in the group that works on 
compilers, LLVM, Clang and all the super low level stuff?

>> When he wrote 4D Compiler back in 1990 I thought he was a programming god... 
> 
> So did ACIUS, given the original pricing.

I don’t remember the 4D Compiler 1.0 price. Was it $999?  I do remember that 
you got 4D Compiler on a floppy diskette that was a key disk you could not 
copy. I remember having to pass that disk around at the place I worked whenever 
anyone wanted to compile and it asked for the diskette.

Tim


Tim Nevels
Innovative Solutions
785-749-3444
timnev...@mac.com


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

Re: Preemptive execution question

2017-04-06 Thread John DeSoi via 4D_Tech

> -- You've got a preemptive thread.
> -- It can't run a variety of commands.
> -- You push over some illegal code via CALL WORKER.
> -- 4D's is meant to EXECUTE the cooperative (illegal) code in the
> preemptive (multi-core) context.
> 
> What happens? Not what I feared, not what I expected, not what I want, and
> not what's documented.

Please tell us. Inquiring minds want to know.

> I'm curious what a) people thing should happen, b) what people want to have
> happen), and c) what other people see does happen.

I want it to work unless a non-preventive command is executed. Then it should 
crash with an informative error message :).

Personally, I thought the design was wrong to prevent code from compiling. We 
have plenty of documented cases that are not allowed and if you ignore them 
your application will crash. But it is easy enough to write one method that 
works in different contexts that does the right thing. The preemption 
restrictions require maintaining duplicate code where you have functionality 
that needs to work in preemptive and non-preemptive contexts.

John DeSoi, Ph.D.

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

Preemptive execution question

2017-04-06 Thread David Adams via 4D_Tech
I've been meaning to sit down and try this for a month...and now I have.

One of the things that people seem to be excited about with CALL WORKER is
the ability to run on something other than the main core. I'm not as
excited about this as some, but I'm ready to be convinced. It strikes me as
an excellent feature for a specific subset of problems where the benefits
will really shine...and not worth the effort for most things.

But anyway, that's just my opinion and not the question. Here's the setup
for the question:

* You can run a worker in cooperative (traditional, single-core) mode or
preemptive (multi-core) mode.

* The difference is in how you _start_ the worker.

* Preemptive threads can't access a lot of features because of OS
limitations.

* Therefore, it's illegal to call various commands for execution in a
preemptive thread.

I've got no problem with any of that and, as far as I can tell, 4D have
done a pretty darn good job of giving us access to multi-core programming.

Still getting to the question. Right, so, how do you coordinate UI with a
headless preemptive worker? CALL FORM and CALL WORKER. I guess this is even
the motivation behind these commands in the first place. Now we get to the
question: Pushing illegal code to a preemptive worker.

CALL FORM and CALL WORKER don't send "messages", they send blocks of code
for execution in an existing context. They're remote procedure calls.
There's no broker to intercept or inspect the code that we can see or
influence, 4D gets the call, appends the code to the call chain in the
target context and then runs the code. This isn't exactly how it's
described in the manuals, but that's how it's designed, how it works, and a
different way that it all _could_ be described in the manuals.

Okay, now this gets to the question about illegal code. When you compile,
4D's compiler checks the call chain for a preemptive method and verifies
that there is no chance at all of an illegal call coming through. So, no
open windows, etc. You can't even get the database to compile if there's
_anything_ wrong. I think 4D's done a good job with this and have no
complaints about this approach...but the compiler can only see static code.
So, it can see all of the code at rest, but none of the code at runtime.
What prevents you from pushing over some illegal code with CALL WORKER?
CALL WORKER appends that code to the worker and runs it *in its context.*
In other words:

-- You've got a preemptive thread.
-- It can't run a variety of commands.
-- You push over some illegal code via CALL WORKER.
-- 4D's is meant to EXECUTE the cooperative (illegal) code in the
preemptive (multi-core) context.

What happens? Not what I feared, not what I expected, not what I want, and
not what's documented.

I'm curious what a) people thing should happen, b) what people want to have
happen), and c) what other people see does happen.
**
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: Listbox row select

2017-04-06 Thread Keisuke Miyako via 4D_Tech
in general, selected list items are grey when inactive (does not have focus)

> 2017/04/07 8:38、Sujit Shah via 4D_Tech <4d_tech@lists.4d.com> のメール:
>
> I am getting 2 different row highlight (colors)
>
> - When row is selected indirectly LISTBOX SELECT ROW (grey)
> - When row is directly clicked (blue)




**
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 Compiler

2017-04-06 Thread Kirk Brooks via 4D_Tech
Tim,
That's probably an inflation-adjusted number. Which makes the first 128k
Mac I bought in April of '84 the equivalent of about $6,700 now. Still not
the most expensive computer I've personally bought - that was a Mac II with
an 80mb drive and I don't remember how much RAM. 4MB of RAM back then was a
lot of money.

I remember doing 4D on an SE too. Jeesh.

On Thu, Apr 6, 2017 at 3:09 PM, Tim Nevels via 4D_Tech <4d_tech@lists.4d.com
> wrote:

> I just checked wikipedia and it says the Mac SE/30 with 4MB or RAM and
> 80MB hard drive was $6,569! I don’t remember them being that expensive.
> Makes the machines today look dirt cheap!
>

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

Listbox row select

2017-04-06 Thread Sujit Shah via 4D_Tech
I am getting 2 different row highlight (colors)

- When row is selected indirectly LISTBOX SELECT ROW (grey)
- When row is directly clicked (blue)

Once it is blue it remains that way.

Wondering is this is a feature or something wrong in my code.



-- 

xxx
"There must be ingenuity as well as intention, strategy as well as
strength. "
**
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 Compiler

2017-04-06 Thread Lee Hinde via 4D_Tech
On Apr 6, 2017, at 3:09 PM, Tim Nevels via 4D_Tech <4d_tech@lists.4d.com> wrote:
> 
> I wonder whatever happened to the original 4D Compiler writer David Hemmo?
> 


David’s at Apple now.


> When he wrote 4D Compiler back in 1990 I thought he was a programming god... 


So did ACIUS, given the original pricing.


**
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 Compiler

2017-04-06 Thread Douglas von Roeder via 4D_Tech
Tim:

Great info - many thanks for the explanation.

"I just checked wikipedia and it says the Mac SE/30 with 4MB or RAM and
80MB hard drive was $6,569! I don’t remember them being that expensive.
Makes the machines today look dirt cheap!"

The SE/30 was a great little machine. The PDS card had expansions slots. I
don't think I used an accelerator card but I know I had an ethernet card
and a video card for my 19" (black and white) CRT monitor.

The $6k figure sounds like current dollars but, yes, the Mac was an
expensive computer to purchase though the lifecycle cost made it a no
brainer purchase.  In the past few days, we've seen postings from folks who
are using laptops that are 7+ years old that are still being used to write
software.


--
Douglas von Roeder
949-336-2902

On Thu, Apr 6, 2017 at 3:09 PM, Tim Nevels via 4D_Tech <4d_tech@lists.4d.com
> wrote:

> On Apr 6, 2017, at 4:43 PM, Douglas von Roeder wrote:
>
> > A couple of thoughts on this…
> >
> > I couldn't find this documented but 4D's compiler does three "passes"
> > through the source code (when you're not typing all of your variables).
> > IIRC, the compiler displays what it's doing for each pass but newer
> > versions of 4D + modern hardware are so fast that I haven't seen the
> > "label" appear in the compiler window.
> >
> > For the sake of argument, lets' say that the three passes are something
> > like syntax, declarations, and then parameter type matching. There must
> be
> > no errors in one phase before the compiler will move on to the next.
> > Perhaps what you're seeing is that as you resolve errors during the
> syntax
> > phase, those changes engender issues within that same phase.
> >
> > Once the issues in the syntax phase are resolved, the compiler will run
> the
> > declarations phase and will report those errors.
> >
> > Rinse, lather, repeat for the next phase.
> >
> >
> > Second issue is that 4D's compiler used to scan methods sequentially,
> based
> > on ID, and would check parameters based on the parameter list that exists
> > for the first instance of a method.
> >
> > This was my observation of the early versions of the compiler so it could
> > be observer error/bias and 4D could have completely revamped how the
> > compiler functions. Also, in the 25 years or so since I made this
> > observation, I've never gone back and checked. :-)
> >
> > Having just done a 2004 to 15 conversion, I saw the same behavior you're
> > experiencing and it was *not* a pleasant feeling. Most of the time I
> > compile it really is just a "spell check", so it was unnerving to
> compile -
> > error fix - compile and get more errors - error fix - compile and get
> > different errors. No fun at all but an inherent part of the process of
> > "getting to done".
>
> If you are letting 4D do the variable typing then the first phase is to
> scan every method and create a list of all variables and their types. If
> you are typing all variables then it first looks at the “Compiler…” methods
> for variable typing.
>
> It also has to type all parameters for methods. So if you let 4D do all
> the typing it has to scan all methods looking for $1, $2, etc and types
> them. If you are doing the typing then it gets this info from “Compiler…”
> methods.
>
> Then you have local variables to deal with. Could be it builds this typing
> list when it is scanning all the methods. Could be during all this typing
> scanning it does some syntax checking along the way instead of waiting
> until the last step.
>
> I think the 4D Compiler is very optimized. As it is processing as soon as
> an uncertain situation occurs it bails. No need to scan the whole structure
> every time if an uncertain situation could have cascading effects. So
> that’s why when you fix some errors and compile again you can get a whole
> new set of errors you didn’t get the first time. And this explains why
> sometimes the number of errors increase with each compile instead of go
> down.
>
> I’m sure it would be extremely difficult to have the compiler show every
> possible error when it compiles each time. I think it is doing the best
> that it can do and as they say “it is what it is”.
>
> I wonder whatever happened to the original 4D Compiler writer David Hemmo?
>
> When he wrote 4D Compiler back in 1990 I thought he was a programming god
> to be able to build all that machine code and hook it all together to make
> something that actually worked. And then to update 4D Compiler to support
> 68K machine code, PPC machine code, Intel machine code, and variances
> between Mac OS and Windows OS. To me that is some serious programming skill
> and ability.
>
> I remember the first time I ran 4D Compiler 1.0 on a structure. It had
> over 4,000 errors! I worked all day to get that number down to the
> hundreds. A lot of code had to be rewritten due to variable retyping
> issues. I probably tried to compile 20 times that day. But by the second
> day I had a compiled structure that ran on my Mac SE/30.

Re: 4D Compiler

2017-04-06 Thread Tim Nevels via 4D_Tech
On Apr 6, 2017, at 4:43 PM, Douglas von Roeder wrote:

> A couple of thoughts on this…
> 
> I couldn't find this documented but 4D's compiler does three "passes"
> through the source code (when you're not typing all of your variables).
> IIRC, the compiler displays what it's doing for each pass but newer
> versions of 4D + modern hardware are so fast that I haven't seen the
> "label" appear in the compiler window.
> 
> For the sake of argument, lets' say that the three passes are something
> like syntax, declarations, and then parameter type matching. There must be
> no errors in one phase before the compiler will move on to the next.
> Perhaps what you're seeing is that as you resolve errors during the syntax
> phase, those changes engender issues within that same phase.
> 
> Once the issues in the syntax phase are resolved, the compiler will run the
> declarations phase and will report those errors.
> 
> Rinse, lather, repeat for the next phase.
> 
> 
> Second issue is that 4D's compiler used to scan methods sequentially, based
> on ID, and would check parameters based on the parameter list that exists
> for the first instance of a method.
> 
> This was my observation of the early versions of the compiler so it could
> be observer error/bias and 4D could have completely revamped how the
> compiler functions. Also, in the 25 years or so since I made this
> observation, I've never gone back and checked. :-)
> 
> Having just done a 2004 to 15 conversion, I saw the same behavior you're
> experiencing and it was *not* a pleasant feeling. Most of the time I
> compile it really is just a "spell check", so it was unnerving to compile -
> error fix - compile and get more errors - error fix - compile and get
> different errors. No fun at all but an inherent part of the process of
> "getting to done".

If you are letting 4D do the variable typing then the first phase is to scan 
every method and create a list of all variables and their types. If you are 
typing all variables then it first looks at the “Compiler…” methods for 
variable typing.

It also has to type all parameters for methods. So if you let 4D do all the 
typing it has to scan all methods looking for $1, $2, etc and types them. If 
you are doing the typing then it gets this info from “Compiler…” methods. 

Then you have local variables to deal with. Could be it builds this typing list 
when it is scanning all the methods. Could be during all this typing scanning 
it does some syntax checking along the way instead of waiting until the last 
step. 

I think the 4D Compiler is very optimized. As it is processing as soon as an 
uncertain situation occurs it bails. No need to scan the whole structure every 
time if an uncertain situation could have cascading effects. So that’s why when 
you fix some errors and compile again you can get a whole new set of errors you 
didn’t get the first time. And this explains why sometimes the number of errors 
increase with each compile instead of go down. 

I’m sure it would be extremely difficult to have the compiler show every 
possible error when it compiles each time. I think it is doing the best that it 
can do and as they say “it is what it is”. 

I wonder whatever happened to the original 4D Compiler writer David Hemmo?

When he wrote 4D Compiler back in 1990 I thought he was a programming god to be 
able to build all that machine code and hook it all together to make something 
that actually worked. And then to update 4D Compiler to support 68K machine 
code, PPC machine code, Intel machine code, and variances between Mac OS and 
Windows OS. To me that is some serious programming skill and ability.

I remember the first time I ran 4D Compiler 1.0 on a structure. It had over 
4,000 errors! I worked all day to get that number down to the hundreds. A lot 
of code had to be rewritten due to variable retyping issues. I probably tried 
to compile 20 times that day. But by the second day I had a compiled structure 
that ran on my Mac SE/30. 

I just checked wikipedia and it says the Mac SE/30 with 4MB or RAM and 80MB 
hard drive was $6,569! I don’t remember them being that expensive. Makes the 
machines today look dirt cheap!

Tim


Tim Nevels
Innovative Solutions
785-749-3444
timnev...@mac.com


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

RE: 4D Server Crashes When Tracing Buggy Web Connection Code

2017-04-06 Thread Joshua Hunter via 4D_Tech
The web server process is very sensitive to any bugs. We ran into the exact 
problem you are having. Our web team was suddenly very unpopular with the other 
developers. Any bug and the whole app would crash.

We no longer run any code on the web server process on 4D server. Instead we 
run a client application that acts as a web server. This works pretty well.

The code that gets traced is the code on the machine that handled the request. 
So if you make the request to your web server client application it will trace 
there. The web server on client can run on the same physical server as your 4D 
server so long as they aren't both handling requests on the same port.

The biggest hurdle we had was getting the correct 4D licensing. There was a 
special license to make the client run the web server. This may be made more 
difficult because we are an OEM.

Joshua Hunter
jos...@dwdev.com
(425)673-1974
www.dwdev.com
Dataworks Development, Inc.
Providing secure and configurable data management solutions for research and 
clinical labs since 1987.


-Original Message-
From: 4D_Tech [mailto:4d_tech-boun...@lists.4d.com] On Behalf Of Sannyasin 
Siddhanathaswami via 4D_Tech
Sent: Thursday, April 6, 2017 2:14 PM
To: 4D iNug Tech
Cc: Sannyasin Siddhanathaswami
Subject: 4D Server Crashes When Tracing Buggy Web Connection Code

Aloha,

If I trace On Web Connection code on 4D Server v15.3 Mac, and I goof and 
reference an out of index array (I know I’m the first to ever do that), our 
server crashes. It just quits to the Finder, no error message nothing. I view 
the trace via screen sharing to the server machine.

This is disastrous when other people are using 4D!!

Have others run into this? What’s the best way to debug On Web Connection code 
without crashing the server?

Maybe starting the webserver on 4D client? But how does adding a “Trace" On Web 
Connection code work? Won’t it still trace on the 4D Server?

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

RE: Copy out of read only variable/field

2017-04-06 Thread Dennis, Neil via 4D_Tech
> I see that this can set this on the form, but if I toggle the enterability
> on and off via code (Object Set Enterable) it seem lose the focusable 
> setting.\

Never mind, this is not a problem.

Neil





--

Privacy Disclaimer: This message contains confidential information and is 
intended only for the named addressee. If you are not the named addressee you 
should not disseminate, distribute or copy this email. Please delete this email 
from your system and notify the sender immediately by replying to this email.  
If you are not the intended recipient you are notified that disclosing, 
copying, distributing or taking any action in reliance on the contents of this 
information is strictly prohibited.

The Alternative Investments division of UMB Fund Services provides a full range 
of services to hedge funds, funds of funds and private equity funds.  Any tax 
advice in this communication is not intended to be used, and cannot be used, by 
a client or any other person or entity for the purpose of (a) avoiding 
penalties that may be imposed on any taxpayer or (b) promoting, marketing, or 
recommending to another party any matter addressed herein.
**
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: Copy out of read only variable/field

2017-04-06 Thread Dennis, Neil via 4D_Tech
> you set the field to non-enterable+focusable.

That is what I was looking for, can the focusable setting be set via code?
I see that this can set this on the form, but if I toggle the enterability on 
and off via code (Object Set Enterable) it seem lose the focusable setting.

Neil







--

Privacy Disclaimer: This message contains confidential information and is 
intended only for the named addressee. If you are not the named addressee you 
should not disseminate, distribute or copy this email. Please delete this email 
from your system and notify the sender immediately by replying to this email.  
If you are not the intended recipient you are notified that disclosing, 
copying, distributing or taking any action in reliance on the contents of this 
information is strictly prohibited.

The Alternative Investments division of UMB Fund Services provides a full range 
of services to hedge funds, funds of funds and private equity funds.  Any tax 
advice in this communication is not intended to be used, and cannot be used, by 
a client or any other person or entity for the purpose of (a) avoiding 
penalties that may be imposed on any taxpayer or (b) promoting, marketing, or 
recommending to another party any matter addressed herein.
**
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: Copy out of read only variable/field

2017-04-06 Thread Chip Scheide via 4D_Tech
display - variables - Enterable

- On Load -- copy field data to variable
- On Data Change -- copy field data back into variables

I do this with a method that, if one variable is changed, it copies all 
data involved (about 10 fields/variable). No trying to specify which 
variable was changed, just replace it all with the original data.


On Thu, 6 Apr 2017 14:28:45 -0700, Kirk Brooks via 4D_Tech wrote:
> That would be cool - but the only way I've been able to do it to with a
> transparent button on top.
> 
> On Thu, Apr 6, 2017 at 2:16 PM, Dennis, Neil via 4D_Tech <
> 4d_tech@lists.4d.com> wrote:
> 
>> I thought there was a setting on a read only variable or field to allow
>> selecting and copying data but not pasting or changing. I can't seem to
>> figure it out. In my mind it was Object set enabled true and Object set
>> enterable false. However I have tried every combination but none seems to
>> have the desired effect.
>> 
>> I'm questioning if this is possible? Anyone?
>> 
>> Neil
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> --
>> 
>> 
>> Privacy Disclaimer: This message contains confidential information and is
>> intended only for the named addressee. If you are not the named addressee
>> you should not disseminate, distribute or copy this email. Please delete
>> this email from your system and notify the sender immediately by replying
>> to this email.  If you are not the intended recipient you are notified that
>> disclosing, copying, distributing or taking any action in reliance on the
>> contents of this information is strictly prohibited.
>> 
>> The Alternative Investments division of UMB Fund Services provides a full
>> range of services to hedge funds, funds of funds and private equity funds.
>> Any tax advice in this communication is not intended to be used, and cannot
>> be used, by a client or any other person or entity for the purpose of (a)
>> avoiding penalties that may be imposed on any taxpayer or (b) promoting,
>> marketing, or recommending to another party any matter addressed herein.
>> **
>> 4D Internet Users Group (4D iNUG)
>> FAQ:  http://lists.4d.com/faqnug.html
>> Archive:  http://lists.4d.com/archives.html
>> Options: http://lists.4d.com/mailman/options/4d_tech
>> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
>> **
> 
> 
> 
> 
> -- 
> Kirk Brooks
> San Francisco, CA
> ===
> 
> *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
> **
---
Gas is for washing parts
Alcohol is for drinkin'
Nitromethane is for racing 
**
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: Copy out of read only variable/field

2017-04-06 Thread Keisuke Miyako via 4D_Tech
you set the field to non-enterable+focusable.

2017/04/07 6:16、Dennis, Neil via 4D_Tech 
<4d_tech@lists.4d.com> のメール:
I'm questioning if this is possible? Anyone?



**
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: Copy out of read only variable/field

2017-04-06 Thread Kirk Brooks via 4D_Tech
That would be cool - but the only way I've been able to do it to with a
transparent button on top.

On Thu, Apr 6, 2017 at 2:16 PM, Dennis, Neil via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> I thought there was a setting on a read only variable or field to allow
> selecting and copying data but not pasting or changing. I can't seem to
> figure it out. In my mind it was Object set enabled true and Object set
> enterable false. However I have tried every combination but none seems to
> have the desired effect.
>
> I'm questioning if this is possible? Anyone?
>
> Neil
>
>
>
>
>
>
>
> --
>
>
> Privacy Disclaimer: This message contains confidential information and is
> intended only for the named addressee. If you are not the named addressee
> you should not disseminate, distribute or copy this email. Please delete
> this email from your system and notify the sender immediately by replying
> to this email.  If you are not the intended recipient you are notified that
> disclosing, copying, distributing or taking any action in reliance on the
> contents of this information is strictly prohibited.
>
> The Alternative Investments division of UMB Fund Services provides a full
> range of services to hedge funds, funds of funds and private equity funds.
> Any tax advice in this communication is not intended to be used, and cannot
> be used, by a client or any other person or entity for the purpose of (a)
> avoiding penalties that may be imposed on any taxpayer or (b) promoting,
> marketing, or recommending to another party any matter addressed herein.
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: http://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **




-- 
Kirk Brooks
San Francisco, CA
===

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

Copy out of read only variable/field

2017-04-06 Thread Dennis, Neil via 4D_Tech
I thought there was a setting on a read only variable or field to allow 
selecting and copying data but not pasting or changing. I can't seem to figure 
it out. In my mind it was Object set enabled true and Object set enterable 
false. However I have tried every combination but none seems to have the 
desired effect.

I'm questioning if this is possible? Anyone?

Neil







--


Privacy Disclaimer: This message contains confidential information and is 
intended only for the named addressee. If you are not the named addressee you 
should not disseminate, distribute or copy this email. Please delete this email 
from your system and notify the sender immediately by replying to this email.  
If you are not the intended recipient you are notified that disclosing, 
copying, distributing or taking any action in reliance on the contents of this 
information is strictly prohibited.

The Alternative Investments division of UMB Fund Services provides a full range 
of services to hedge funds, funds of funds and private equity funds.  Any tax 
advice in this communication is not intended to be used, and cannot be used, by 
a client or any other person or entity for the purpose of (a) avoiding 
penalties that may be imposed on any taxpayer or (b) promoting, marketing, or 
recommending to another party any matter addressed herein.
**
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 Server Crashes When Tracing Buggy Web Connection Code

2017-04-06 Thread Sannyasin Siddhanathaswami via 4D_Tech
Aloha,

If I trace On Web Connection code on 4D Server v15.3 Mac, and I goof and 
reference an out of index array (I know I’m the first to ever do that), our 
server crashes. It just quits to the Finder, no error message nothing. I view 
the trace via screen sharing to the server machine.

This is disastrous when other people are using 4D!!

Have others run into this? What’s the best way to debug On Web Connection code 
without crashing the server?

Maybe starting the webserver on 4D client? But how does adding a “Trace" On Web 
Connection code work? Won’t it still trace on the 4D Server?

Sannyasin Siddhanathaswami
**
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 Compiler

2017-04-06 Thread Douglas von Roeder via 4D_Tech
Nigel:

A couple of thoughts on this…

I couldn't find this documented but 4D's compiler does three "passes"
through the source code (when you're not typing all of your variables).
IIRC, the compiler displays what it's doing for each pass but newer
versions of 4D + modern hardware are so fast that I haven't seen the
"label" appear in the compiler window.

For the sake of argument, lets' say that the three passes are something
like syntax, declarations, and then parameter type matching. There must be
no errors in one phase before the compiler will move on to the next.
Perhaps what you're seeing is that as you resolve errors during the syntax
phase, those changes engender issues within that same phase.

Once the issues in the syntax phase are resolved, the compiler will run the
declarations phase and will report those errors.

Rinse, lather, repeat for the next phase.


Second issue is that 4D's compiler used to scan methods sequentially, based
on ID, and would check parameters based on the parameter list that exists
for the first instance of a method.

This was my observation of the early versions of the compiler so it could
be observer error/bias and 4D could have completely revamped how the
compiler functions. Also, in the 25 years or so since I made this
observation, I've never gone back and checked. :-)

Having just done a 2004 to 15 conversion, I saw the same behavior you're
experiencing and it was *not* a pleasant feeling. Most of the time I
compile it really is just a "spell check", so it was unnerving to compile -
error fix - compile and get more errors - error fix - compile and get
different errors. No fun at all but an inherent part of the process of
"getting to done".



--
Douglas von Roeder
949-336-2902

On Wed, Apr 5, 2017 at 1:56 AM, Nigel Greenlee via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> David
>
> Thanks for the insight. I think i might try that-day 2 and half already of
> this! Hopefully the compile with ‘all vars are declared should show me what
> is not declared(!)…i would love to be able to run my code(which i spoke
> about on here) that now auto sets the declarations of variables at the top
> of methods and declares everything that does not comply with the naming
> convention and is not declared as //C_UNKNOWN..but alas not much naming
> convention in play. I will try your re-tokenize code shortly.
>
> My next ‘side task’(now that i have my updated code repository
> working-although not installed on the system i am talking about here yet)
> is to write something that will report repeating methods-methods and
> scripts that are identical or near identical, and i think as part of that I
> will get it to report if there are invalid method names in new process(I
> find it annoying that ‘find unused methods’ shows any methods called only
> in new process or from a menu as uncalled)
>
>  As with most people my own code never assumes parameters these days-with
> all vars passed put into locals which really helps with parameter checking
> in the code-and very few vars not passed(so a big reduction in process vars
> and virtually no interprocess)..but we are someway from even starting on
> that here
>
> I will go vote..
>
> Nigel Greenlee
>
> > On 4 Apr 2017, at 22:58, David Adams via 4D_Tech <4d_tech@lists.4d.com>
> wrote:
> >
> > Nigel,
> >
> > The Compiler changed some versions back and no longer detects all error
> sin
> > one pass...at least in certain situations. A few tips and things to look
> > out for:
> >
> > * If you've got a missing method, the Compiler usually stops reporting
> > errors, even if there are multiple cases of the problem.
> >
> > * Sometimes, code doesn't seem to be scanned. I use a method to
> retokenize
> > all methods (pasted below) which helps. Note that you get an error on
> this
> > most of the time when the method tries to retokenize itself.
> >
> > * If you compile with 'all variables are typed ' (and you are likely to
> > find more genuine errors this way), then periodically do a syntax check
> > with 'type the variables.' If you've got inconsistent declarations, this
> > can turn them up.
> >
> > There are still a number of things that the compiler won't do - even in
> V16:
> >
> > * Check parameter list lengths and detect extra params in some cases.
> >
> > * Check parameter list lengths and detect missing params in any case.
> > (There's no syntax to declare a method parameter as optional in 4D.)
> >
> > * Check method name references, like with New process, ON ERR CALL, etc.
> > There's also still no way to declare that a parameter is a method
> reference.
> >
> > I've already got a feature request in at forums.4d.fr for these
> > improvements. If you like these ideas, or have related suggestions,
> please
> > comment and vote here:
> >
> > Compiler/Typing Improvements: Detect some runtime errors in advance
> > http://forums.4d.fr/Post/EN/19107688/1/19107689
> >
> > I have to say, I've got zero evidence to make be believe that the forum
> > voting 

Re: OffsetCursor / Highlight in Dialog in 4D v13 OS X 10.12

2017-04-06 Thread Douglas von Roeder via 4D_Tech
Jim:

Working in a 13.5 (Windows) system, I've seen something similar in some
fields - when the inserting point enters the field, the bottom few pixels
may be truncated or it's offset from the left side of the field mask by one
or two pixels. This issue made it, at times, hard to spot the flashing
cursor (not to be confused with "the cursing flasher") but, other than
that, it's been innocuous.


--
Douglas von Roeder
949-336-2902

On Thu, Apr 6, 2017 at 7:14 AM, Jim Medlen via 4D_Tech <4d_tech@lists.4d.com
> wrote:

>
>
> In 4D v13.6 running on OS X 10.12 there is an odd visual behavior with the
> REQUEST dialog.
>
> The cursor in the dialog is visually offset by approximately two character
> spaces and if the
> text is highlighted the Highlight color is shifted to the right as well.
>
> Has anyone else seen this and is there a work around?
>
> I am in the process of upgrading from v13 but was wondering if there was a
> work around
> until the upgrade is completed.
>
>
> Thanks,
>
> Jim Medlen
> Computer & Information Systems
> Functional Devices, Inc.
> j.med...@functionaldevices.com
> phone (765) 883-5538 x 428
> fax (765) 883-4262
> http://www.functionaldevices.com
>
> This email was transmitted on 100 percent recycled electrons
>
>
>
>
> **
> 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
**

OffsetCursor / Highlight in Dialog in 4D v13 OS X 10.12

2017-04-06 Thread Jim Medlen via 4D_Tech


In 4D v13.6 running on OS X 10.12 there is an odd visual behavior with the
REQUEST dialog.

The cursor in the dialog is visually offset by approximately two character
spaces and if the
text is highlighted the Highlight color is shifted to the right as well.

Has anyone else seen this and is there a work around?

I am in the process of upgrading from v13 but was wondering if there was a
work around
until the upgrade is completed.


Thanks,

Jim Medlen
Computer & Information Systems
Functional Devices, Inc.
j.med...@functionaldevices.com
phone (765) 883-5538 x 428
fax (765) 883-4262
http://www.functionaldevices.com

This email was transmitted on 100 percent recycled electrons




**
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 World Tour - Go!

2017-04-06 Thread bob.miller--- via 4D_Tech
Hi Everyone,

I'll pitch in here, too - I attended the World Tour in Chicago earlier 
this week (yeah, I live in Boston where it is also offered, but that's 
another story).  I was impressed with the amount of preparation the 4D 
team did for the tour, with many good examples on the USB key and good, 
practical presentations.

I got a lot out of the demo on the use of subforms and how they have their 
separate 'scope' - the idea of modular form design, reusing various bits 
by using subforms - is a game changer for me.

Also JPR's commentary on what's coming and what you should do now to get 
ready for it was illuminating: get on the CALL FORM and CALL worker 
bandwagon, sensibly prepare for 64 bit, start getting rid of interprocess 
variables and MODIFY RECORD, etc.  JPR always has good insights into what 
you should be doing now to make life better later.

The second day to me was worth the money with just the demo database that 
showed how to use objects to create user-created "fields".  There's a lot 
of new good stuff in this realm, such as being able to query within an 
objects contents and such.  If you are not using objects yet, or even if 
you are, this is a great day of learning.

So I can recommend from my own experience that your time will be well 
spent.  Go when it is in your area.  You get a USB key for each day that 
is loaded with stuff, including a 42 page "Moving to v16" manual written 
by JPR. 

Hope this helps some folks!


Bob Miler
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
**

4D Job Posting

2017-04-06 Thread Pierce, Terry K via 4D_Tech
For anyone who might be interested:


https://uab.taleo.net/careersection/jobdetail.ftl?job=T45087=en


—
Terry Pierce
Information Systems Manager II
UAB Department of Occupational Health & Safety
o205.975.8671 | m205.224.7696 | tpie...@uab.edu
www.uab.edu/ohs

**
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: Project Method not found in Quick Report Editor

2017-04-06 Thread Keisuke Miyako via 4D_Tech
did you call

set allowed methods?



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

Project Method not found in Quick Report Editor

2017-04-06 Thread John Baughman via 4D_Tech
I create a simple method to use with the Quick Report Editor. I can pick the 
method from the command list in the editor for one of my columns, but when I 
run the report I get an error saying that “Project method not found”. Am I 
forgetting something?

Thanks, 

John


**
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 and CALL WORKER ideas (Was: 4D World Tour - Get off the fence)

2017-04-06 Thread David Adams via 4D_Tech
Jeffrey,

Thanks for the note on subforms, that's good to hear. The last time I
looked at them I found little in the docs and thought that it might be an
orphaned features. Now I see that there are several pages in the Design and
Language manuals. Sounds like it's time for another look, I certainly like
the concept.
**
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: Migrating Tables with Relations Between Structures

2017-04-06 Thread Peter Jakobsson via 4D_Tech

Many thanks Miyako !

I’ll look into both of those approaches. Very promising.

Peter

On 6 Apr 2017, at 02:37, Keisuke Miyako via 4D_Tech <4d_tech@lists.4d.com> 
wrote:

> when you copy multiple tables in the structure editor,
> you get the table as well as the relation.
> 
> pasting it back to the structure editor removes all ancillaries such as 
> indexes and links,
> but the plugin entry-point allows you to re-create them.
> 
> https://github.com/miyako/4d-plugin-structure-access
> 
> the IMPORT STRUCTURE command is also capable of restoring relations, as well 
> as the indexes.
> (the UI does not show bold at first but they are properly set. just re-open 
> the database)
> 
> http://doc.4d.com/4Dv16/4D/16/IMPORT-STRUCTURE.301-3036688.en.html
> 
> 
> 
> 
> **
> 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
**