Re: Selection Changed Programmatically (How to trigger form event?)

2017-02-08 Thread Chip Scheide
If the event doesn't fire automatically, I am not aware of anyway to get it fire. However, if you use a coding structure like the following, you can 'fake it', then you can 'trigger' a form event by simply calling the method with the desired form event. do stuff to change selection lstbox_Manag

Re: form events in v15

2017-02-08 Thread Chip Scheide
the 'subform' is it a subform (an included listing form from another table), a listbox, or a widget (also called a subform)? Are the relations between the parent and child table(s) automatic or manual? if any are automatic - try making them manual. On Wed, 8 Feb 2017 10:55:59 -0800, Allen Matli

Re: Live "On Column Resize" event

2017-02-08 Thread Chip Scheide
on timer? set a timer event (10 ticks?) when the On Column resize occurs WHen the timer 'times out' apply the actions you want as you can conceder the resize event to be complete. Alternatively - an event handler turned on when resize fires first time to track mouse down, and then on mouse up d

Re: form events in v15

2017-02-08 Thread Chip Scheide
t from my iPad > >> On Feb 8, 2017, at 11:16 AM, Chip Scheide >> <4d_o...@pghrepository.org> wrote: >> >> the 'subform' is it a subform (an included listing form from another >> table), a listbox, or a widget (also called a subform)? >> &g

RE: Live "On Column Resize" event

2017-02-09 Thread Chip Scheide
this behavior caused me no end of problems with window resizing. personally I do not see the benefit. Generate an event ON Column/Row/Window/Object Resize ONCE when the mouse is released. The 'live' behaviordoes/will cause more problems then it could possibly solve. On Thu, 9 Feb 2017 17:32:29

v13 - Any way to set a Form Property programatically

2017-02-09 Thread Chip Scheide
I want to insure that the On Unload event is turned on across all my entry forms. I am finding some where this is not the case... Is there a programatic way to do this? Thanks --- Gas is for washing parts Alcohol is for drinkin' Nitromethane is for racing ***

Re: v13 - Any way to set a Form Property programatically

2017-02-09 Thread Chip Scheide
tml > > v14 or later. > >> 2017/02/10 6:23、Chip Scheide <4d_o...@pghrepository.org> のメール: >> I want to insure that the On Unload event is turned on across all my >> entry forms.

Re: Permanently Sort Data

2017-02-13 Thread Chip Scheide
generally I have found this is not a needed step. just sort the data as presented to the user, or in general as needed > Hello, all. > > 4D v13-16, OS x 10.10 > > Is there a way to permanently sort data for a table as it is stored? > > Used to do this occasionally with "Permanent Sort” option o

Re: Counting # of specific characters in string/text

2017-05-08 Thread Chip Scheide via 4D_Tech
The "problem" of using/not using * is knowing whether it is helpful. If I am looking for all instances of 'e' in the text of a book I can NOT use * as e ≠ E ≠ ë etc. So... either I would need to do repeated loops through the text using variations of 'e' (e, E, ë, etc), or I can not use *. If al

Re: POST CLICK on highlight button

