From: assemblywizard@gmail.com   
      
   OK, Bonehead:   
      
   Create a working example, one char at a time with readkey and VAL can   
   convert it to a real... you code DOES NOT WORK--it is only obvious you   
   wrote the code totally ignorant to the fact IT WILL NOT WORK!   
      
   John   
      
   "Jim Leonard" wrote in message   
   news:1117225741.491422.70130@g49g2000cwa.googlegroups.com...   
   > John Smith wrote:   
   >> ... well, you have given methods... none of which work...   
   >>   
   >> ... forget giving me methods of getting a string one character at a   
   >> time...   
   >> after you use any method, take the string and run val on it and write out   
   >> the real--it WILL be zero!   
   >>   
   >> You seem to wish to teach me syntax... that is NOT what I am after...   
   >> and   
   >> here the matter hangs...   
   >   
   > Geezus H. Christ. You want us to write the damn code for you? Several   
   > times people have given you the information you need for you to WRITE   
   > IT YOURSELF, from fixing the string-building-by-character code you   
   > submitted, to explicitly stating that, yes, val() *is* the correct   
   > function to use to convert a string to a value. You have the   
   > information you need! Fix it!   
   >   
   > For the boneheaded: Here is a recap of the information you need to fix   
   > it:   
   >   
   > - val() converts strings to real numbers. It didn't work for you   
   > because you were passing it an ARRAY of CHARs, not a "string" variable.   
   > Yes, a string is technically an array of chars, but "string" is the   
   > proper variable type if you want to use TP/BP's internal string   
   > handling routines.   
   >   
   > - To append a character to a string, use the "+" operator, like this:   
   > MyString:=MyString+MyChar   
   >   
   > - You can initialize your string to equal nothing like this:   
   > MyString:='' Do this before you start mucking with it, just to be   
   > safe.   
   >   
   > If you want 100% working compilable TP/BP 7.0 code to do exactly what   
   > you want, fine. I will write it completely for you, complete with   
   > comments so you can understand it -- IF you publicly apologize to the   
   > group for being too ignorant to actually read the advice people have   
   > given you.   
   >   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   
|