Need Help please, very important... 
Author Message
 Need Help please, very important...

Hi,
        I'm a beginner in Visual Basic and i'd like to
        Take a program that i have made with Turbo Pascal
        7.0 and rebuild it for VB. I have some problem
        to give to my VB variable and constant the same type
        as the one in my TP source.

    Someone can tell me how i rebuild this "RECORD"
        to be useable in VB ??

--------

TYPE
   packed_14_chars = array[1..14] of char;
   packed_20_chars = array[1..20] of char;
   packed_25_chars = array[1..25] of char;

TYPE

 My_Record = record
     name:                   packed_25_chars;    
     Location:              packed_20_chars;  
     Phone_Number:   packed_14_chars;  
     Calls:                    integer;          
     Info_Init:              double;            
     JUNK:                  array[1..820] of byte;
     Info_Done:          byte;
     Flag:                    word;
     reserved:             longint;
     New:                   boolean;
     Info1:                  String[60];
     Gender:              Char;      
     script:                 array[1..37] of char;
 End;

--------
Which type i use for double, byte, array, word ??

Thanks a lot for all...



Fri, 09 Oct 1998 03:00:00 GMT  
 Need Help please, very important...

Quote:
> My_Record = record
>     name:                   packed_25_chars;    
>     Location:              packed_20_chars;  
>     Phone_Number:   packed_14_chars;  
>     Calls:                    integer;          
>     Info_Init:              double;            
>     JUNK:                  array[1..820] of byte;
>     Info_Done:          byte;
>     Flag:                    word;
>     reserved:             longint;
>     New:                   boolean;
>     Info1:                  String[60];
>     Gender:              Char;      
>     script:                 array[1..37] of char;
> End;

Type My_Record
        Name as String * 25
        Location as String * 20
        Phone_Number as String * 14
        Calls as Integer
        Info_Init as Double
        JUNK as String * 820
        Info_Done as String * 1 ' VB doesn't have Byte
        Flag As String * 2 ' VB doesn't have Word
        Reserved as Long
        New as Integer ' VB doesn't have boolean
        Info1 as String
        Gender as String
        Script as String * 37
End Type        

I think...


--
Real programmers never work 9 to 5. If any Real Programmers are
around at 9:30 AM, it's because they were up all night.

http://www.sn.no/~balchen/
ftp://ftp.sn.no/user/balchen/



Sat, 10 Oct 1998 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. PLEASE HELP, PLEASE HELP, PLEASE HELP, PLEASE HELP, PLEASE HELP, PLEASE HELP, PLEASE HELP,

2. Important Please Help

3. Important Please Help

4. important database question, please help me?

5. please help me !!!!!!!!!!!!!! it very important

6. Important Please Help...

7. Components/ASP problem . Please help,very important

8. Loading PCX (important, please help!)

9. Please help...This is important.

10. Please help...This is important.

11. Important Please Help

12. Important Please Help

 

 
Powered by phpBB® Forum Software