Re: v13 - compiled component - typing conflict

2017-12-11 Thread Chip Scheide via 4D_Tech
that is what I do with dynamic list boxes too.
In this case the listbox is created/defined in the design environment

BUT... you just had me think - maybe... the column is NOT defined as a picture 
array.. and interpretedly it is being changed, but it wont change compiled...

I cant check now, but will do so in the morning

THANKS!

> 
>> Le 11 déc. 2017 à 23:32, Chip Scheide via 4D_Tech 
>> <4d_tech@lists.4d.com> a écrit :
>> 
>> When I execute the form from a host (or from the component), compiled, 
>> I get runtime error:
>>  Argument types are incompatible
> 
> Hi Chip, 
> schematically, I type array listbox columns like this:
> 
> On load 
>  $arr_p:=Object get pointer(named object;"Column1")
>  array picture($arr_p->;0)
>  $arr_p:=Object get pointer(named object;"Column2")
>  array text($arr_p->;0)
> 
> etc. 
> 
> I don't remember if it works in v13, but I suppose it should. 

Hell is other people 
 Jean-Paul Sartre
**
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: v13 - compiled component - typing conflict

2017-12-11 Thread Arnaud de Montard via 4D_Tech

> Le 11 déc. 2017 à 23:32, Chip Scheide via 4D_Tech <4d_tech@lists.4d.com> a 
> écrit :
> 
> When I execute the form from a host (or from the component), compiled, 
> I get runtime error:
>  Argument types are incompatible

Hi Chip, 
schematically, I type array listbox columns like this:

On load 
 $arr_p:=Object get pointer(named object;"Column1")
 array picture($arr_p->;0)
 $arr_p:=Object get pointer(named object;"Column2")
 array text($arr_p->;0)

etc. 

I don't remember if it works in v13, but I suppose it should. 

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

v13 - compiled component - typing conflict

2017-12-11 Thread Chip Scheide via 4D_Tech
I have a component which has a form with an array listbox,
the listbox is defined in the design environment and has 4 columns.
1 column (the first) is a picture, the other 3 are text.

When I execute the form from the component, interpretedly everything is 
fine.
When I execute the form from a host, interpretedly, everything is fine.
When I execute the form from a host (or from the component), compiled, 
I get runtime error:
   Argument types are incompatible


The line of code that is failing is : 
APPEND TO ARRAY(aptr_Column_Vars{l_Pic_Column}->;$Pic_Pointer->)

-  aptr_Column_Vars - array of pointers to the listbox columns -- 
populated by 'get listbox arrays'
-  l_Pic_Column - is a (component) process variable which holds the 
longint value of the column which is a picture column; in this specific 
instance = 1
-  $Pic_Pointer - is a pointer to a picture variable, loaded from the 
picture library, the picture is about 700 bytes.

In the excution of the code, the current state is:
- Form with listbox is open.
- listbox is displayed, but has NO rows.
- The action occurring when I get the error is a Drag-n-Drop of a file 
onto the list box. In an attempt to populate the listbox with the 
file(s)/folder(s) being dropped.
- The picture column is supposed to hold a small picture to indicate 
either a file or folder


So...In the component source I added the following to try to figure out 
What is going on.
ALL of the below pass when interpreted.

Compiled... all pass except the last one
ASSERT(l_Pic_Column>0;"Invalid Pic index")   //pass - true
ASSERT(Type($Pic_Pointer)=Is Pointer;"pic pointer not a pointer")  
//pass - true
ASSERT(Type($Pic_Pointer->)=Is Picture;"not a pic")  //pass - true
ASSERT(Picture size($Pic_Pointer->)>0;"size")  //pass - true
ASSERT(Size of array(aptr_Column_Vars)>0;"pointer Array")  //pass - true
ASSERT(Type(aptr_Column_Vars{l_Pic_Column})=Is Pointer;"Pic pointer")  
//pass - true

