How long is my String[32]

From: Christakis John (dontemail_at_me.please.ok)
Date: 10/21/04


Date: Thu, 21 Oct 2004 02:07:20 GMT

Hiya,

I have a record defined like:

type myrecord=record
   string1 : string[32]
end;

and I want to set another var later on to the length of string1. But I want
the 32, not the current length of anything that might be in record. This is
so I can automate a 'You cannot enter more than X chars in this field' type
of message without having to store a separate 32 for this field.

tia,
cj



Relevant Pages

  • Re: How long is my String[32]
    ... >and I want to set another var later on to the length of string1. ... >of message without having to store a separate 32 for this field. ... so subtract 1 and you've got it. ...
    (alt.comp.lang.borland-delphi)
  • cant submit a form
    ... there a second blank field showing up? ...
    (comp.lang.javascript)
  • Re: Parsing a CSV file
    ... procedure TForm1.Button1Click(Sender: TObject); ... > Des anyone have any code or know where I can find code that shows how to ... > parse a CSV file into separate values. ...
    (borland.public.delphi.language.objectpascal)
  • Re: printing variable values seperately.
    ... > echo $var ... > somthing of this sort. ... By "separately" do you mean on separate lines? ...
    (comp.unix.shell)
  • Re: Shortening code
    ... same var aR bit and in the actual js file I use this about 5 times. ... a PHP programmer, I would separate this out and then using include ... alert("Your browser broke!"); ...
    (comp.lang.javascript)