2017-05-08 Thread Chip Scheide via 4D_Tech
I solution might be to check that the button is set to 1 (assuming longint) if (form event = on clicked) if (self-> # 1) self-> := 1 end if end if On Mon, 8 May 2017 17:24:33 +1000, Sujit Shah via 4D_Tech wrote: > I find a POST CLICK on a highlight button does not put the button in > hi

v13 - how to create a 'folder' in Explorer

2017-05-10 Thread Chip Scheide via 4D_Tech
How do I create a folder in my project methods? 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 Ar

Re: v13 - how to create a 'folder' in Explorer

2017-05-10 Thread Chip Scheide via 4D_Tech
e New―>Folder to created a folder inside a folder. > > -- > Cannon.Smith > Synergy Farm Solutions Inc. > Hill Spring, AB Canada > 403-626-3236 > > > > >> On May 10, 2017, at 12:41 PM, Chip Scheide via 4D_Tech

Re: Button Variables

2017-05-11 Thread Chip Scheide via 4D_Tech
no, only the script in the button you clicked should run. BUT why not 1 button, on page zero? it is simpler to mange only one bit of code to handle, and if there are parts of the code which are identical you can have that code existing in only one place, making updates or changes simple. AND by ha

Re: Button Variables

2017-05-11 Thread Chip Scheide via 4D_Tech
I realized after sending that there should be 2 parameters not one form event, and current form page rather then checking the form page inside the project method. On Thu, 11 May 2017 14:31:06 -0400, Chip Scheide via 4D_Tech wrote: > no, only the script in the button you clicked should

v13 - Send record

2017-05-16 Thread Chip Scheide via 4D_Tech
I have setup code to allow the export and import of records from a specific table (bug reports). This allows me to create a bug/feature report and send it to our server, or import to my local (development) database from a user entered request/problem. This worked in v11 and 12, i am now trying

Re: Migrating OS X server to Windows Server

2017-05-17 Thread Chip Scheide via 4D_Tech
Sorry Alex, I will disagree... your statement makes me "WannaCry". (in case anyone misses the point... https://en.wikipedia.org/wiki/WannaCry_ransomware_attack) On Wed, 17 May 2017 15:23:37 +0200, Herr Alexander Heintz via 4D_Tech wrote: > far easier to administrate. --- Gas is for w

v13 - Accessing user groups in component

2017-05-17 Thread Chip Scheide via 4D_Tech
If I ask the question: User in group("Group";Current user) in a component, what am I seeing? the component's user groups or the host database? If I see the component's user groups - how do I access the host's users & groups? --- Gas is for washing parts Alcohol is for drinkin' Nitr

Re: v13 - Accessing user groups in component

2017-05-18 Thread Chip Scheide via 4D_Tech
> <http://doc.4d.com/4Dv16/4D/16.1/Interaction-between-components-and-host-databases.300-3373444.en.html> > > >> On May 17, 2017, at 4:11 PM, Chip Scheide via 4D_Tech >> <4d_tech@lists.4d.com> wrote: >> >> in a component, what am I seeing? th

Re: How to trap a form save keystroke in an object method ?

2017-05-18 Thread Chip Scheide via 4D_Tech
On Thu, 18 May 2017 03:51:46 +0200, Peter Jakobsson via 4D_Tech wrote: > Hi > > I rarely come across this problem. > > Lets say you have a field with an “On Data Change” object method > which does field level validation that rejects an entry. > > Lets says the form has a default button and the

Re: How to trap a form save keystroke in an object method ?

2017-05-18 Thread Chip Scheide via 4D_Tech
don't revert the 'Bad" value. Enter : 9 hit On data change : - Alert("The value you entered '9' is invalid.") Goto object(whateveritis called) On Save : Test for bad value(s) - find bad value (from above) Reject reset to good value, or clear On Thu, 18 May 2017 11:29:34 +0200, Peter Jakobss

Re: Primary key contains duplicate values

2017-05-22 Thread Chip Scheide via 4D_Tech
assuming that in v15, the fields are correctly defined as PKs. in converting from v12 to v13 (in v13) I had to do this for each table: where $Field-> is a pointer to my PK field (UUIDs) For ($ii;1;Records in table($table->)) $Field->:=Generate UUID SAVE RECORD($table->) NEXT RECORD($Table->)

Re: V16 on OSX Application licence

2017-05-22 Thread Chip Scheide via 4D_Tech
Nigel, try either of these possible solutions: http://osxdaily.com/2016/09/27/allow-apps-from-anywhere-macos-gatekeeper/ (disables gatekeeper) Use command line to add exceptions to gatekeeper http://osxdaily.com/2015/07/15/add-remove-gatekeeper-app-command-line-mac-os-x/ On Mon, 22 May 2017 16:

v13 - Warning Compiler misses syntax error

2017-05-24 Thread Chip Scheide via 4D_Tech
I accidentally typed the following line of code: $0:=(Type($To_Validate->->)=Is Pointer) Notice anything wrong? At least the compiler did not... Error is : ->-> I haven't checked newer versions Chip --- Gas is for washing parts Alcohol is for drinkin' Nitromethane is for racing **

Re: v13 - Warning Compiler misses syntax error

2017-05-24 Thread Chip Scheide via 4D_Tech
->)->) // A > ALERT(String(Type($p2->->))) // 2 > ALERT(String(Type(($p2->)->))) // 2 > > Type and Alert have different tolerances? > > Keith - CDI > > >> On May 24, 2017, at 1:50 PM, Chip Scheide via 4D_Tech >> <4d_tech@lists.4d.com> wrot

Re: v13 - Warning Compiler misses syntax error

