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

Re: Components and subforms

2017-10-20 Thread Keisuke Miyako via 4D_Tech
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
**

Re: v13 - Renaming a Directory via code.

2017-10-20 Thread Keisuke Miyako via 4D_Tech
if you don't mind using a plugin, perhaps as a stop gap measure:

https://github.com/miyako/4d-plugin-rename



**
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: Base 64 broken in 4DIC 16.x?

2017-10-20 Thread James Bareman via 4D_Tech
Hi Jeffrey,
I am seeing this as well with build 16R4.216142.
From my testing, it seems that when you specify the default encoding with
SMTP_SetPrefs and with SMTP_Charset(0,0), whatever you pass as the email
body actually gets Base64 encoded. So, if you were already encoding your
message body before adding it with SMTP_Body, what ends up being sent is
doubly encoded.

-Jim

On Thu, Aug 31, 2017 at 11:54 AM, Jeffrey Kain via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> Anyone else seeing Base64 encoding not working correctly in the version 16
> of 4D Internet Commands?
>
> We haven't debugged this 100% yet, but it seems to be adding some
> incorrect padding characters to the base64 text depending on the length of
> the source message, which causes mail clients to not decode the messages
> correctly.
>
> Unfortunately, UTF-8 + Base64 is the new default in 4DIC, so if you just
> whip up some code using the defaults it's not going to work.
>
> UTF-8 and quoted-printable seems fine as a workaround
>
> Anyone else seeing this?
> **
> 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: v13 - Renaming a Directory via code.

2017-10-20 Thread Stephen J. Orth via 4D_Tech
Obviously I misspoke about the BAT file, you can directly call the cmd.exe 
command using the syntax outline...

My apologies.


Steve


-Original Message-
From: 4D_Tech [mailto:4d_tech-boun...@lists.4d.com] On Behalf Of Stephen J. 
Orth via 4D_Tech
Sent: Friday, October 20, 2017 6:27 PM
To: '4D iNug Technical' <4d_tech@lists.4d.com>; timnev...@mac.com
Cc: Stephen J. Orth 
Subject: RE: v13 - Renaming a Directory via code.

If you only work on Windows (like me) you can take advantage of a Windows DOS 
command by creating a batch file with the following:

 SET ENVIRONMENT VARIABLE("_4D_OPTION_HIDE_CONSOLE";"TRUE")
 LAUNCH EXTERNAL PROCESS("cmd.exe /C rename "+$dir_current+" "+$dir_rename)

You just need to account for any spaces in the path names, since they will need 
to be placed inside double quotes.

Very simply, very fast...


Steve


**
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 - Renaming a Directory via code.

2017-10-20 Thread Stephen J. Orth via 4D_Tech
If you only work on Windows (like me) you can take advantage of a Windows DOS 
command by creating a batch file with the following:

 SET ENVIRONMENT VARIABLE("_4D_OPTION_HIDE_CONSOLE";"TRUE")
 LAUNCH EXTERNAL PROCESS("cmd.exe /C rename "+$dir_current+" "+$dir_rename)

You just need to account for any spaces in the path names, since they will need 
to be placed inside double quotes.

Very simply, very fast...


Steve


-Original Message-
From: 4D_Tech [mailto:4d_tech-boun...@lists.4d.com] On Behalf Of Chip Scheide 
via 4D_Tech
Sent: Friday, October 20, 2017 6:03 PM
To: timnev...@mac.com
Cc: Chip Scheide <4d_o...@pghrepository.org>; 4d_tech@lists.4d.com
Subject: Re: v13 - Renaming a Directory via code.

Ill post mine on Monday. I got it from Jorge I think

> On Oct 20, 2017, at 4:30 PM, Chip Scheide <4d_o...@pghrepository.org> wrote:
> 
>>>  $command_t:="mv "+GetPOSIXfilePath ($folderPath_t)+" 
>> had trouble here -
>> apparently 4D's (v13) Convert path system to POSIX command - fails to 
>> do what it is advertised to do.
>> Fortunately I had a routine already written to do this.
> 
> That’s exactly why I wrote my own. I use the 4D Convert path system 
> to POSIX command but then Replace String for all spaces to “\ “. 
> That seems to make it work. 
> 
> Tim
> 
> 
> Tim Nevels
> Innovative Solutions
> 785-749-3444
> timnev...@mac.com
> 
> 
> 

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

