If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > single quote in database field....

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-29-04, 03:46
vijay garg vijay garg is offline
Registered User
 
Join Date: May 2004
Posts: 2
Question single quote in database field....

Hi All,
I am creating array in ASP from field in database.

like:

arr_hm_name[i] = OraDynaset("HMName")


I am filling array throu loop (1..recordcount)
When there is single quote in name field. This line is giving error.
Does anyone have faced such prolem. What's the solution...


Thanks
Reply With Quote
  #2 (permalink)  
Old 05-30-04, 18:21
ASP-Hosting.ca ASP-Hosting.ca is offline
Registered User
 
Join Date: Apr 2004
Posts: 50
What is the error?
Reply With Quote
  #3 (permalink)  
Old 05-30-04, 19:07
rokslide rokslide is offline
Registered User
 
Join Date: Nov 2003
Location: Christchurch, New Zealand
Posts: 1,617
From what I can see there is nothing obvious that would cause a problem. What is the actual error or perhaps the rest of the code that goes with the snippet you have given....
Reply With Quote
  #4 (permalink)  
Old 06-01-04, 11:43
Seppuku Seppuku is offline
Useless...
 
Join Date: Jul 2003
Location: SoCal
Posts: 721
For one thing, array's in ASP don't use [brackets]. They use (parenthesis):

arr_hm_name(i) = OraDynaset("HMName")
__________________
That which does not kill me postpones the inevitable.
Reply With Quote
  #5 (permalink)  
Old 06-01-04, 19:20
rokslide rokslide is offline
Registered User
 
Join Date: Nov 2003
Location: Christchurch, New Zealand
Posts: 1,617
good spotting seppuku, I've been writing javascript too long it would appear.
Reply With Quote
  #6 (permalink)  
Old 06-01-04, 19:23
Seppuku Seppuku is offline
Useless...
 
Join Date: Jul 2003
Location: SoCal
Posts: 721
I have a hard time keeping it straight myself.. going between ASP, JavaScript, Perl, and a host of other languages that handle them all differently, it requires quite a bit of mental discipline... I keep reference guides for them all... even though I know the languages, it those minute details that sometimes get me hung up the worst...
__________________
That which does not kill me postpones the inevitable.
Reply With Quote
  #7 (permalink)  
Old 06-01-04, 19:56
rokslide rokslide is offline
Registered User
 
Join Date: Nov 2003
Location: Christchurch, New Zealand
Posts: 1,617
Yeah, and arrays that start from 1 instead of zero and other stupid things like that...

You know what would be cool.... a consortium or standards committee for programming languages....
Reply With Quote
  #8 (permalink)  
Old 06-01-04, 20:32
Seppuku Seppuku is offline
Useless...
 
Join Date: Jul 2003
Location: SoCal
Posts: 721
Quote:
Originally Posted by rokslide
You know what would be cool.... a consortium or standards committee for programming languages....
It's called binary

This would be a binary encoded "Array":
0100000101110010011100100110000101111001

__________________
That which does not kill me postpones the inevitable.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On