2017-05-25 Thread Chip Scheide via 4D_Tech
then should not the syntax be: ($To_Validate->)-> dereference the handle, then dereference the pointer On Thu, 25 May 2017 11:21:21 +0200, Bernd Fröhlich via 4D_Tech wrote: > Chip Scheide: > >> I accidentally typed the following line of code: >> $0:=(Type($To_

Re: Favorite tricks and keystrokes: Please take one and leave on

2017-05-26 Thread Chip Scheide via 4D_Tech
@ [t@1]f@1:=seq@n@ can result in: [table_1]Field_1 := Sequence Number it is amazing how short a line of code can be, before it is expanded - then you have to go back and ad the '\' to make it readable. :) You can use the @ to shortcut any tokenizable item. Commands, tables, fields, (your) met

Re: Favorite tricks and keystrokes: Please take one and leave on

2017-05-27 Thread Chip Scheide via 4D_Tech
command - K > On Sat, May 27, 2017 at 12:08 PM, Douglas von Roeder via 4D_Tech < > 4d_tech@lists.4d.com> wrote: > >> A recent discovery for me was a quick way to open the explorer. >> >> Put the insertion point in the method editor on an empty line and press >> Ctrl-k. > > > Sounds handy. I ju

Re: Favorite tricks and keystrokes: Please take one and leave on

2017-05-28 Thread Chip Scheide via 4D_Tech
should unless you have redefined it (which I have) > Doesn't alway work though :( > > On Sat, 27 May 2017 at 23:57, Chip Scheide via 4D_Tech > <4d_tech@lists.4d.com> > wrote: > >> command - K >> >>> On Sat, May 27, 2017 at 12:08 PM, Douglas

Re: Favorite tricks and keystrokes: Please take one and leave on

2017-05-28 Thread Chip Scheide via 4D_Tech
Not strictly 4D... on either platform if you can not get a key stroke to do .. something.. find a keystroke macro program, Keyboard Maestro for example. This can automate (read : type a single key combination) just about anything you can want. Also - on Mac, not sure about windows, WindowMizer.

Re: Favorite tricks and keystrokes: Please take one and leave on

2017-05-29 Thread Chip Scheide via 4D_Tech
type the command + ( and the command and parameters display at the bottom of the window > > - Need a quick reminder of command parameters? Just hover the mouse > over the 4D command name and wait for the tool tip to appear. Hell is other people Jean-Paul Sartre *

Macro anyone?

2017-05-30 Thread Chip Scheide via 4D_Tech
Anyone have a macro (or anything else) which will sort method editor text? I have a method which I am using to keep track of other methods I have worked on. I would like to sort this list. Currently I am copy/pasting in excel and sorting and copy/pasting back Would prefer not to do this. Thank

Re: Macro anyone?

2017-05-30 Thread Chip Scheide via 4D_Tech
AY($array;$SS) > > SORT ARRAY($array) > $text:="" > $size:=Size of array($array) > For ($i;1;$size) > $text:=$text+$array{$i}+$delim > End for > SET TEXT TO PASTEBOARD($text) > > Keith - CDI > >> On May 30, 2017, at 10:04 AM, Chip Scheide via

Re: Favorite tricks and keystrokes: Please take one and leave one

2017-05-30 Thread Chip Scheide via 4D_Tech
this is where Windowmizer is handy Minimize all open windows to their own title bar. expand Explorer window - open new stuff the 'old' stuff never need to close :) On Tue, 30 May 2017 10:45:30 -0600, Tom Dillon via 4D_Tech wrote: > I use a method called WindowList which puts a list of all the D

Re: Macro anyone?

2017-06-01 Thread Chip Scheide via 4D_Tech
Yeah.. I can imagine ! :) On Wed, 31 May 2017 20:28:40 -0700, Robert Livingston wrote: > – Boom, the method is sorted. > > > ************** > ************* > > It can be a little disconc

syntax : pointer to an element of a sub-array of 2D array

2017-06-01 Thread Chip Scheide via 4D_Tech
I have a pointer to a 2D array Array text($My_Array;5;10) $ptr:=->$My_Array I know that $ptr->{2} will reference the sub-array (of 10 elements) at element 2. I need to provide a pointer to this sub-array ex: My_Method(->($ptr->{1})) The above syntax does not seem to work, can someone help with

v13+ - Method editor, lists

2017-06-01 Thread Chip Scheide via 4D_Tech
Is there a way to permanently change what is displayed in the lists (lower section of method editor) when it is open? --- Gas is for washing parts Alcohol is for drinkin' Nitromethane is for racing ** 4D Internet Us

Empty 2D arrays - how to determine type

2017-06-01 Thread Chip Scheide via 4D_Tech
I need to determine the type of a 2D array, which maybe empty (i.e. size 0 x 0), which is at the end of a pointer In the method where the 2D array is declared Type(My_Array{0}) returns 18 (Array text) BUT when the 2D array is passed via pointer (to a component) Type($ptr->{0}) returns undef

Re: v13+ - Method editor, lists

2017-06-02 Thread Chip Scheide via 4D_Tech
;d vote for it ;) On Fri, 2 Jun 2017 10:19:06 +0200, Arnaud de Montard via 4D_Tech wrote: > >> Le 1 juin 2017 à 22:57, Chip Scheide via 4D_Tech >> <4d_tech@lists.4d.com> a écrit : >> >> Is there a way to permanently change what is displayed in the lists >> (

Re: syntax : pointer to an element of a sub-array of 2D array

2017-06-02 Thread Chip Scheide via 4D_Tech
Everyone who has replied so far. Thanks I am still struggling with this, but I am now closer, and have some direction, I'll report back my final solution. The actual implementation I am working on is : In a component, a method which can build 1 or more arrays of table and field information from

Re: syntax : pointer to an element of a sub-array of 2D array

2017-06-02 Thread Chip Scheide via 4D_Tech
THANKS Everyone for the help On Fri, 2 Jun 2017 14:58:33 +, Keisuke Miyako via 4D_Tech wrote: > sometimes its much easier to simply COPY ARRAY the whole array and back. > >> 2017/06/02 22:46、Chip Scheide via 4D_Tech <4d_tech@lists.4d.com> の >> メール: >> >&g

Re: syntax : pointer to an element of a sub-array of 2D array

2017-06-02 Thread Chip Scheide via 4D_Tech
I understand your thinking :) but... as this is going to be in a (compiled - I hope) component, I need to validate the hell out of the parameters, ESPECIALLY, pointers; as conceptually the component will be a black box. Input (via method call) -> component -> result actually the problems of