**
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 - Renaming a Directory via code.

2017-10-20 Thread Chip Scheide via 4D_Tech
Ill post mine on Monday. I got it from Jorge I think

> On Oct 20, 2017, at 4:30 PM, Chip Scheide <4d_o...@pghrepository.org> wrote:
> 
>>>  $command_t:="mv "+GetPOSIXfilePath ($folderPath_t)+" 
>> had trouble here -
>> apparently 4D's (v13) Convert path system to POSIX command - fails to 
>> do what it is advertised to do.
>> Fortunately I had a routine already written to do this.
> 
> That’s exactly why I wrote my own. I use the 4D Convert path system 
> to POSIX command but then Replace String for all spaces to “\ “. 
> That seems to make it work. 
> 
> Tim
> 
> 
> Tim Nevels
> Innovative Solutions
> 785-749-3444
> timnev...@mac.com
> 
> 
> 

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 - Renaming a Directory via code.

2017-10-20 Thread Tim Nevels via 4D_Tech
On Oct 20, 2017, at 4:30 PM, Chip Scheide <4d_o...@pghrepository.org> wrote:

>>  $command_t:="mv "+GetPOSIXfilePath ($folderPath_t)+" 
> had trouble here -
> apparently 4D's (v13) Convert path system to POSIX command - fails to 
> do what it is advertised to do.
> Fortunately I had a routine already written to do this.

That’s exactly why I wrote my own. I use the 4D Convert path system to POSIX 
command but then Replace String for all spaces to “\ “. That seems to make it 
work. 

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: v13 - Renaming a Directory via code.

2017-10-20 Thread Chip Scheide via 4D_Tech
Tim, 
first - it works (OSX) even renaming a folder to the same name but case 
changed.
i.e. My_Folder -> MY_FOLDER
THANKS!


the below line of code -

On Fri, 20 Oct 2017 16:21:24 -0400, Chip Scheide via 4D_Tech wrote:
>>   $command_t:="mv "+GetPOSIXfilePath ($folderPath_t)+" 
had trouble here -
apparently 4D's (v13) Convert path system to POSIX command - fails to 
do what it is advertised to do.
Fortunately I had a routine already written to do this.

Thanks again

---
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: v13 - Renaming a Directory via code.

2017-10-20 Thread Chip Scheide via 4D_Tech
Thanks Tim,


I wrote code to use MOVE DOCUMENT and CREATE FOLDER to do this.
It works, it is (on my tests, NOT very deep folder structures) quick.

So - Folder_Rename(Old_Folder_Path;New_Folder_Name)
works, no problem.

Then I tried to change the case, rather then rename on a folder and hit 
a wall...
Folder_Rename(Old_Folder_Path;OLD_FOLDER_NAME)

FAIL!
folder already exists of course it does!!! as the OS is case blind, 
unless you are one of the few masochists out there running OSX with 
case sensitivity turned on.

this is where I stopped today...

I will try your code, I suspect that it will work even with a case 
change, as this is occurring at the OS level, rather then 4D.

Thanks again


