Foxtable(狐表)用户栏目专家坐堂 → 自动输入


  共有1696人关注过本帖树形打印复制链接

主题:自动输入

帅哥哟,离线,有人找我吗?
wlj88868
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:幼狐 帖子:195 积分:1402 威望:0 精华:0 注册:2016/4/27 9:39:00
自动输入  发帖心情 Post By:2024/4/14 13:11:00 [显示全部帖子]

 

Dim n As Integer = 14 '要生成密码长度

Dim str() As String = {"1", "2", "3", "4", "5", "6", "7", "8", "9", "0", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S" , "T", "U", "V", "W", "X", "Y", "Z"}

For i As Integer = 1 To str.Length '洗牌测次数

    Dim n1 As Integer = Rand.Next(str.Length)

    Dim n2 As Integer = Rand.Next(str.Length)

    Dim temp As String = str(n1)

    str(n1) = str(n2)

    str(n2) = temp

Next

Dim s As String = String.Join("", str)

If n > s.Length Then

    n = s.Length

End If

Output.Show(s.Substring(0, n))

 

 

 

老师你好,这个代码要写哪里,我的二维码会增加行的时候自动生成输入,谢谢


图片点击可在新窗口打开查看此主题相关图片如下:1713071210443.png
图片点击可在新窗口打开查看

 回到顶部
帅哥哟,离线,有人找我吗?
wlj88868
  2楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:幼狐 帖子:195 积分:1402 威望:0 精华:0 注册:2016/4/27 9:39:00
  发帖心情 Post By:2024/4/15 20:29:00 [显示全部帖子]

datarowadded就是复制到这里了,,添加行还是没有数据,,,是不是还有加什么代码

上面的代码也是论坛上复制下来的,不会改,,麻烦老师给看看


 回到顶部