Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6702433
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T07:03:11+00:00 2026-05-26T07:03:11+00:00

There’s a 50-odd hard-coded byte list I’d like to store in a byte array,

  • 0

There’s a 50-odd hard-coded byte list I’d like to store in a byte array, but I can’t find Free Pascal’s syntax for hard-coded arrays.

Sets use [elem, elem, elem], so what do arrays use?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T07:03:12+00:00Added an answer on May 26, 2026 at 7:03 am

    try this

    Const
      MyArray : Array[0..3] of byte= (0,1,2,3);   
    

    UPDATE

    you must translate this

    static int xlat[] = {
    0x64, 0x73, 0x66, 0x64, 0x3b, 0x6b, 0x66, 0x6f,
    0x41, 0x2c, 0x2e, 0x69, 0x79, 0x65, 0x77, 0x72,
    0x6b, 0x6c, 0x64, 0x4a, 0x4b, 0x44, 0x48, 0x53,
    0x55, 0x42, 0x73, 0x67, 0x76, 0x63, 0x61, 0x36,
    0x39, 0x38, 0x33, 0x34, 0x6e, 0x63, 0x78, 0x76,
    0x39, 0x38, 0x37, 0x33, 0x32, 0x35, 0x34, 0x6b,
    0x3b, 0x66, 0x67, 0x38, 0x37
    };
    
    static int XLAT_SIZE = 53;
    

    to this

    const
     XLAT_SIZE = 53;
     xlat : Array[0..XLAT_SIZE-1] of Integer = (
     $64, $73, $66, $64, $3b, $6b, $66, $6f,
     $41, $2c, $2e, $69, $79, $65, $77, $72,
     $6b, $6c, $64, $4a, $4b, $44, $48, $53,
     $55, $42, $73, $67, $76, $63, $61, $36,
     $39, $38, $33, $34, $6e, $63, $78, $76,
     $39, $38, $37, $33, $32, $35, $34, $6b,
     $3b, $66, $67, $38, $37
    );
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

There is no problem to get the src or alt separately,but how can get
There's a lot of reading on self referencing problems, but I can't seem to
There are things like f.call(...) f.apply(...) But then there's this (1, alert)('Zomg what is
There is a lot of posts about nested Ajax problems, but I can't figure
there are two databases to compare,but I can't connect one database directly. so I
There are a few ways to get class-like behavior in javascript, the most common
There's http://www.amazon.com/gp/product/0321278542/ but it looks a bit dated. Specificaly, it talks about bits that
There is any syntax to use something like this?: <?php function get_foo() { return
there's a CMS system and there's aspx page without backend file. I can add
There is a strange bug which I can't solve. The bug is reproducable by

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.