On Fri, 20 Oct 2017 15:07:23 -0500, Tim Nevels via 4D_Tech wrote:
> On Oct 20, 2017, at 1:04 PM, Chip Scheide wrote:
> 
>> I want to rename a directory, from say New Folder -> New Folder too
>> Move Document complains, as neither the source nor the destination are 
>> documents.
>> 
>> is there another means to rename a folder other than:
>> 
>> - Create new folder with new/changed name
>> - copy all contents from source folder to destination
>> - delete original
>> 
>> -repeat for all sub directories of the original source)
>> 
>> seems like an excessive amount of work for a change to a directory 
>> name.
> 
> It is an excessive amount of work. We need a native RENAME FOLDER 
> command or a MOVE FOLDER command. I don’t think it makes sense to 
> make the MOVE DOCUMENT command also work with folders. It needs to be 
> a separate command.
> 
> So I had to write my own RenameFolder command. Here it is Chip:
> 
>   // ===
>   // PROJECT METHOD: RenameFolder
> 
>   // PARAMETERS: $0 = error message
>   // $1 = path to folder
>   // $2 = new folder name
> 
>   // DESCRIPTION: Renames a folder by calling the operating system
>   // to do the work. If rename was successful return blank; otherwise
>   // return error message text.
> 
>   // CREATED BY: Tim Nevels, Innovative Solutions ©2017
>   // DATE: 4/28/17
>   // LAST MODIFIED: 
>   // 
> 
> C_TEXT($0;$errorStream_t)
> C_TEXT($1;$folderPath_t)
> C_TEXT($2;$newFolderName_t)
> $folderPath_t:=$1
> $newFolderName_t:=$2
> 
> C_TEXT($destinationFolderPath_t;$command_t;$inputStream_t;$outputStream_t)
> 
>   // setup environment
> SET ENVIRONMENT VARIABLE("_4D_OPTION_HIDE_CONSOLE";"true")
> SET ENVIRONMENT 
> VARIABLE("_4D_OPTION_BLOCKING_EXTERNAL_PROCESS";"true")  // wait for 
> it to finish
> 
> $destinationFolderPath_t:=GetParentDirectoryPath 
> ($folderPath_t)+$newFolderName_t
> 
> Case of 
>: (Test path name($folderPath_t)#Is a folder)  //  check if  
> folder exists
>   $errorStream_t:="folder does not exist"
> 
>: (Test path name($destinationFolderPath_t)=Is a folder)  //  
> check if destination folder name already exists
>   $errorStream_t:="folder already exists"
> 
>: (<>macOS)
>   $command_t:="mv "+GetPOSIXfilePath ($folderPath_t)+" 
> "+GetPOSIXfilePath ($destinationFolderPath_t)
>   LAUNCH EXTERNAL 
> PROCESS($command_t;$inputStream_t;$outputStream_t;$errorStream_t)
> 
>Else   // Windows
>   $command_t:="cmd.exe /C rename "+Char(Double 
> quote)+$folderPath_t+Char(Double quote)+" "+Char(Double 
> quote)+$newFolderName_t+Char(Double quote)
>   LAUNCH EXTERNAL 
> PROCESS($command_t;$inputStream_t;$outputStream_t;$errorStream_t)
> End case 
> 
>   // return result
> $0:=$errorStream_t
> 
> 
> 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
> **
---
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: v13 - Renaming a Directory via code.

2017-10-20 Thread Tim Nevels via 4D_Tech
On Oct 20, 2017, at 1:04 PM, Chip Scheide wrote:

> I want to rename a directory, from say New Folder -> New Folder too
> Move Document complains, as neither the source nor the destination are 
> documents.
> 
> is there another means to rename a folder other than:
> 
> - Create new folder with new/changed name
> - copy all contents from source folder to destination
> - delete original
> 
> -repeat for all sub directories of the original source)
> 
> seems like an excessive amount of work for a change to a directory 
> name.

It is an excessive amount of work. We need a native RENAME FOLDER command or a 
MOVE FOLDER command. I don’t think it makes sense to make the MOVE DOCUMENT 
command also work with folders. It needs to be a separate command.

So I had to write my own RenameFolder command. Here it is Chip:

  // ===
  // PROJECT METHOD: RenameFolder

  // PARAMETERS: $0 = error message
  // $1 = path to folder
  // $2 = new folder name

  // DESCRIPTION: Renames a folder by calling the operating system
  // to do the work. If rename was successful return blank; otherwise
  // return error message text.

  // CREATED BY: Tim Nevels, Innovative Solutions ©2017
  // DATE: 4/28/17
  // LAST MODIFIED: 
  // 

C_TEXT($0;$errorStream_t)
C_TEXT($1;$folderPath_t)
C_TEXT($2;$newFolderName_t)
$folderPath_t:=$1
$newFolderName_t:=$2

C_TEXT($destinationFolderPath_t;$command_t;$inputStream_t;$outputStream_t)

  // setup environment
SET ENVIRONMENT VARIABLE("_4D_OPTION_HIDE_CONSOLE";"true")
SET ENVIRONMENT VARIABLE("_4D_OPTION_BLOCKING_EXTERNAL_PROCESS";"true")  // 
wait for it to finish

