Vb6 How do I make a Random String of 0-9 and a-z of x characters

后端 未结 8 1882
無奈伤痛
無奈伤痛 2021-02-14 03:29

Trying to create a random string, x characters in length using 0-9 and a-z/A-Z and can\'t seem to find a good example, any ideas?

8条回答
  •  甜味超标
    2021-02-14 03:50

    If you are using SQL database you can generate a PrimaryKey like this:

    SELECT NEWID() as KeyValue

    It's very good way and also very secure.

提交回复
热议问题