Don Lapin | 1 May 01:21 2012
Picon

"u" versus "u"-with-a-hat character

Hi Everyone,

I need to be able to import/export from/to older versions, which use Char(252) and Char(251) for field and
record delimiters. I'm calling

USE CHARACTER SET("ISO-8859-1";1)
RECEIVE PACKET(InDoc;$packet;$packetSize)
$len:=Position($endOfRec;$packet)

But when I test for $len, it's finding a "u" without a hat at position 181, instead of a "u" with a hat (Char 252)
at position 88. In the debugger, it thinks that the two are equal to each other

(Substring($packet;88;1)=Substring($packet;181;1)) -> returns true

..and yet it does not see the earlier instance (at position 88). I've also tried "macintosh" and "MacRoman"
in the use character set command. If I append the asterisk onto the Position command, it finds nothing.

What's the work-around?

Thank you,
Don

**********************************************************************
4D v13 is available now - with more than 200 new features to make
your applications richer and faster
http://www.4d.com/products/new.html

4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
(Continue reading)

Spencer Hinsdale | 1 May 02:22 2012

Re: "u" versus "u"-with-a-hat character


On Apr 30, 2012, at 4:21 PM, Don Lapin <donl@...> wrote:
> 
> What's the work-around?
> 

try using the * parameter for Position

-spencer

**********************************************************************
4D v13 is available now - with more than 200 new features to make
your applications richer and faster
http://www.4d.com/products/new.html

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

Sujit Shah | 1 May 03:30 2012
Picon

V13 Web server Launch

I am finding that I have to manually Start the 4D web server even though it
is ticked "Launch on Start" in preferences. I did not see this problem in
V12...

(OS Win XP)

--

-- 

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
"There must be ingenuity as well as intention, strategy as well as
strength. "
**********************************************************************
4D v13 is available now - with more than 200 new features to make
your applications richer and faster
http://www.4d.com/products/new.html

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

Keisuke Miyako | 1 May 03:42 2012

Re: V13 Web server Launch

Hello,

there seems to a bug where the preference setting and START WEB SERVER the command can't coexist;
already brought to our notice...

miyako

On 2012/05/01, at 10:30, Sujit Shah wrote:

> I am finding that I have to manually Start the 4D web server even though it
> is ticked "Launch on Start" in preferences. I did not see this problem in
> V12...

**********************************************************************
4D v13 is available now - with more than 200 new features to make
your applications richer and faster
http://www.4d.com/products/new.html

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

Sujit Shah | 1 May 03:50 2012
Picon

Re: V13 Web server Launch

No I mean start from the design environment no START WEB SERVER CALL.

On Tue, May 1, 2012 at 11:42 AM, Keisuke Miyako <Keisuke.Miyako@...>wrote:

> Hello,
>
> there seems to a bug where the preference setting and START WEB SERVER the
> command can't coexist;
> already brought to our notice...
>
> miyako
>
> On 2012/05/01, at 10:30, Sujit Shah wrote:
>
> > I am finding that I have to manually Start the 4D web server even though
> it
> > is ticked "Launch on Start" in preferences. I did not see this problem in
> > V12...
>
>
>
>
>
> **********************************************************************
> 4D v13 is available now - with more than 200 new features to make
> your applications richer and faster
> http://www.4d.com/products/new.html
>
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
(Continue reading)

Keisuke Miyako | 1 May 04:06 2012

Re: V13 Web server Launch

I think It's the same thing...

miyako

On 2012/05/01, at 10:50, Sujit Shah wrote:

> No I mean start from the design environment no START WEB SERVER CALL.

**********************************************************************
4D v13 is available now - with more than 200 new features to make
your applications richer and faster
http://www.4d.com/products/new.html

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

Matthias Schmidt | 1 May 04:32 2012
Picon

Re: "u" versus "u"-with-a-hat character


Am 01.05.2012 um 08:21 schrieb Don Lapin:

> Hi Everyone,
> 
> I need to be able to import/export from/to older versions, which use Char(252) and Char(251) for field and
record delimiters. I'm calling
> 
> USE CHARACTER SET("ISO-8859-1";1)
> RECEIVE PACKET(InDoc;$packet;$packetSize)
> $len:=Position($endOfRec;$packet)
> 
> But when I test for $len, it's finding a "u" without a hat at position 181, instead of a "u" with a hat (Char
252) at position 88. In the debugger, it thinks that the two are equal to each other
> 
> (Substring($packet;88;1)=Substring($packet;181;1)) -> returns true
> 
> ..and yet it does not see the earlier instance (at position 88). I've also tried "macintosh" and
"MacRoman" in the use character set command. If I append the asterisk onto the Position command, it finds nothing.
> 
> What's the work-around?

