|
View:
New views
16 Messages
—
Rating Filter:
Alert me
|
|
|
Mac 10.5.3 - Will this work OK with 2004.7r3?Does anyone have any experience with 2004.7r3 running on Mac OS 10.5.3?
All experiences are appreciated. Thank you! Ken Eyring ********************************************************************** The 4D v11 SQL Roadshow - coming to a city near you! http://www.4D.com/roadshow/index.html 4th Dimension Internet Users Group (4D iNUG) FAQ: http://www.4d.com/support/faqnug.html Archive: http://dir.gmane.org/gmane.comp.lang.inug-4d.tech Unsub: mailto:4D_Tech-Unsubscribe@... Post: mailto:4d_tech@... Options: https://lists.4d.com/mailman/listinfo/4d_tech ********************************************************************** |
|
|
Re: Mac 10.5.3 - Will this work OK with 2004.7r3?Ken,
I'm developing with it, no problems. Koen Op 2-jun-08, om 20:42 heeft Ken Eyring het volgende geschreven: > Does anyone have any experience with 2004.7r3 running on Mac OS > 10.5.3? All experiences are appreciated. -------------------- Compass bvba Koen Van Hooreweghe Kloosterstraat 65 9910 Knesselare Belgium bvbaCompass@... ********************************************************************** The 4D v11 SQL Roadshow - coming to a city near you! http://www.4D.com/roadshow/index.html 4th Dimension Internet Users Group (4D iNUG) FAQ: http://www.4d.com/support/faqnug.html Archive: http://dir.gmane.org/gmane.comp.lang.inug-4d.tech Unsub: mailto:4D_Tech-Unsubscribe@... Post: mailto:4d_tech@... Options: https://lists.4d.com/mailman/listinfo/4d_tech ********************************************************************** |
|
|
|
|
|
Re: Mac 10.5.3 - Will this work OK with 2004.7r3?Hi Mark and Koen,
Thanks for your replies. I'm always a little hesitant to tell a customer it is OK to upgrade the OS without having some previous experience (either my own or someone else's). Thanks again, Ken On 06/03/08 12:44 PM, Mark Jeffreys wrote: > >From Ken Eyring on Mon, 02 Jun 2008 14:42:26 -0400 > > >> Does anyone have any experience with 2004.7r3 running on Mac OS 10.5.3? >> All experiences are appreciated. >> > > Ken: > > I've had no problems with 10.5.3 in development or using 4D Client. > (That is, other than the problem with occasionally becoming unresponsive to > the keyboard, which has always been an annoyance in Leopard with 4D and some > other apps.) > > ‹ MLJ > > The 4D v11 SQL Roadshow - coming to a city near you! http://www.4D.com/roadshow/index.html 4th Dimension Internet Users Group (4D iNUG) FAQ: http://www.4d.com/support/faqnug.html Archive: http://dir.gmane.org/gmane.comp.lang.inug-4d.tech Unsub: mailto:4D_Tech-Unsubscribe@... Post: mailto:4d_tech@... Options: https://lists.4d.com/mailman/listinfo/4d_tech ********************************************************************** |
|
|
pointers and function callsIs there a problem with creating a pointer within a function call in 4D
2004? my_Function(->[constants]) Should the pointer be declared to a variable and that placed into the function call? Guy W. Willis Denison, TX ********************************************************************** The 4D v11 SQL Roadshow - coming to a city near you! http://www.4D.com/roadshow/index.html 4th Dimension Internet Users Group (4D iNUG) FAQ: http://www.4d.com/support/faqnug.html Archive: http://dir.gmane.org/gmane.comp.lang.inug-4d.tech Unsub: mailto:4D_Tech-Unsubscribe@... Post: mailto:4d_tech@... Options: https://lists.4d.com/mailman/listinfo/4d_tech ********************************************************************** |
|
|
Re: pointers and function callsGuy,
I've never had a problem with this form of usage. Do you mean to pass a table, or does your method expect a pointer to a field or variable? DKC >Is there a problem with creating a pointer within a function call in 4D 2004? > >my_Function(->[constants]) > >Should the pointer be declared to a variable and that placed into >the function call? -- Doug Cottrill PTM Software, LLC ********************************************************************** The 4D v11 SQL Roadshow - coming to a city near you! http://www.4D.com/roadshow/index.html 4th Dimension Internet Users Group (4D iNUG) FAQ: http://www.4d.com/support/faqnug.html Archive: http://dir.gmane.org/gmane.comp.lang.inug-4d.tech Unsub: mailto:4D_Tech-Unsubscribe@... Post: mailto:4d_tech@... Options: https://lists.4d.com/mailman/listinfo/4d_tech ********************************************************************** |
|
|
Re: pointers and function callsAm/On Thu, 5 Jun 2008 10:37:12 -0500 schrieb/wrote Dr. Guy W. Willis:
>Is there a problem with creating a pointer within a function call in 4D >2004? > >my_Function(->[constants]) > >Should the pointer be declared to a variable and that placed into the >function call? that's a question of style. I usually would do this in my_Function: C_Pointer($1) C_Pointer($p_Table) $p_Table:=$1 of course you can use $1 as well, $p_Table just says more about the parameter. cheers, Matthias ------------------------------------------------------------------------ Admilon Consulting GmbH Am Wiesengrund 9a, 90584 Allersberg, Germany Geschäftsführer: Peter Frank, Matthias Schmidt Amtsgericht Nürnberg: HRB 21750 Tel.: +49-9174 - 6646 Fax: +49-9174 - 6647 <http://www.admilon-consulting.de> ------------------------------------------------------------------------- ********************************************************************** The 4D v11 SQL Roadshow - coming to a city near you! http://www.4D.com/roadshow/index.html 4th Dimension Internet Users Group (4D iNUG) FAQ: http://www.4d.com/support/faqnug.html Archive: http://dir.gmane.org/gmane.comp.lang.inug-4d.tech Unsub: mailto:4D_Tech-Unsubscribe@... Post: mailto:4d_tech@... Options: https://lists.4d.com/mailman/listinfo/4d_tech ********************************************************************** |
|
|
Re: pointers and function callsDoug,
I want to pass the table to a function that will lock, unlock, check status, save record of a constants file. Sometimes the function fails because the pointer is not valid. Even though it is in the form.... my_Function(->[constants]) I get an error that says it is not a valid pointer. Guy W. Willis Denison, TX On Jun 5, 2008, at 10:49 AM, Doug Cottrill wrote: > Guy, > > I've never had a problem with this form of usage. Do you mean to pass > a > table, or does your method expect a pointer to a field or variable? ********************************************************************** The 4D v11 SQL Roadshow - coming to a city near you! http://www.4D.com/roadshow/index.html 4th Dimension Internet Users Group (4D iNUG) FAQ: http://www.4d.com/support/faqnug.html Archive: http://dir.gmane.org/gmane.comp.lang.inug-4d.tech Unsub: mailto:4D_Tech-Unsubscribe@... Post: mailto:4d_tech@... Options: https://lists.4d.com/mailman/listinfo/4d_tech ********************************************************************** |
|
|
Re: pointers and function callsAm/On Thu, 5 Jun 2008 10:57:10 -0500 schrieb/wrote Dr. Guy W. Willis:
>I want to pass the table to a function that will lock, unlock, check >status, save record of a constants file. > >Sometimes the function fails because the pointer is not valid. Even >though it is in the form.... > >my_Function(->[constants]) > >I get an error that says it is not a valid pointer. I've never seen this. Maybe you post your code ... cheers, Matthias ------------------------------------------------------------------------ Admilon Consulting GmbH Am Wiesengrund 9a, 90584 Allersberg, Germany Geschäftsführer: Peter Frank, Matthias Schmidt Amtsgericht Nürnberg: HRB 21750 Tel.: +49-9174 - 6646 Fax: +49-9174 - 6647 <http://www.admilon-consulting.de> ------------------------------------------------------------------------- ********************************************************************** The 4D v11 SQL Roadshow - coming to a city near you! http://www.4D.com/roadshow/index.html 4th Dimension Internet Users Group (4D iNUG) FAQ: http://www.4d.com/support/faqnug.html Archive: http://dir.gmane.org/gmane.comp.lang.inug-4d.tech Unsub: mailto:4D_Tech-Unsubscribe@... Post: mailto:4d_tech@... Options: https://lists.4d.com/mailman/listinfo/4d_tech ********************************************************************** |
|
|
Re: pointers and function callsGuy,
Can you post the code in the function you are calling? I see no reason why the pointer would not be valid in the call you are making. DKC >Doug, > >I want to pass the table to a function that will lock, unlock, check >status, save record of a constants file. > >Sometimes the function fails because the pointer is not valid. Even >though it is in the form.... > >my_Function(->[constants]) > >I get an error that says it is not a valid pointer. > -- Doug Cottrill PTM Software, LLC ********************************************************************** The 4D v11 SQL Roadshow - coming to a city near you! http://www.4D.com/roadshow/index.html 4th Dimension Internet Users Group (4D iNUG) FAQ: http://www.4d.com/support/faqnug.html Archive: http://dir.gmane.org/gmane.comp.lang.inug-4d.tech Unsub: mailto:4D_Tech-Unsubscribe@... Post: mailto:4d_tech@... Options: https://lists.4d.com/mailman/listinfo/4d_tech ********************************************************************** |
|
|
Re: pointers and function callsDoug and Mathias
Here is the code. I didn't have any compiler declarations. Could that be the problem? `This method should lock and unlock the table pointer that is passed to it `Lock_Record ( $1;$2) `$1 = table pointer `$2 = event $p_Table:=$1 $Delay:=120 Case of : ($2=1) `Set file to read only READ ONLY($p_Table->) UNLOAD RECORD($p_Table->) : ($2=2) `unlock record to be modified READ WRITE($p_Table->) LOAD RECORD($p_Table->) Repeat `loop until the record is unlocked LOCKED ATTRIBUTES(($p_Table->);$Process;$user;$Machine;$Name) If ($Process=-1) `has the recod been deleted in the meantime ALERT("The record has been deleted in the meantime.") OK:=0 Else If ($User="") `Are you in single-user mode $User:="you" End if CONFIRM("The record is already used by "+$User+" in the "+$Name+" Process.") If (OK=1) `If you want to wait for a few seconds UNLOAD RECORD($p_Table->) `unload the locked record DELAY PROCESS(Current process;$Delay) `delay 120 ticks - maybe rec gets unloacked LOAD RECORD($p_Table->) `load record again End if End if Until (Not(Locked($p_Table->))) : ($2=3) `save the unlocked record Repeat If (Locked($p_Table->)) `if the current record is locked by someone else UNLOAD RECORD($p_Table->) `unload the locked record DELAY PROCESS(Current process;$Delay) `delay15 ticks - maybe rec gets unloacked LOAD RECORD($p_Table->) `load record again End if Until (Not(Locked($p_Table->))) If (OK=1) ` the record is unlocked SAVE RECORD($p_Table->) UNLOAD RECORD($p_Table->) End if READ ONLY($p_Table->) `switch back to read-only : ($2=4) READ ONLY($p_Table->) UNLOAD RECORD($p_Table->) Else End case Guy W. Willis Denison, TX ********************************************************************** The 4D v11 SQL Roadshow - coming to a city near you! http://www.4D.com/roadshow/index.html 4th Dimension Internet Users Group (4D iNUG) FAQ: http://www.4d.com/support/faqnug.html Archive: http://dir.gmane.org/gmane.comp.lang.inug-4d.tech Unsub: mailto:4D_Tech-Unsubscribe@... Post: mailto:4d_tech@... Options: https://lists.4d.com/mailman/listinfo/4d_tech ********************************************************************** |
|
|
Re: pointers and function callsYES
I have found problems when wanting to send a pointer to a value so that now I always declare a local variable and pass a pointer that c_longint($myconstant) `set value of $myconstant my_Function(->$myconstant) Roger Dr. Guy W. Willis wrote: > Doug, > > I want to pass the table to a function that will lock, unlock, check > status, save record of a constants file. > > Sometimes the function fails because the pointer is not valid. Even > though it is in the form.... > > my_Function(->[constants]) > > I get an error that says it is not a valid pointer. > > Guy W. Willis > Denison, TX > > On Jun 5, 2008, at 10:49 AM, Doug Cottrill wrote: > >> Guy, >> >> I've never had a problem with this form of usage. Do you mean to pass a >> table, or does your method expect a pointer to a field or variable? > > ********************************************************************** > The 4D v11 SQL Roadshow - coming to a city near you! > http://www.4D.com/roadshow/index.html ********************************************************************** The 4D v11 SQL Roadshow - coming to a city near you! http://www.4D.com/roadshow/index.html 4th Dimension Internet Users Group (4D iNUG) FAQ: http://www.4d.com/support/faqnug.html Archive: http://dir.gmane.org/gmane.comp.lang.inug-4d.tech Unsub: mailto:4D_Tech-Unsubscribe@... Post: mailto:4d_tech@... Options: https://lists.4d.com/mailman/listinfo/4d_tech ********************************************************************** |
|
|
Re: pointers and function callsGuy,
There is a small chance that not having compiler declarations is the problem, so I'd try adding C_POINTER($1;$p_Table) I wouldn't have high hopes of that fixing it, but I don't see anything else obvious. What happens when you trace through it? Where does it complain that the pointer is invalid? >Doug and Mathias > >Here is the code. I didn't have any compiler declarations. Could >that be the problem? > -- Doug Cottrill PTM Software, LLC ********************************************************************** The 4D v11 SQL Roadshow - coming to a city near you! http://www.4D.com/roadshow/index.html 4th Dimension Internet Users Group (4D iNUG) FAQ: http://www.4d.com/support/faqnug.html Archive: http://dir.gmane.org/gmane.comp.lang.inug-4d.tech Unsub: mailto:4D_Tech-Unsubscribe@... Post: mailto:4d_tech@... Options: https://lists.4d.com/mailman/listinfo/4d_tech ********************************************************************** |
|
|
Re: pointers and function callsLe 5 juin 08 à 19:42, Dr. Guy W. Willis a écrit : > Doug and Mathias > > Here is the code. I didn't have any compiler declarations. Could > that be the problem? > [...] > $p_Table:=$1 I always test parameters received, like this : case of :(count parametres<2) error method :(not(isTablePointer($1))) error method :(...unbelievable value for $2...) error method else ...go on code... end case It's a little loss of time before, but it eliminates lots of errors before compiling, and greatly enhences security, for example, when code is executed on server. -- Arnaud de Montard ********************************************************************** The 4D v11 SQL Roadshow - coming to a city near you! http://www.4D.com/roadshow/index.html 4th Dimension Internet Users Group (4D iNUG) FAQ: http://www.4d.com/support/faqnug.html Archive: http://dir.gmane.org/gmane.comp.lang.inug-4d.tech Unsub: mailto:4D_Tech-Unsubscribe@... Post: mailto:4d_tech@... Options: https://lists.4d.com/mailman/listinfo/4d_tech ********************************************************************** |
|
|
Re: pointers and function callsI have found that encasing $p_Table in parentheses was causing 4D to
not dereference the pointer in the LOCKED ATTRIBUTES command. Go figure. By putting in the compiler commands and removing the parentheses, the method now works in single user mode. I will try it tomorrow on a server. Guy W. Willis Denison, TX ********************************************************************** The 4D v11 SQL Roadshow - coming to a city near you! http://www.4D.com/roadshow/index.html 4th Dimension Internet Users Group (4D iNUG) FAQ: http://www.4d.com/support/faqnug.html Archive: http://dir.gmane.org/gmane.comp.lang.inug-4d.tech Unsub: mailto:4D_Tech-Unsubscribe@... Post: mailto:4d_tech@... Options: https://lists.4d.com/mailman/listinfo/4d_tech ********************************************************************** |
|
|
Re: pointers and function callsDr. Guy W. Willis sez:
>Is there a problem with creating a pointer within a function call in 4D >2004? > >my_Function(->[constants]) No problemo Doc. -- ------------------------------------------------------------------ Tom Dillon PO Box 486 DataCraft Moab, UT 84532 TomDillon@... 720/209-6502 ------------------------------------------------------------------ What kind of stoooopid sig line is this? --- Sunastar ------------------------------------------------------------------ ********************************************************************** 4D Server v11 SQL has arrived! Buy it NOW at http://store.4ddepot.com 4th Dimension Internet Users Group (4D iNUG) FAQ: http://www.4d.com/support/faqnug.html Archive: http://dir.gmane.org/gmane.comp.lang.inug-4d.tech Unsub: mailto:4D_Tech-Unsubscribe@... Post: mailto:4d_tech@... Options: https://lists.4d.com/mailman/listinfo/4d_tech ********************************************************************** |
| Free Forum Powered by Nabble | Forum Help |