$destinationFolderPath_t:=GetParentDirectoryPath 
($folderPath_t)+$newFolderName_t

Case of 
   : (Test path name($folderPath_t)#Is a folder)  //  check if  folder exists
  $errorStream_t:="folder does not exist"

   : (Test path name($destinationFolderPath_t)=Is a folder)  //  check if 
destination folder name already exists
  $errorStream_t:="folder already exists"

   : (<>macOS)
  $command_t:="mv "+GetPOSIXfilePath ($folderPath_t)+" "+GetPOSIXfilePath 
($destinationFolderPath_t)
  LAUNCH EXTERNAL 
PROCESS($command_t;$inputStream_t;$outputStream_t;$errorStream_t)

   Else   // Windows
  $command_t:="cmd.exe /C rename "+Char(Double 
quote)+$folderPath_t+Char(Double quote)+" "+Char(Double 
quote)+$newFolderName_t+Char(Double quote)
  LAUNCH EXTERNAL 
PROCESS($command_t;$inputStream_t;$outputStream_t;$errorStream_t)
End case 

  // return result
$0:=$errorStream_t


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

4D Write Pro and SMTP_Body

2017-10-20 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi,

We use 4D to send HTML emails
Until now we used 4D Write to generate the mail body, and convert it to HTML 
(WR SAVE DOCUMENT ($area;$docpath;wr HTML 4 document))

Now we want to convert this to 4D Write Pro.
In WP there is a command WP EXPORT VARIABLE to convert an area to HTML ("wk 
mime html" or "wk web page html 4D")
Because we don't use SMTP_QuickSend but SMTP_Send with SMTP_Body, we cannot use 
"wk mime html" but have to use "wk web page html 4D"

My questions :

  *   Am I right that we can't use use "wk mime html" but have to use "wk web 
page html 4D"?
  *   Is it true that the use of bullets in HTML is not supported when sending 
by email?

Thanks,

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

Selecting tables in a Write Pro Area

2017-10-20 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi,

I am experimenting with 4D Write Pro.
Because WP only supports inline pictures I thought to give tables a try, i.e to 
insert a picture in a cell and text in a next cell (what is a "workaround" for 
wrapping text around a picture)

Inserting a table with some cells is no problem, but I have no idea how to 
select a table in an area by programming.
Even more, I find selecting other objects, like pictures, not intuitive as well

Does anybody know how to select a table in an WP area by programming?

Thanks,

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

Re: Ergonomic 4D office...

2017-10-20 Thread Roger Reed – Illus House via 4D_Tech
I used those “kneeling” chairs for many years, in which some of the weight is 
shifted from your butt to your knees. They’re also backless, and that’s the 
problem — no back support. I ended up hunched over all the time. [And couldn’t 
put any papers on my chair.]

So I got an Aeron chair and it has suited me well for several years. Don’t get 
a foam-y substitute. Recently I elevated my computer so it’s truly at eye 
height. That forces me not to hunch over and it works very well for that.

The third factor is the mouse position. At desk height I found I was raising my 
shoulder all day with painful results. Lowering the mouse down to roughly lap 
level made a huge difference for me.

Roger

> On Oct 19, 2017, at 23:49, Robert ListMail via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> I've got some unexplained back problems—severe pain over the last three 
> days... I'm reminded that: I'm not 21 anymore, and that my office desk and 
> chair are probably far from optimal. I'm sure that my injury has nothing to 
> do with my motorcycle crash last year or my personal plumbing efforts last 
> month! :)  Yet it's a wake up call to protect my aging bag of bones. So, when 
> I go to NAB I always notice the adjustable TBC Consoles where you can stand 
> to work or sit at different heights. This is just one idea to improve my 
> health going forward. So, do you have a favorite adjustable height desk 
> and/or office chair that you care to mention?
> 
> Thanks,
> 
> Robert
> 
> Sent from my iPhone
> **
> 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
**

Feature request : new command : MOVE FOLDER

2017-10-20 Thread Chip Scheide via 4D_Tech
link to forum request:
http://forums.4d.com/Post//21269476/1/

text of request:
>Product :4D - 4D Server

The command MOVE DOCUMENT chokes (v13, also reported in v11 and v12), 
on trying to move/rename a folder.

According to comments in the original feature request (for v11) MOVE 
DOCUMENT would rename/move a folder, in versions of 4D v2004 and 
before..

We need to have either : 
- MOVE FOLDER, a new command (which would function as Move Document, 
but with Folders)
or
- MOVE DOCUMENT, needs to be fixed to work with folders, as it did in 
v2004 and before.


---
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: Ergonomic 4D office...

2017-10-20 Thread Douglas von Roeder via 4D_Tech
I had to pick out a desk and a chair about 10 years ago since I was going
into "private practice" again.

Though it's pricey, I opted for a chair from Relax the Back
.
It's very adjustable and it has allowed me sit conformably for hours on
end, even with two hips that were, thanks to my then-significant
mass, rapidly deteriorating.

Until a few years ago, I had been using a desk that was custom built a long
time (as in 4D version 2.2). It was a simple design with a 6' desktop, a
modesty panel, and two drawers. The key was that it was made of oak veneer
plywood so it was quite affordable.

My choice this time around was an an adjustable desk

which
allowed me to reduce the pain from my hips. I don't raise/lower it much
these days but I can adjust the desk height to within 0.1" so it's
extremely comfortable.

On the topic of "feed your head", I use gear from Hsu, Schiit, Sennheiser,
Etymotic, Grado, and HiFiMan but that's a *much* longer discussion.


In case the URL's don't come through on the NUG:

https://www.relaxtheback.com/index.php/lifeform-ultimate-
high-back-executive-office-chair.html?green=2ddff400-
f561-35a289-2bd2-844c7e8730b

http://www.thehumansolution.com/height-adjustable-
standing-desk-frame-2-leg.html





--
Douglas von Roeder
949-336-2902

On Thu, Oct 19, 2017 at 8:49 PM, Robert ListMail via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> I've got some unexplained back problems—severe pain over the last three
> days... I'm reminded that: I'm not 21 anymore, and that my office desk and
> chair are probably far from optimal. I'm sure that my injury has nothing to
> do with my motorcycle crash last year or my personal plumbing efforts last
> month! :)  Yet it's a wake up call to protect my aging bag of bones. So,
> when I go to NAB I always notice the adjustable TBC Consoles where you can
> stand to work or sit at different heights. This is just one idea to improve
> my health going forward. So, do you have a favorite adjustable height desk
> and/or office chair that you care to mention?
>
> Thanks,
>
> Robert
>
> Sent from my iPhone
> **
> 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: Combine pictures in v15

