vb Question Store the information, VB save the information

Updated on technology 2024-05-13
9 answers
  1. Anonymous users2024-02-10

    You can add an additional write profile. cfg to save the location information of the window.

  2. Anonymous users2024-02-09

    What do you mean? Please tell me more about it.

  3. Anonymous users2024-02-08

    Put it in the form load, write it to Notepad, ini or registry that's not what I want. ”

    Then you just don't want to solve this problem.

    No matter what method is used, if you need to take **, **will always occupy a certain amount of space, even if you use resource files, the generated file size still has to add **space.

    You can try to make all ** into a compressed package and add it to the resource file, maybe it will be smaller, and then release it to the temporary folder when it is displayed.

  4. Anonymous users2024-02-07

    You can put ** in the resource file.

  5. Anonymous users2024-02-06

    Write an ini file to save the visibel attribute of the command.

  6. Anonymous users2024-02-05

    A file will be written when the program is closed, and the value of the file will be read the next time it is opened.

  7. Anonymous users2024-02-04

    It's just a simple process of string data.

    mid(ystr,10,4) is the 0002 you want

  8. Anonymous users2024-02-03

    Create a new table for logging.

    Then, similar to the above query, execute the method execution command. The command format is:

    insert into the table name [table structure, which must be entered if it contains automatic numbers] values

  9. Anonymous users2024-02-02

    The information to be stored in the VB is written through an external file, which involves the problem of reading and writing files. I'll just teach you how to read and write random files.

    First, define a data type, for example:

    type xinxi

    qudong as string

    mulu as string

    wenjian as string

    end type

    Then, define a variable for the above data types, such as:

    dim kk as xinxi

    Then, before the program closes, attach the information of the drive list box, directory list box, and file list box to the three elements of this variable, such as:

    Then, write the variable to a random file, such as:

    open "d:\" for random as #1 len=100

    put #1,,kk

    close #

    open "d:\" for random as #1 len=100

    get #1,,kk

    close #

    Then, attach the values of each element of the kk to the corresponding control, such as:

    That's it. If there's anything you don't understand, you can keep asking me, but I hope you really give me this answer, and if you can, it's best to add a little extra points

Related questions
17 answers2024-05-13

if = "" or = "" or = "" or = "" or = "" then

msgbox "Please enter full details! ", 64, "Tips" >>>More

10 answers2024-05-13

Answer addendum: The engineering file can't be opened? Is it that FRM can't be opened or VBP can't be opened? I really can't try this method: open your frm file with Notepad and start from version >>>More

6 answers2024-05-13

Method steps.

1. There are many ways to export mobile phone text messages, here I take Android mobile phones as an example, and then you need to install 360 mobile phone assistant or other similar software, and then establish a connection on Android mobile phones and PCs. >>>More

7 answers2024-05-13

Knotted rope notes. Book, Jane, silk, paper.

4 answers2024-05-13

Create a new project with two forms: form1, form2

There are two controls on form1: command button command1 and timer1There are two controls on form2: label label1 and timer1 click the command button when the program is running, the command button disappears, wait for 1 second and then pop up form 2 display: >>>More