I'd compare on Character Code level instead of "=", so in this case:
Chararcter Code ($packet≤88≥) = Chararcter Code ($packet≤181≥)
which would be probably also faster than the Substring version ;-)
Of course you need to test the string length before else you'll be surprised ....
cheers
Matthias

**********************************************************************
(Continue reading)

Jim Redfield | 1 May 04:48 2012
Picon
Picon

Re: Off Topic: Facetime from Cannes, France

David,

We use an iPhone with tethering activated to connect up to 5 devices. It works ok, but not brilliant.
Performance is good. We have used this in remote regions (mountains of eastern Idaho) where no other way to
connect to the internet are available on a casual basis. I know this is not exactly your situation, but an
iPhone (or any other phone that supports tethering) is an excellent solution without the need of a
separate box.

Jim 

On Apr 27, 2012, at 5:44 PM, David Adams wrote:

> On Sat, Apr 28, 2012 at 4:10 AM, Steve Campbell <steve@...> wrote:
>> Who could better answer this question than folks on the NUG?
>> 
>> My daughter is going to Cannes, France for a couple of weeks.  Her two pre-school daughters will stay home
in California.  Assuming she is in a Wi-Fi zone, can she expect to connect via "Face Time" on her Verizon
iPhone from Cannes back to California?
>> 
>> Sorry to do an off topic, but I didn't know of a better group to ask.
> 
> You've already had a good answer but I figured I'd throw in something
> sort of related. When you travel overseas or stay in various sorts of
> hotels, WiFi can either be very expensive or unavailable. Sure there
> are plenty of times when it's reasonably priced and accessible...I'm
> talking about the other times. With this in mind, I've been looking
> into MiFi routers lately. In the US, there are various models sold on
> contracts and you can also buy unlocked versions. The options seem to
> be considerably better in other countries but pretty much everything
> is available in the US if you look. The way it works is that you pop a
(Continue reading)

Steve Campbell | 1 May 06:09 2012

ListBox Row Font Color based on array element value

In June of 2007 I sent a message asking if there is a way to procedurally change the background and/or font
color of a specific "Row" in a ListBox displaying 4 array columns.

The solution was quick and direct.  But it fails to work in V12.

I've tried to follow more recent posts from Chip, Arnaud, David and Jeremy but my attempts have failed.

It seems simple.  I would like a Timer Form Event to set the colors for each row based on a value in the first
element of the row.  There's no problem with the Timer, just the colors.

eg:   Row       Value    Make Row/Font Color
       Row 1   "Urgent"         = Red
       Row 2   "Urgent "        = Red
       Row 3   "Important"    = Orange
       Row 4   "Done"           = Blue
       Row 5   "Routine       = Green
       Row 6   "Done"           = Blue

I am embarrassed to think how many attempts I've tried over the past 8 hours.  I've tried a method name in the
Color properties field, RBG colors and regular colors, put things on the ListBox object Method event on
load and on clicked and on display detail.  I just can't get it together.

Thanks for any help you extend.


Steve Campbell
steve@...

(Continue reading)

Sujit Shah | 1 May 06:51 2012
Picon

Re: ListBox Row Font Color based on array element value

Have you tried the "On Outside Call" event and run the colour changing
calling method in a separate process?

On Tue, May 1, 2012 at 2:09 PM, Steve Campbell <steve@...> wrote:

> In June of 2007 I sent a message asking if there is a way to procedurally
> change the background and/or font color of a specific "Row" in a ListBox
> displaying 4 array columns.
>
> The solution was quick and direct.  But it fails to work in V12.
>
> I've tried to follow more recent posts from Chip, Arnaud, David and Jeremy
> but my attempts have failed.
>
> It seems simple.  I would like a Timer Form Event to set the colors for
> each row based on a value in the first element of the row.  There's no
> problem with the Timer, just the colors.
>
> eg:   Row       Value    Make Row/Font Color
>       Row 1   "Urgent"         = Red
>       Row 2   "Urgent "        = Red
>       Row 3   "Important"    = Orange
>       Row 4   "Done"           = Blue
>       Row 5   "Routine       = Green
>       Row 6   "Done"           = Blue
>
> I am embarrassed to think how many attempts I've tried over the past 8
> hours.  I've tried a method name in the Color properties field, RBG colors
> and regular colors, put things on the ListBox object Method event on load
> and on clicked and on display detail.  I just can't get it together.
(Continue reading)


Gmane