2017-10-20 Thread Ronnie Teo via 4D_Tech
Hi,

Your 4D tech-note helped tremendously.  The Transparency transformation was 
exactly what I needed.

I could have sworn I went through the picture commands but somehow missed that….
Thanks again.

Regards,
Ronnie
Tarawerkz




> On 20 Oct 2017, at 10:52 pm,Keisuke Miyako wrote:
> 
> F.Y.I. picture operators were updated in v14
> 
> http://doc.4d.com/4Dv15/4D/15.4/Picture-Operators.300-3274678.en.html 
> 
> 
>> (*) The functioning of the exclusive superimposition (&) and inclusive 
>> superimposition (|) operators is modified starting with 4Dv14 following the 
>> update of the display management libraries used by the program.
>> Pict3 := Pict1 & Pict2 produces the same result as:
>> COMBINE PICTURES(pict3;pict1;Superimposition;pict2)
> 
> but your problem might be related to the specification
> 
>> The picture operators return vectorial pictures if the two source pictures 
>> are vectorial. Remember, however, that pictures printed by the display 
>> format On Background are printed bitmapped.
> 
> alternatively you could explicitly replace the "white" pixels with 
> "transparent".
> 
> http://doc.4d.com/4Dv15/4D/15.4/TRANSFORM-PICTURE.301-3274515.en.html 
> 
> 
>> 2017/10/19 22:56、Ronnie Teo via 4D_Tech <4d_tech@lists.4d.com 
>> > のメール:
>> 
>> The problem is that now the white background of Picture2 also covers part of 
>> Picture1 instead of being a clean transparent overlay.
>> Can anyone advise how it’s possible to deal with the background issue when 
>> combining 2 pictures with the new picture commands?
> 

