Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Bad_First_Char
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Kathy Rodittis  
View profile  
 More options Nov 12, 9:03 am
From: Kathy Rodittis <ka...@iads-soft.com>
Date: Thu, 12 Nov 2009 06:03:10 -0800 (PST)
Local: Thurs, Nov 12 2009 9:03 am
Subject: Bad_First_Char
This question comes from a user:

If I export to a CSV file and my parameter names start with a digit,
the names are prepended with the text "Bad_First_Char".  Is there any
way to turn this behavior off?


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Colmon, Eric J Mr CIV USAF AFMC 46 RANG/VTSDE  
View profile  
 More options Nov 12, 9:05 am
From: "Colmon, Eric J Mr CIV USAF AFMC 46 RANG/VTSDE" <Eric.Col...@EGLIN.AF.MIL>
Date: Thu, 12 Nov 2009 08:05:13 -0600
Local: Thurs, Nov 12 2009 9:05 am
Subject: RE: [IADS] Bad_First_Char
It just isn't a good practice to start parameter names with digits.  Put
the unique digits at the end.

V/r

Eric J. Colmon
Senior Software Engineer
46th RANG/VTSDE
Real Time Software Development Section
Freeman Computer Sciences Center
201 W. Eglin Blvd. STE 236
Eglin AFB, Fl 32542-6829
Work#: 850-882-9795   DSN: 872-9795


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
ka...@iads-soft.com  
View profile  
 More options Nov 12, 9:24 am
From: <ka...@iads-soft.com>
Date: Thu, 12 Nov 2009 09:24:43 -0500
Local: Thurs, Nov 12 2009 9:24 am
Subject: RE: [IADS] Bad_First_Char

Hi Eric-

I know that leading digits in parameter names are not a programmers favorite thing! But sometimes it's difficult or even impossible for a user to change all this parameter names so I'm hoping we have something in our code already that controls this feature. ( Jim knows I'm TDY right now so hopefully he'll forgive me for not looking myself. Sorry Jim! )

-Kathy



On Thu Nov 12 9:05 , 'Colmon, Eric J Mr CIV USAF AFMC 46 RANG/VTSDE' sent:

It just isn't a good practice to start parameter names with digits. Put
the unique digits at the end.

V/r


Eric J. Colmon
Senior Software Engineer
46th RANG/VTSDE
Real Time Software Development Section
Freeman Computer Sciences Center
201 W. Eglin Blvd. STE 236
Eglin AFB, Fl 32542-6829
Work#: 850-882-9795 DSN: 872-9795

-----Original Message-----
From: Kathy Rodittis [kathy@iads-soft.com','','','')">kathy@iads-soft.com]
Sent: Thursday, November 12, 2009 8:03 AM
To: IADS
Subject: [IADS] Bad_First_Char

This question comes from a user:

If I export to a CSV file and my parameter names start with a digit,
the names are prepended with the text "Bad_First_Char". Is there any
way to turn this behavior off?

--

You received this message because you are subscribed to the Google
Groups "IADS" group.
To post to this group, send email to iads@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/iads\?hl=.


--

You received this message because you are subscribed to the Google Groups "IADS" group.
To post to this group, send email to iads@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/iads\?hl=.




    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Colmon, Eric J Mr CIV USAF AFMC 46 RANG/VTSDE  
View profile  
 More options Nov 12, 9:35 am
From: "Colmon, Eric J Mr CIV USAF AFMC 46 RANG/VTSDE" <Eric.Col...@EGLIN.AF.MIL>
Date: Thu, 12 Nov 2009 08:35:19 -0600
Local: Thurs, Nov 12 2009 9:35 am
Subject: RE: [IADS] Bad_First_Char
:-)   Yup... I was viewing this from a programmer's perspective...

I think not starting parameter names with digits was a carryover from
our Loral days before we switched to the Omega Servers.

I can't recall if the Omega naming convention restricts digits from
starting parameter names.

Eric J. Colmon
Senior Software Engineer
46th RANG/VTSDE
Real Time Software Development Section
Freeman Computer Sciences Center
201 W. Eglin Blvd. STE 236
Eglin AFB, Fl 32542-6829
Work#: 850-882-9795   DSN: 872-9795


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
James Bretz  
View profile  
 More options Nov 12, 11:17 am
From: "James Bretz" <j...@iads-soft.com>
Date: Thu, 12 Nov 2009 08:17:45 -0800
Local: Thurs, Nov 12 2009 11:17 am
Subject: Re: [IADS] Bad_First_Char
Kathy,

> This question comes from a user:

> If I export to a CSV file and my parameter names start with a
> digit,
> the names are prepended with the text "Bad_First_Char". Is there
> any
> way to turn this behavior off?

Unfortunately, looks like it can't be turned off for CSV files.

Looking at the import code, Matlab (and possibly Excel and a majority of the
other programs you would export to) have "issues" with when a variable name
starts with a number.

The long term answer (as Eric points out) is to avoid numeric based
parameter names. Depending on the format, it could even lead to problems in
a derived equation. For example, we had a user with a parameter name
1025E28. That was actually interpreted by the derived engine as a numerical
constant 1.025 * 10^31.

Having said that, this is an export to a CSV file.... so in theory, there's
no need filter the parameter name. We should probably remove that
restriction for CSV files. I'll add that to our list for the next release.

At this point, the only reasonable work around I can think of is to perhaps
use the "short name" as the export variable name. See "Data Groups" in the
help file for the export options (PropertyBag field).

\\NamingMethod=ShortName

Hopefully, the short name for the parameter (ParameterDefaults table
setting) is a little less numeric ;)

Jim


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google