This one fails.but does NOT fail interpretedly.
ASSERT(Type(aptr_Column_Vars{l_Pic_Column}->)=Picture array;"array el 
pic")


If I remove the code for the picture array (commented out) the other 
columns/arrays are fine and throw no error!

SO I tried one more thing.
I inserted the following just before the append to array command.
ARRAY PICTURE(aptr_Column_Vars{l_Pic_Column}->;0)
ASSERT(Type(aptr_Column_Vars{l_Pic_Column}->)=Picture array;"array el 
pic")

compiled this throws an error on compiler declaration Array Picture
again, the same error, incompatible argument types.
Interpretedly, in the debugger, 
Type(aptr_Column_Vars{l_Pic_Column}->) =  19
Picture array (konstant) = 19

I have no idea what is join on any one else have a clue??

Thanks
Chip


---
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: What does INF mean?

2017-12-11 Thread Arnaud de Montard via 4D_Tech

> Le 11 déc. 2017 à 17:20, David Samson via 4D_Tech <4d_tech@lists.4d.com> a 
> écrit :
> 
> Am I correct in my supposition and is this documented anywhere?

Right. 
1/0 returns INF too. 

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

RE: Quick Report Editor Preview on Windows

2017-12-11 Thread Timothy Penner via 4D_Tech
> What do you have to do on windows to use the preview button in the Quick 
> Report Editor in Windows? When I click it I get “No application is associated 
> with the specified file for this operation”.
> > I'd guess you need XPS Viewer installed

I agree with Spencer, check and make sure you have XPS installed:
http://livedoc.4d.com/4Dv15.4/help/Title/en/page3215.html#949596
{
Since version 13, 4D generates print previews as XPS documents. The XPS (XML 
Paper Specification) format is an open specification for a page description 
language that was initially developed by Microsoft and then standardized by 
Ecma International. Now widespread among Windows applications, it provides an 
accurate on-screen representation of printed documents and is independent from 
the hardware configuration.
}

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

Re: Quick Report Editor Preview on Windows

2017-12-11 Thread Spencer Hinsdale via 4D_Tech
I'd guess you need XPS Viewer installed

> On Dec 11, 2017, at 12:16 PM, John Baughman via 4D_Tech 
> <4d_tech@lists.4d.com> wrote:
> 
> What do you have to do on windows to use the preview button in the Quick 
> Report Editor in Windows? When I click it I get “No application is associated 
> with the specified file for this operation”.
> 

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

Quick Report Editor Preview on Windows

2017-12-11 Thread John Baughman via 4D_Tech
What do you have to do on windows to use the preview button in the Quick Report 
Editor in Windows? When I click it I get “No application is associated with the 
specified file for this operation”.

Thanks,

John

John Baughman
Kailua, Hawaii
(808) 262-0328
john...@hawaii.rr.com





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

RE: Stack level in 4DDebugLog.txt

2017-12-11 Thread Chip Scheide via 4D_Tech
Piotr, 
don't forget the possibility of indirect recursion too.
Method_A call Method_B which calls Method_C which calls Method_A


On Mon, 11 Dec 2017 18:11:32 +, Timothy Penner via 4D_Tech wrote:
> It could be recursion. The debug logs should help you determine 
> exactly what is being called.
> 
> If method1 calls method1 which calls method1 again (and again and 
> again and again), it would increase the stack level each time it 
> calls itself.
> 
> -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
> **
---
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: Stack level in 4DDebugLog.txt

2017-12-11 Thread Timothy Penner via 4D_Tech
It could be recursion. The debug logs should help you determine exactly what is 
being called.

If method1 calls method1 which calls method1 again (and again and again and 
again), it would increase the stack level each time it calls itself.

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

RE: Stack level in 4DDebugLog.txt

2017-12-11 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi Tim,

Thanks again for your answer.
I already thought so, however, in my case the stack level increases over time
It starts with zero
I see it decrease some times, but after 1000 log lines it already is at 262

So I guess this smells like a nesting problem?
I have to find out where and why

Or could there be another reason?

Gr,

Piotr


> -Oorspronkelijk bericht-
> Van: Timothy Penner [mailto:tpen...@4d.com]
> Verzonden: maandag 11 december 2017 18:31
> Aan: 4D iNug Technical <4d_tech@lists.4d.com>
> CC: Piotr Chabot Stadhouders 
> Onderwerp: RE: Stack level in 4DDebugLog.txt
> 
> The stack level is how far down the call chain you are. When one method calls
> another you increase the stack level, if that method then calls another method
> you increase the stack level again. As methods complete the stack level
> decreases.
> 
> The following description on Wikipedia for Call Stack may help further explain
> the concept:
> https://en.wikipedia.org/wiki/Call_stack
> {
> A call stack is used for several related purposes, but the main reason for 
> having
> one is to keep track of the point to which each active subroutine should 
> return
> control when it finishes executing. An active subroutine is one that has been
> called but is yet to complete execution after which control should be handed
> back to the point of call. Such activations of subroutines may be nested to 
> any
> level (recursive as a special case), hence the stack structure. If, for 
> example, a
> subroutine DrawSquare calls a subroutine DrawLine from four different places,
> DrawLine must know where to return when its execution completes. To
> accomplish this, the address following the call instruction, the return 
> address, is
> pushed onto the call stack with each call.
> }
> 
> 
> -Tim
> 
> 
> Timothy Penner
> Senior Technical Services Engineer
> 
> 4D Inc
> 95 S. Market Street, Suite #240
> CA 95113 San Jose
> United States
> 
> Telephone : +1-408-557-4600
> Standard :  +1-408-557-4600
> Fax :   +1-408-271-5080
> Email : tpen...@4d.com
> Web :   www.4D.com
> 

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

RE: What does INF mean?

2017-12-11 Thread Timothy Penner via 4D_Tech
It is mentioned in the documentation for the command STRING:
http://livedoc.4d.com/4Dv15.5/help/Command/en/page10.html
{
String(1/0)"INF"Positive infinite number
String(-1/0)"-INF"Negative infinite number
}

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

RE: Stack level in 4DDebugLog.txt

2017-12-11 Thread Timothy Penner via 4D_Tech
The stack level is how far down the call chain you are. When one method calls 
another you increase the stack level, if that method then calls another method 
you increase the stack level again. As methods complete the stack level 
decreases.

The following description on Wikipedia for Call Stack may help further explain 
the concept:
https://en.wikipedia.org/wiki/Call_stack
{
A call stack is used for several related purposes, but the main reason for 
having one is to keep track of the point to which each active subroutine should 
return control when it finishes executing. An active subroutine is one that has 
been called but is yet to complete execution after which control should be 
handed back to the point of call. Such activations of subroutines may be nested 
to any level (recursive as a special case), hence the stack structure. If, for 
example, a subroutine DrawSquare calls a subroutine DrawLine from four 
different places, DrawLine must know where to return when its execution 
completes. To accomplish this, the address following the call instruction, the 
return address, is pushed onto the call stack with each call.
}


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

RE: 64bit R5 clients not seeing Server on windows

2017-12-11 Thread Timothy Penner via 4D_Tech
64 bit Server on Windows uses the Legacy Network Layer by default.
64 bit Clients require that the New Network Layer is used.

Make sure you enable the New Network Layer in the compatibility settings of the 
Server in order to allow 64 bit Clients to connect to it.

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

Re: What Texting Services Are People Using?

2017-12-11 Thread David Samson via 4D_Tech
Have you looked at Contrôle SMS from Bertrand SOUBEYRAND? It is a
component. We have been using it for years and it is excellent.
https://www.controle-sms.com/en/

David Samson



>
> Message: 8
> Date: Wed, 6 Dec 2017 12:22:30 -0700
> From: Dave Nasralla 
> To: 4D iNug Technical <4d_tech@lists.4d.com>
> Subject: What Texting Services Are People Using?
> Message-ID:
> 

Re: Combo Box on Windows

2017-12-11 Thread John Baughman via 4D_Tech
Clarification for the Mac. After the list drops down, yes, hit the down arrow 
key and the next item is then selected.

> On Dec 11, 2017, at 6:52 AM, John Baughman  wrote:
> 
> Chip,
> 
>> as to the 'wrong item' being selected.
>> you typed in some character(s) and an item was selected based on the 
>> text entered, you then hit Down Arrow, this would select the next item 
>> in the list.
> 
>   At least for me, that is not how it works on the Mac. I type in 
> something and the list is not opened. I hit the down arrow key and the list 
> opens with the item I typed matched and selected in the drop down. It dow not 
> select the next item down.
>> 
>> As to why the drop down is not opening with the down arrow, I do not 
>> know. 
>> One possibility... try a modifier key (alt, control, etc) maybe there 
>> has been a change in the activation of the drop down via key stroke, or 
>> maybe it is a bug.
> 
>   Same database on both. I tried every combination of modifier keys I 
> could think of. No joy.
> 
> John
> 
> 
> 
> John Baughman
> Kailua, Hawaii
> (808) 262-0328
> john...@hawaii.rr.com 
> 
> 
> 
> 
> 

John Baughman
Kailua, Hawaii
(808) 262-0328
john...@hawaii.rr.com





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

Re: Combo Box on Windows

2017-12-11 Thread John Baughman via 4D_Tech
Chip,

> as to the 'wrong item' being selected.
> you typed in some character(s) and an item was selected based on the 
> text entered, you then hit Down Arrow, this would select the next item 
> in the list.

At least for me, that is not how it works on the Mac. I type in 
something and the list is not opened. I hit the down arrow key and the list 
opens with the item I typed matched and selected in the drop down. It dow not 
select the next item down.
> 
> As to why the drop down is not opening with the down arrow, I do not 
> know. 
> One possibility... try a modifier key (alt, control, etc) maybe there 
> has been a change in the activation of the drop down via key stroke, or 
> maybe it is a bug.

Same database on both. I tried every combination of modifier keys I 
could think of. No joy.

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

What does INF mean?

2017-12-11 Thread David Samson via 4D_Tech
>
> I have been working with a web service lately which is supposed to return
a numeric value. A couple of times the result when parsed in 4D was INF and
on investigating I found the value behind it was 1.7976931348623157e+308.
So I presume INF stands for "infinity".

Am I correct in my supposition and is this documented anywhere?

Thank you,
David Samson
Manchester
UK
**
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: Combo Box on Windows

2017-12-11 Thread Chip Scheide via 4D_Tech
NOTE: I am not using v16r5, nor do I develop on windows... that said:

as to the 'wrong item' being selected.
you typed in some character(s) and an item was selected based on the 
text entered, you then hit Down Arrow, this would select the next item 
in the list.

As to why the drop down is not opening with the down arrow, I do not 
know. 
One possibility... try a modifier key (alt, control, etc) maybe there 
has been a change in the activation of the drop down via key stroke, or 
maybe it is a bug.

On Sun, 10 Dec 2017 21:47:53 -1000, John Baughman via 4D_Tech wrote:
> On my Mac if I hit the down arrow key the list drops down with the 
> match, if any, selected and the match is stored in the object.
> 
> On my PC if I hit the down arrow key the list does NOT drop down, and 
> if a match exists the next item in the list is stored in the object. 
> 
> The only way I can get the drop down list is to click it and what’s 
> up with the wrong item getting selected.
> 
> Is this normal behavior on the PC or am I missing something?
> 
> v16 R5
> 
> John
> 
>> On Nov 8, 2017, at 2:03 PM, John Baughman  wrote:
>> 
>> Of course. If, however, you go down that rabbit hole with your eyes open…
>> 
>> Take for example using Employee_Number as I mentioned. If business 
>> rules do not allow deletion or changing of this field once it is 
>> created, then I see no problem using it as a relational key. For an 
>> Employee Number this usually goes beyond the 4D database to other 
>> accounting programs, payroll systems, etc. Changing an employee 
>> number would reek havoc throughout a company.
>> 
>> I guess instead of a “user definable field” it is a “one time 
>> user definable field”.
>> 
>> I too avoid using a user definable field as a relational/unique 
>> field, but o occasion I have done so, but only if I was certain that 
>> the field had no chance of ever breaking the relationship due to 
>> user intervention.
>> 
>> John 
>> 
>>> On Nov 8, 2017, at 12:48 PM, Chip Scheide via 4D_Tech 
>>> <4d_tech@lists.4d.com > wrote:
>>> 
>>> ** NO ** user definable data should be used as relational/unique key 
>>> value.
>> 
>> John Baughman
>> Kailua, Hawaii
>> (808) 262-0328
>> john...@hawaii.rr.com 
>> 
>> 
>> 
>> 
>> 
> 
> 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
> **
---
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
**

Stack level in 4DDebugLog.txt

2017-12-11 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi,

Can anybody explain to me what the "Stack level" column in the 4DDebugLog.txt 
means?
There is no further explanation of this column  in the docs
What can be done with this?

TIA,

Piotr

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