**
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: Working 4Dv15 Windows

2017-10-20 Thread Ronnie Teo via 4D_Tech
Hi,

Thanks for your reply, managed to resolve the issue following advice from Armin 
Deeg.

I did the following :

• Change the font for the method editor
• Deleted the 4D folder files inside c:\users\USERNAME\Appdata\Roaming\4D\4D 
Preferencesv15.4dpreferences and 4D Window Bounds v15 

The System font along with some other fonts played havoc with the text display 
in the Method editor.

Regards,
Ronnie


> On 20 Oct 2017, at 10:52 pm,  Keisuke Miyako wrote:
> 
> it doesn't sound like a typical experience.
> could it be possible that you work with a special configuration?
> 
> screen DPI
> font
> font size
> incompatible Direct2D hardware acceleration (need to update firmware, for 
> example)
> http://doc.4d.com/4Dv15/4D/15.4/SET-DATABASE-PARAMETER.301-3274410.en.html 
> 
> 
> etc.
> 
>> 2017/10/19 22:51、Ronnie Teo via 4D_Tech <4d_tech@lists.4d.com 
>> > のメール:
>> Does anyone know what is the cause and how to rectify this. Thanks.
> 

**
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: Working 4Dv15 Windows

2017-10-20 Thread Ronnie Teo via 4D_Tech
Hi Jim,

Thanks for your reply.

I managed to solve my issue following advice from Armin Deeg.
I did the following :

• Change the font for the method editor
• Deleted the 4D folder files inside c:\users\USERNAME\Appdata\Roaming\4D\4D 
Preferencesv15.4dpreferences and 4D Window Bounds v15 

The System font along with some other fonts played havoc with the text display 
in the Method editor.
Hope this helps.

Regards,
Ronnie
Tarawerkz




> On 20 Oct 2017, at 11:44 pm, Jim Medlen  
> wrote:
> 
> 
> We had an issue upgrading from v13 to v15 with the MESSAGE command not
> displaying text on Windows clients.
> 
> We submitted a bug report and were told it would be fixed in future
> versions of 4D.
> 
> The resolution was to wrap methods using the MESSAGE command with
> 
> SET DATABASE PARAMETER(Direct2D Status;Direct2D Software)  // Enable
> Direct2D fixes message bug with Windows client
> 
> // previous code or method
> 
> SET DATABASE PARAMETER(Direct2D status;Direct2D Hardware)
> 
> 
> We were told the issue had to do with the removal of Direct 2D support
> 
> I edit and compile using a Mac so I do not know if it effected the Editor.
>> 
>> Hi All,
>> 
>> I am in the midst of converting 4D Windows-based application from v11 to
>> v15 and encountered a strange issue.
>> 
>> When editing a method under v15, all the text are jumbled up.
>> I tested with creating a new method, not just methods carried over from
>> the past and the effect is the same.
>> 
>> For example, typing a string like " [filename]fieldname := ³.  Once the
>> assignment operator is keyed in, the text gets overlaid over the
>> beginning characters of the string, making the entire string of text
>> illegible.
>> 
>> The text renders well when running under the Mac version.
>> It¹s also ok when using a Mac client to access the 4D Server running
>> under Windows.
>> 
>> Does anyone know what is the cause and how to rectify this.  Thanks.
>> 
>> 
>> Regards,
>> Ronnie
>> Tarawerkz
> 
> 

**
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 - Renaming a Directory via code.

2017-10-20 Thread Chip Scheide via 4D_Tech
I want to rename a directory, from say New Folder -> New Folder too
Move Document complains, as neither the source nor the destination are 
documents.

is there another means to rename a folder other than:

- Create new folder with new/changed name
- copy all contents from source folder to destination
- delete original

-repeat for all sub directories of the original source)

seems like an excessive amount of work for a change to a directory 
name.

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: Working 4Dv15 Windows

2017-10-20 Thread Jim Medlen via 4D_Tech

We had an issue upgrading from v13 to v15 with the MESSAGE command not
displaying text on Windows clients.

We submitted a bug report and were told it would be fixed in future
versions of 4D.

The resolution was to wrap methods using the MESSAGE command with