v13+ What table does a set belong to?

2017-06-02 Thread Chip Scheide via 4D_Tech
Is there *any* way to determine what table a random set belongs to? Thanks Chip --- Gas is for washing parts Alcohol is for drinkin' Nitromethane is for racing ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4

Feature request : Set Belongs to (Setname) -> table reference

2017-06-02 Thread Chip Scheide via 4D_Tech
test of feature request: A useful function would be to be able to determine what table a set belongs to. I.e. Does the Set "My_Set" contain records from [Table1], [Table2], [Table...], [TableN] This would help to eliminate issues with (accidentally) trying to do set manipulations on sets from d

[off] Textwrangler

2017-06-02 Thread Chip Scheide via 4D_Tech
I accidentally dragged a folder into blank document. Text wrangler then proceeded to give me a complete directory listing of the folder, and all of its sub folders as text Cr delimted Chip --- Gas is for washing parts Alcohol is for drinkin' Nitromethane is for racing **

Re: v13+ What table does a set belong to?

2017-06-03 Thread Chip Scheide via 4D_Tech
r_i=0) > $found:=True > End if > error_i:=0 > > If ($table_i=Get last table number) > $done:=True > End if > > CLEAR SET($known_empty_set) > > Until ($done | $found) > > If ($found) >

Re: Custom comments: Lots of tips, more wanted!

2017-06-05 Thread Chip Scheide via 4D_Tech
unless and/or until 4D gives us this ability: - IP vars define at startup - do not change On Mon, 5 Jun 2017 10:26:25 -0600, Cannon Smith via 4D_Tech wrote: >> Define(Theme;Label;Value) // Value can be Long, String, Real, or Boolean > > BTW, one nice thing about creating constants directly in cod

Followup on 'What table does a set belong to'

2017-06-06 Thread Chip Scheide via 4D_Tech
I have made a few posts on the forum regarding my feature request for a command "What table Does set belong" I had an "AH HA!" type moment after my last post. rather then the code that Jermey posted here, and similar code Jeorg posted on the forum. Both of which looped over all tables attempti

Re: Followup on 'What table does a set belong to'

2017-06-06 Thread Chip Scheide via 4D_Tech
let me clarify this one: 'list' is NOT a 4D list (as in list to array) it is Text with each set name found separated by a Return (Char13) On Tue, 6 Jun 2017 16:52:55 -0400, Chip Scheide via 4D_Tech wrote: > - utl_sets_What_Sets (->Table1;->Error_text) -> list of s

Vote for : better linked documentation

2017-06-07 Thread Chip Scheide via 4D_Tech
Title: Documentation : ALL commands related to a 'Theme' be included in the 'Theme' Summary : Add a section, for each theme, titled : Other Related Commands Which would link to commands that perform similar actions to the theme. In my example - theme Sets: There are 2 commands which are part

Re: Web serving on OS X Server

2017-06-09 Thread Chip Scheide via 4D_Tech
OS X server is OS X with a server application. On Fri, 9 Jun 2017 11:14:02 -0700, Lee Hinde via 4D_Tech wrote: > I've setup apache as a front end to 4D on 'regular' macs without issue. But > now I need to do it on a Mac running the Server software and I'm not clear > where/how to configure that an

Re: Web serving on OS X Server

2017-06-09 Thread Chip Scheide via 4D_Tech
rrect, I need other parts of OS X Server on this computer. > >> On Jun 9, 2017, at 11:54 AM, Chip Scheide >> <4d_o...@pghrepository.org> wrote: >> >> OS X server is OS X with a server application. >> >> On Fri, 9 Jun 2017 11:14:02 -0700, Lee Hinde via 4D

Re: Desktop DBMS engines

