Search
Search titles only
By:
Search titles only
By:
Log in
Register
Search
Search titles only
By:
Search titles only
By:
Menu
Install the app
Install
Forums
New posts
All threads
Latest threads
New posts
Trending threads
Trending
Search forums
What's new
New posts
New ads
New profile posts
Latest activity
Free Ads
Latest reviews
Search ads
Members
Current visitors
New profile posts
Search profile posts
Contact us
Latest ads
Ad icon
V2ray VPN for Tunneling
hu KANNA
Updated:
Oct 22, 2026
FREE SEO Check & Google Maps Check for Sri Lankan Businesses | Web Design, Website Price Rs 14,900 |
LankaSolve
Updated:
Oct 20, 2026
ඕනම රටකට සෙට් වෙන CV එකක්
ErMurazor
Updated:
Oct 17, 2026
Hambantota
7 Acres Beachfront Land For Sell DownSouth , PerPerch Price 420 000
1024 Digital
Updated:
Oct 14, 2026
Baseus PI LITE INDOOR CAMERA
ErMurazor
Updated:
Oct 12, 2026
Electronics
Vehicles
Property
Search
Reply to thread
Forums
General
ElaKiri Talk!
pls help for vb coding
Get the App
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Message
<blockquote data-quote="sisira_pr" data-source="post: 16023910" data-attributes="member: 495683"><p>Dear</p><p></p><p>i am a new member for elakiri and also programing . i ueing vb6 for coding and still im starting for lerning that , if u could pls help me to sole following problems</p><p></p><p>thanks</p><p></p><p>sisira</p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p>Pls be kind enough to guide me how to coding this </p><p></p><p>1 st question</p><p></p><p>Dim input as string ( this string contents random numerical numbers with 1 or 2 digts ) </p><p>Dim output(7) as integer</p><p></p><p>X = ( 2 , 3 , 5 , 13 , 16 , 8 , 2)</p><p>--------------------------</p><p>coding( separated by x as 2,3,……… , and return should be integer )</p><p>---------------------------</p><p>result should be</p><p></p><p>output(1)= 2</p><p>output(2)= 3</p><p>output(3)= 5</p><p>output(4)= 13</p><p>output(5)= 16</p><p>output(6)= 8</p><p>output(7)= 2</p><p></p><p></p><p>2 nd question</p><p></p><p>dim student(5) as integer</p><p>dim marks(5) as integer</p><p>dim place(5) as integer</p><p></p><p>student(5)= a,b,c,d,e</p><p>a=80</p><p>b=25</p><p>c=46</p><p>d=90</p><p>e=10</p><p>---------------------------</p><p>coding – sorted as a place</p><p>---------------------------</p><p>result</p><p></p><p>place(1) =d</p><p>place(2) =a</p><p>place(3) =c</p><p>place(4) =b</p><p>place(5) =e</p><p></p><p></p><p>3 rd question</p><p></p><p>dim givenstring as string (random digets)</p><p>dim inputval as string (random digits)</p><p>dim res(1) as string</p><p>dim res(2) as integer</p><p></p><p>given string = { 2,4,10, 12, 5,3}</p><p>inputval = {1,10,3,20,18,9,55}</p><p></p><p>--------------------------</p><p>---------------------------</p><p>coding if any digit of input val contaning given string then “yes” and wich are the value</p><p>---------------------------</p><p>result</p><p></p><p>RES(1)= yes - string</p><p>RES(2)= 10 , 3 - integer </p><p></p><p></p><p>I want to short method now I am coding this like</p><p></p><p>If 1st givenstring 1or 2 or 3 or 4 or 5 or6 then……..</p><p>If 2 nd givenstring 1or 2 or 3 or 4 or 5 or6 then…….. </p><p>If 3 rd givenstring 1or 2 or 3 or 4 or 5 or6 then……..</p><p>If 4th givenstring 1or 2 or 3 or 4 or 5 or6 then……..</p><p>If 5th givenstring 1or 2 or 3 or 4 or 5 or6 then……..</p><p>If 6th givenstring 1or 2 or 3 or 4 or 5 or6 then……..</p><p></p><p></p><p></p><p>Thanks</p><p>sisira</p><p>Reply With Quote</p><p>(#727) </p><p>Unread</p></blockquote><p></p>
[QUOTE="sisira_pr, post: 16023910, member: 495683"] Dear i am a new member for elakiri and also programing . i ueing vb6 for coding and still im starting for lerning that , if u could pls help me to sole following problems thanks sisira Pls be kind enough to guide me how to coding this 1 st question Dim input as string ( this string contents random numerical numbers with 1 or 2 digts ) Dim output(7) as integer X = ( 2 , 3 , 5 , 13 , 16 , 8 , 2) -------------------------- coding( separated by x as 2,3,……… , and return should be integer ) --------------------------- result should be output(1)= 2 output(2)= 3 output(3)= 5 output(4)= 13 output(5)= 16 output(6)= 8 output(7)= 2 2 nd question dim student(5) as integer dim marks(5) as integer dim place(5) as integer student(5)= a,b,c,d,e a=80 b=25 c=46 d=90 e=10 --------------------------- coding – sorted as a place --------------------------- result place(1) =d place(2) =a place(3) =c place(4) =b place(5) =e 3 rd question dim givenstring as string (random digets) dim inputval as string (random digits) dim res(1) as string dim res(2) as integer given string = { 2,4,10, 12, 5,3} inputval = {1,10,3,20,18,9,55} -------------------------- --------------------------- coding if any digit of input val contaning given string then “yes” and wich are the value --------------------------- result RES(1)= yes - string RES(2)= 10 , 3 - integer I want to short method now I am coding this like If 1st givenstring 1or 2 or 3 or 4 or 5 or6 then…….. If 2 nd givenstring 1or 2 or 3 or 4 or 5 or6 then…….. If 3 rd givenstring 1or 2 or 3 or 4 or 5 or6 then…….. If 4th givenstring 1or 2 or 3 or 4 or 5 or6 then…….. If 5th givenstring 1or 2 or 3 or 4 or 5 or6 then…….. If 6th givenstring 1or 2 or 3 or 4 or 5 or6 then…….. Thanks sisira Reply With Quote (#727) Unread [/QUOTE]
Insert quotes…
Verification
Dawasata paya keeyak thibeda?
Post reply
Top
Bottom