SET DATABASE PARAMETER(Direct2D Status;Direct2D Software)  // Enable
Direct2D fixes message bug with Windows client

// previous code or method

SET DATABASE PARAMETER(Direct2D status;Direct2D Hardware)


We were told the issue had to do with the removal of Direct 2D support

I edit and compile using a Mac so I do not know if it effected the Editor.
>
>Hi All,
>
>I am in the midst of converting 4D Windows-based application from v11 to
>v15 and encountered a strange issue.
>
>When editing a method under v15, all the text are jumbled up.
>I tested with creating a new method, not just methods carried over from
>the past and the effect is the same.
>
>For example, typing a string like " [filename]fieldname := ³.  Once the
>assignment operator is keyed in, the text gets overlaid over the
>beginning characters of the string, making the entire string of text
>illegible.
>
>The text renders well when running under the Mac version.
>It¹s also ok when using a Mac client to access the 4D Server running
>under Windows.
>
>Does anyone know what is the cause and how to rectify this.  Thanks.
>
>
>Regards,
>Ronnie
>Tarawerkz


**
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: Is a package preferred?

2017-10-20 Thread Keith Culotta via 4D_Tech
I switched back to folders for development.  It's easier to manipulate the 
app's supporting folders and files.  Users get a package, but like Chip said, 
you have to guard against the unintentional use of the datafile within the 
package.

Keith - CDI

> On Oct 19, 2017, at 5:41 PM, Robert ListMail via 4D_Tech 
> <4d_tech@lists.4d.com> wrote:
> 
> It seems like most of my Mac-based 4D databases are in a folder with the 
> structure and datafile on the same level and where there might be a test data 
> file in folder elsewhere. Yet, I have a few newly inherited Mac-based 
> databases that are in packages. Regarding best practices, what approach do 
> you favor? Do we like packages?  :)
> 
> Thanks,
> 
> Robert
> **
> 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: Is a package preferred?

2017-10-20 Thread Chip Scheide via 4D_Tech
Other issue with package systems:
- data file can be unintentionally replaced/lost during an update to the 
structure/package.
ex: client copies new structure/package to old location overwriting existing 
structure/package -- datafile (other items(?)) LOST!

I understand the idea - but I always move the datafile others the structure 
package

> It seems like most of my Mac-based 4D databases are in a folder with 
> the structure and datafile on the same level and where there might be 
> a test data file in folder elsewhere. Yet, I have a few newly 
> inherited Mac-based databases that are in packages. Regarding best 
> practices, what approach do you favor? Do we like packages?  :)
> 
> Thanks,
> 
> Robert
> **
> 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
> **

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: Server Process "Frozen"-ish

2017-10-20 Thread Keith White via 4D_Tech
Hi

OK, so we think this is due to DELAY PROCESS.

The change to DELAY PROCESS somewhere in 4D v15 was to change from a Longint to 
Real.  But the problems didn't start until v16, I think that's right.

Anyway, I'm wondering if the problem is when either Tickcount, Milliseconds or 
another internal 4D time measure overflows into negative territory.  I have no 
idea internally what measure 4D uses for DELAY PROCESS, nor what data type they 
use internally for it, but what if they aren't taking account of the overflow 
when the measure value goes from a large positive number to a large negative.

That could explain the large time period before the problem reoccurs??

Just throwing an idea out there.  We've only just jumped from v13 to v16R4, 
which means we don't have v16 out in production land yet, so we haven't yet 
seen this problem occur.

Best regards

Keith White
Synergist Express Ltd, 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: QUERY into variable vs. Records in Table

2017-10-20 Thread Arnaud de Montard via 4D_Tech

> Le 19 oct. 2017 à 19:22, Pat Bensky via 4D_Tech <4d_tech@lists.4d.com> a 
> écrit :
> 
> I'd have thought Records in Table would be quicker ... I'm sure 4D already
> "knows" how many records there are in each table, so it can just answer
> that question immediately rather than having to query and count the result

4D server knows, but a client has to ask, due to other clients inserts or 
deletions. If any client had to be aware at any time, we would have a huge 
traffic. 4D could embed these value in some "stowaway", as I described, but 
it's not the case.

I translated a french feature I made a few months ago related to this:
 

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