2017-06-11 Thread Chip Scheide via 4D_Tech
double(?) Helix Foxpro -- Mac/windows version (pre ms purchase) , along with Visual Foxpro (windows only fate MS purchase) Hypercard - might be considered/used as a database Also - I *think* there is/was a desktop version of DB2, although maybe it was just a client > Folks - > > Can anyone ext

Re: Programmatically scroll a web area

2017-06-11 Thread Chip Scheide via 4D_Tech
maybe - Post Key - Home or command/control Home > Stupid question I hope -- > > I'm displaying a PDF in a web area (4D 15.4/Mac) but the web area > always scrolls to the end of the document when it initially displays. > > How can I have it display at the start of the PDF (scroll bar all the >

Re: Linux in the future?

2017-06-19 Thread Chip Scheide via 4D_Tech
Apple announced a 'fill-in' Mac pro - not sure of pricing it is a beefed up iMac, so.. you will have to deal with an 'all-in-one' form factor On Fri, 16 Jun 2017 16:43:45 +0200, Paul Lovejoy via 4D_Tech wrote: > Neil, > > Yes, we’ve been looking into the Mac Pro as an option to replace a > sta

Re: Modal dialog dilemma

2017-06-19 Thread Chip Scheide via 4D_Tech
how about: in first form: b_accepct_form_1 (no action - code does an accept b_cancel_form_1 (no action) - cade does cancel second form: b_accepct_form_2 (no action - code does an accept b_cancel_form_2 (no action) - cade does cancel Note : - No automatic action(s) - different button names this *

Re: Enterable Variables in Output Form headers

2017-06-19 Thread Chip Scheide via 4D_Tech
I think this idea will work for you. use modify selection - set table in read only first records are not editable and the behavior you desire (enterable variable(s)) should be available. as for Listboxes: there are 2 types, array and selection based. - an array listbox functions as you suggest (ar

Re: voting for feature requests on the forum

2017-06-20 Thread Chip Scheide via 4D_Tech
- Go to : forums.4d.fr - log in - about 1/2 way down the page 'Feature Requests', click on the link You are now at the Feature requests forum. As to finding a specific request... I have not figured out the filters. They never seem to give what I expect, so I just scroll through until I find it, o

v13+ - component method parameters

2017-06-21 Thread Chip Scheide via 4D_Tech
I have been working on a component. I am in the final(?) stages of completing the component. Many of the component methods require 1 or more pointers as parameters. I am testing, and in my testing database, I try to compile. During this testing, the component is NOT compiled, or built. I am gettin

Re: v13+ - component method parameters

2017-06-21 Thread Chip Scheide via 4D_Tech
rent method name;$Errors) //report the error //End utl_whatsets_Validate On Wed, 21 Jun 2017 17:37:19 +0200, Arnaud de Montard via 4D_Tech wrote: > >> Le 21 juin 2017 à 16:38, Chip Scheide via 4D_Tech >> <4d_tech@lists.4d.com> a écrit : >> >> $Table:=$1 >> $Array:=$2 >

(resolved?) Re: v13+ - component method parameters

2017-06-21 Thread Chip Scheide via 4D_Tech
to do with trying to compile a database with an interpreted component?!?! On Wed, 21 Jun 2017 10:38:10 -0400, Chip Scheide via 4D_Tech wrote: > I have been working on a component. > I am in the final(?) stages of completing the component. > Many of the component methods require 1 or more poi

Compiled componets and different 4D versions

2017-06-21 Thread Chip Scheide via 4D_Tech
What are the implications of a component compiled for v13 being used in a database under higher version of 4D? In other words, is it necessary to recompile/build for every (major) version of 4D? Thanks --- Gas is for washing parts Alcohol is for drinkin' Nitromethane is for racing

Re: (resolved?) Re: v13+ - component method parameters

2017-06-22 Thread Chip Scheide via 4D_Tech
my issue would be the error message. Error : Invalid Parameter : Pointer does not equal (at least to me) Error : Interpreted Component in compiled database On Thu, 22 Jun 2017 09:49:51 +0200, Arnaud de Montard via 4D_Tech wrote: > >> Le 21 juin 2017 à 18:44, Chip Scheide vi

Re: Compiled componets and different 4D versions

2017-06-22 Thread Chip Scheide via 4D_Tech
wrote: > >> Le 21 juin 2017 à 19:15, Chip Scheide via 4D_Tech >> <4d_tech@lists.4d.com> a écrit : >> >> What are the implications of a component compiled for v13 being used in >> a database under higher version of 4D? >> >> In other words,

[Ann] 4D Set Component

2017-06-22 Thread Chip Scheide via 4D_Tech
available here : https://www.dropbox.com/s/075k0ap7afervs8/Sets_Component_v1.0.zip?dl=0 Distributed as shareware $15 ($35 for source & a suite testing routines), it is a compiled/built component created in v13. If you like it you are free to reuse/distribute etc. Many of the provided methods ar

Re: Contextual Cut, Copy & Paste...?

2017-06-22 Thread Chip Scheide via 4D_Tech
given the amount of work (either coding, and/or clicking check boxes) required -- of course unless you get to bill double for the time (once for the work and once for it being stupid to have to do) What is wrong with: Command/Cntrl + a Command/Cntrl + c or Command/Cntrl + x and Command/Cntrl

v13 (+?) - method editor - method properties

2017-06-23 Thread Chip Scheide via 4D_Tech
I may be missing something, but. if I select a method, or 20 and then (contextual menu) select 'Batch settings of attributes' I expect - it doesn't seem to work like this - that what ever attribute I select and value I give that attribute should be applied against the selected methods. does it w

Re: Rotate Picture in 4D

2017-06-26 Thread Chip Scheide via 4D_Tech
270 :) On Sun, 25 Jun 2017 20:51:57 +0100, Peter Mew via 4D_Tech wrote: > Can anyone see why and suggest a modification > to make it so --- Gas is for washing parts Alcohol is for drinkin' Nitromethane is for racing *

Re: v13+ - component method parameters

2017-06-26 Thread Chip Scheide via 4D_Tech
ecords in Set()>0? > Thanks, > Alan > > On Wed, Jun 21, 2017 at 12:30 PM, Chip Scheide via 4D_Tech < > 4d_tech@lists.4d.com> wrote: > >> Thanks. >> >> The code runs, interpretably just fine. >> I have to re-test, but I think the code runs fine when

Re: [Ann] 4D Set Component

2017-06-26 Thread Chip Scheide via 4D_Tech
David, This will not work in my component, mostly because I didn't know such a thing existed... I will look into it later this week, and if this behavior exists, I'll update and include it. And post back to let you know. Chip On Sun, 25 Jun 2017 11:41:31 +1000, David Adams via 4D_Tech wrote: >

Re: Is there a way to get a list of set semaphores?

2017-06-26 Thread Chip Scheide via 4D_Tech
The only way I can think of is to know* all the semaphores and use Test Semaphore * - if you create 'random' semaphores - add them to an IP array, otherwise build an IP array with all the possible semaphores On Mon, 26 Jun 2017 11:23:28 -0700, Kirk Brooks via 4D_Tech wrote: > Just wondering. >

Re: v13+ - component method parameters

2017-06-27 Thread Chip Scheide via 4D_Tech
Yes. It is mine. On Mon, 26 Jun 2017 17:24:55 -0400, Alan Tilson wrote: > Chip, > Thanks for the link. I'll try to check it out. Is it your component? > Alan > > On Mon, Jun 26, 2017 at 11:13 AM, Chip Scheide <4d_o...@pghrepository.org> > wrote: > >> Alan

Re: Generating Random Numbers

2017-06-27 Thread Chip Scheide via 4D_Tech
Below are some links to sites which show statistics on various password frequency, some based on hacked password systems. A summary on passwords - from where I do not remember - We have succeeded in enfacing passwords which are difficult for us humans to use/remeber, and easy for computers to (

Re: Generating Random Numbers

2017-06-27 Thread Chip Scheide via 4D_Tech
I ran into a problem with the PHP execute code, it was throwing an error, I do not know exactly why, and of course I can't get it to repeat now to capture the error message... Also it was a bit slower. replacing (for capital letters) Char(Random%($CapEnd-$CapStart+1))+$CapStart) -- (656 seconds

v13 (+?) - Replace String [warning]

2017-06-27 Thread Chip Scheide via 4D_Tech
I was playing around with the code StringOmit from Keith Culotta. I made some changes, which should make it faster... still testing. but in the process I found a 'problem' with Replace String. I have a 4.8 meg text, I am using for testing. I accidentally ran the following line of code against it.

Re: v13 (+?) - Replace String [warning]

2017-06-27 Thread Chip Scheide via 4D_Tech
It was lunch time any way :) On Tue, 27 Jun 2017 22:59:01 +0200, Arnaud de Montard via 4D_Tech wrote: >> >> [...] >> I have a 4.8 meg text, I am using for testing. >> I accidentally ran the following line of code against it. >> >> $Source:=Replace String($Source;Char(9);"";*) >> >> [...] it t

Re: 4Dv16 VM app still not playing nice with Finder

2017-06-29 Thread Chip Scheide via 4D_Tech
I do not know that this would work... but when you drag n drop a file form the finder the path is placed on the clipboard. maybe, during startup see if the clipboard contains a valid path, if so then use Open Data file to open that file. Chip On Thu, 29 Jun 2017 12:23:42 -0700, Steve Slanec via

v13 (v14? v15?)- Replace String "fix"

2017-06-29 Thread Chip Scheide via 4D_Tech
I have been playing with text stuff recently. I was posted a warning regarding Replace String and the fact that it takes - forever - to do large replacement counts in large texts. 500,000 replaces in 4,800,000 characters was something like 30 minutes. I found a "Fix". It is easy, it is simple,

Re: v13 (+?) - Replace String [warning]

2017-06-29 Thread Chip Scheide via 4D_Tech
I have a question.. what does RVLB (at the end of the blob) do? On Wed, 28 Jun 2017 06:09:43 +0800, Alan Chan via 4D_Tech wrote: > Hi Chip, > > Try the following and it should be done in a second or 2 (compiled). > > //ES_ReplaceStr_Shrink($source;$oldString;$newString;{$count > pointer})->R

RE: v13 (v14? v15?)- Replace String "fix"

2017-06-29 Thread Chip Scheide via 4D_Tech
Thanks! Some day v15 or v16, or maybe even v17 :) Chip On Thu, 29 Jun 2017 20:32:58 +, Timothy Penner wrote: > Hi Chip, > >> It is easy, it is simple, and it results in better then 650x >> improvement in speed, and it should not hurt if used in a version >> where the 4D has rewritten

