[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 732
  • Last Modified:

what is the function to create random number with 13 digits and alphanumeric in powerbuilder? how it should be written?

thanks
gvilbis
0
gvilbis
Asked:
gvilbis
1 Solution
 
chaauCommented:
Use rand():
for x = 1 to 13
   r = rand(90)
   if r >= 48 and r <= 57 OR r >= 65 AND r <= 90 then
      s = s + char(r)
   else
       x = x - 1
   end if
next

Open in new window

0

Featured Post

Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now