Re: 4Dv16 VM app still not playing nice with Finder

2017-06-29 Thread Chip Scheide via 4D_Tech
is has to be an issue for other people developing > vertical market apps... > > - S > > >> On Jun 29, 2017, at 12:44 PM, Chip Scheide >> <4d_o...@pghrepository.org> wrote: >> >> I do not know that this would work... >> but when you drag n

Re: An efficient printing approach...

2017-06-30 Thread Chip Scheide via 4D_Tech
1st - you should have redacted the patient names - that is a HIPPA (read that as a FEDERAL issue) problem, and you should pull this document - NOW!! 2nd - The second page illegible making assumption: - all the primary data is in one table ([dispensations]) - using print form (I would think abou

Re: An efficient printing approach...

2017-07-01 Thread Chip Scheide via 4D_Tech
Rboert, these emails are archived in publicly accessible places One I can think of - 4D, nibble, game -- probably others. > Hi Scott, I'm in New Orleans... I appreciate your response as well as > the thoughtful and helpful comments from Chip, Kirk, Chuck, Jim and > Arnaud. The sample data provi

Re: Nested transactions - most appreciated feature

2017-07-02 Thread Chip Scheide via 4D_Tech
Transactions around a UI can be very useful. When it is necessary to drill down many levels, it gets to be very difficult, or impossible to 'undo' an action when needed. for example in my system we track animals (research). for each animal, there are a lot of related data. - Cages, where there ar

Request : Text utilities

2017-07-05 Thread Chip Scheide via 4D_Tech
I am putting together a component, at this moment for personal/work use, but might distribute it. I am looking for ideas/code for text utilities that you might be using. Areas I have covered: - Conversion to/from text - Counting Occurrences of a character(string) - parsing a text (Start on the le

Re: Corrupted index and likely record - which Record(s)

2017-07-05 Thread Chip Scheide via 4D_Tech
it would seem to me that the problem is not the data file, rather the structure. because: if the data file9s) in backup were not open(assumed), and they used to open correctly... then regardless of what tools is saying maybe the damage is actually in the structure, as it would have been open

Re: Request : Text utilities

2017-07-06 Thread Chip Scheide via 4D_Tech
Thanks for the links and info On Thu, 6 Jul 2017 07:23:51 +1000, David Adams via 4D_Tech wrote: > On Thu, Jul 6, 2017 at 1:28 AM, Chip Scheide via 4D_Tech < > 4d_tech@lists.4d.com> wrote: > >> >> Things I know I need : >> - Phone # formatting, to include va

Re: Request : Text utilities

2017-07-06 Thread Chip Scheide via 4D_Tech
past. > > > Regards, > > Wayne > > > [image: --] > Wayne Stewart > [image: http://]about.me/waynestewart > <http://about.me/waynestewart> > > > On 6 July 2017 at 07:23, David Adams via 4D_Tech <4d_tech@lists.4d.com> > wrote: > >> O

Re: Request : Text utilities

2017-07-06 Thread Chip Scheide via 4D_Tech
r -add a date -upper/lower case file name -variations on CamelCase file names -insert specified character(s) at specified location On Wed, 5 Jul 2017 19:44:59 -0400, David Eddy via 4D_Tech wrote: > Chip - > > On Jul 05, 2017, at 3:00 PM, Chip Scheide <4d_o...@pghrepository.org >

revelation! - Choose

2017-07-06 Thread Chip Scheide via 4D_Tech
Thanks to code from Robert Livingston I found out about a command I had not known about Choose I love this command if anyone does not know about it - read it is so nice to do in one line of code what other wee takes at least5 Chip --- Gas is for washing parts Alcohol is for drinkin'

Re: revelation! - Choose

2017-07-06 Thread Chip Scheide via 4D_Tech
ent from my iPhone > >> On Jul 6, 2017, at 12:45 PM, Chip Scheide via 4D_Tech >> <4d_tech@lists.4d.com> wrote: >> >> Thanks to code from Robert Livingston >> I found out about a command I had not known about >> Choose > > ***

Re: How to clear the Menu Bar

2017-07-07 Thread Chip Scheide via 4D_Tech
Menu Bar () On Fri, 07 Jul 2017 16:29:30 -0400, Jim Medlen via 4D_Tech wrote: > > What is the best way to Clear or reset the menu bar to prevent > multiple menus ? > > I do not see a Clear or Reset Menu Bar option. > > I am getting multiple menus displayed when more than one > form is open with

Re: revelation! - Choose

2017-07-10 Thread Chip Scheide via 4D_Tech
On Mon, 10 Jul 2017 09:03:21 +, Keisuke Miyako via 4D_Tech wrote: > > unlike Case of~End case, Choose evaluates all expressions. > for example you can do something like >[snip] > but you can't do > > c_TEXT(${1}) > $something:=Choose(Count parameters;"";$1;$2;$3) > > because $1, $2 and $3 ar

Re: revelation! - Choose

2017-07-10 Thread Chip Scheide via 4D_Tech
On Mon, 10 Jul 2017 09:03:21 +, Keisuke Miyako via 4D_Tech wrote: > > unlike Case of~End case, Choose evaluates all expressions. How Sad... This is Sooo much nicer to read/look at: $Specified_Fields:=Choose(Count parameters>=2;$2;<>ptr_Nil) $Errors:=Choose(Count parameters>=3;$3;<>ptr_Nil) $S

Interesting(?) Tales of Coding Was : Request for tech note

2017-07-10 Thread Chip Scheide via 4D_Tech
I picked up a database written in FoxPro (for Mac). This code was running on a Motorola G3 box. In it the previous programmer needed to do some combinatorial matrix work. In Fox Pro, without having ever seen 4D's set functionality, he basically wrote 4D sets, as string/text operations!!! Combin

Re: Interesting(?) Tales of Coding Was : Request for tech note

2017-07-10 Thread Chip Scheide via 4D_Tech
love it $Which_Was_It:=Choose(Pair=Pear;"Myspelling/typing";"Damned Auto Correct") :) Chip On Mon, 10 Jul 2017 11:51:33 -0400, Roger Reed – Illus House wrote: > Delicious… and beautiful work. Including, that the phrase “ > pear-shaped” itself went pear-shaped and became “pair-shaped”. --

Re: Interesting(?) Tales of Coding Was : Request for tech note

2017-07-11 Thread Chip Scheide via 4D_Tech
https://i.redd.it/fjcv9evg6u8z.png now THAT is hard work. I wonder if it was complete... Chip --- Gas is for washing parts Alcohol is for drinkin' Nitromethane is for racing ** 4D Internet Users Group (4D iNUG) FAQ:

Re: Quick report strange behavior

2017-07-11 Thread Chip Scheide via 4D_Tech
No I do not. I have seen posts regarding font size issues and windows 7?, 8?, 10? Since I do not use 4D on these systems I do not pay a lot of attention. search the archives on the 4D KB, or gmane, or Nabble sorry, best I can offer Chip On Tue, 11 Jul 2017 17:50:45 +0200, stardata.info via 4D_

Re: Quick report strange behavior

2017-07-11 Thread Chip Scheide via 4D_Tech
his problems. > > All report are very small this not depend of the font used > > Thanks > /Ferdinando/ > > Il 11/07/2017 18:12, Chip Scheide ha scritto: >> No I do not. >> I have seen posts regarding font size issues and windows 7?, 8?, 10? >> >> Sinc

Re: Object field storage: Questions and alternatives

2017-07-11 Thread Chip Scheide via 4D_Tech
not really following this thread but... if compacted-ness is primary. JSON, TSV, whatever text format save to disk zip (using 7zip or whatever) via LEP document to blob access to the data is not easy, you may need to create a searchable set of keywords (or something) but that would give most co

v13+ - How to do a 'Find in array' with a picture array?

2017-07-12 Thread Chip Scheide via 4D_Tech
I have a picture array which has icons I want to use it as a key to the contents of other (parallel) arrays. basically if icon{1} = pic1 - do something if icon{1} = pic2 - do something else etc . . . any ideas? code? Thanks Chip --- Gas is for washing parts Alcohol is for drinkin'

<    1   2   3   4   5   6   7   8   9   10   >