Jump to content

Calling Vbscript Experts....


Recommended Posts

Posted

babulu....


[b]String 1 ...[/b]

Code
Description
Hourly Rate
Live
AUTO
Vehicle Mechanica
AUTO2
Vehicle Mechanic Level 2
£1.00
ELC
Electrician Level 1
£100.00
IT-DB
IT Database Engineer
£155.99
IT-DESK
IT Desktop Support Engineer
£175.89
IT-NET
IT Network Engineer
£99.01
PLU
Plumber Level 1
£100.00
PLU2
Plumber Level 2
£125.00
TECH
General Technician
£75.00







[b]String 2 ..[/b]

AUTO AUTO2 ELC IT-DB IT-DESK IT-NET PLU PLU2 TECH



gippudu matter enti ante string 2 lo vunna words string 1 lo ade order lo vunnaya leda ani chudali..... helppppp

Posted

string one
lo line break(s) vunnada?

Posted

[quote name='cherlapalli_jailer' timestamp='1374679062' post='1304003780']
string one
lo line break(s) vunnada?
[/quote]
line breaks ledule.. varusaga vuntayi anuko with spaces....

Posted

em ledu vayyaa.. okka grid ku data add chestunnaru.... anni rows laga add avuthayi...

so string 1 vachesi motham grid data

so AUTO anedi first row and AUTO2 anedi second row ala vundali ani validation cheyali...

Posted

buvva tini vachhi istanu

Ee lopala evariyana iste well n good

Posted

[quote name='cherlapalli_jailer' timestamp='1374679337' post='1304003801']
buvva tini vachhi istanu

Ee lopala evariyana iste well n good
[/quote]

Good

Posted

[quote name='cherlapalli_jailer' timestamp='1374679337' post='1304003801']
buvva tini vachhi istanu

Ee lopala evariyana iste well n good
[/quote]

k... antha thondaremi ledule... take your time..eroju day ipothundi elagu naaku...
nenu kuda try chestunnaa
thx for reply..

Posted

second string lo words find out chesi aaa words position in first string lo kanukkoni... aaa positions compare chesukovali anukuntunnaa... but syntax frame cheyalekapotunna...

Posted

my 2 cents..StrComp ani VB function vundi kada....Just check this site....
[b] [url="http://www.w3schools.com/vbscript/func_strcomp.asp"]http://www.w3schools.com/vbscript/func_strcomp.asp[/url][/b]

Posted

[quote name='NewUser123' timestamp='1374679929' post='1304003848']
my 2 cents..StrComp ani VB function vundi kada....Just check this site....
[b] [url="http://www.w3schools.com/vbscript/func_strcomp.asp"]http://www.w3schools...unc_strcomp.asp[/url][/b]
[/quote]
thx for reply.. but it doesnt serve my req..

Posted

[quote name='IamN0tTrouble' timestamp='1374678996' post='1304003774']
babulu....


[b]String 1 ...[/b]

Code
Description
Hourly Rate
Live
AUTO
Vehicle Mechanica
AUTO2
Vehicle Mechanic Level 2
£1.00
ELC
Electrician Level 1
£100.00
IT-DB
IT Database Engineer
£155.99
IT-DESK
IT Desktop Support Engineer
£175.89
IT-NET
IT Network Engineer
£99.01
PLU
Plumber Level 1
£100.00
PLU2
Plumber Level 2
£125.00
TECH
General Technician
£75.00







[b]String 2 ..[/b]

AUTO AUTO2 ELC IT-DB IT-DESK IT-NET PLU PLU2 TECH



gippudu matter enti ante string 2 lo vunna words string 1 lo ade order lo vunnaya leda ani chudali..... helppppp
[/quote]
now another doubt is

will the string 1 and 2 have

all the values ?

like AUTO , AUTO2 ELC IT-DB

or some time it may be like AUTO , ELC IT-DB
means some of them might be missing

Posted

we can check the order easily ..if all the words are mandatory

if they r not mandatory then ...we have to add extra logic

Posted

3rd doubt...
in string one

AUTO [color=#282828][font=helvetica, arial, sans-serif][size=3][background=rgb(247, 247, 247)]Vehicle Mechanica AUTO2 [/background][/size][/font][/color][color=#282828][font=helvetica, arial, sans-serif][size=3][background=rgb(247, 247, 247)]Vehicle Mechanic Level 2 [/background][/size][/font][/color][color=#282828][font=helvetica, arial, sans-serif][size=3][background=rgb(247, 247, 247)]£1.00[/background][/size][/font][/color]
[color=#282828][font=helvetica, arial, sans-serif][size=3][background=rgb(247, 247, 247)]we cannot use space to divide[/background][/size][/font][/color]
[color=#282828][font=helvetica, arial, sans-serif][size=3][background=rgb(247, 247, 247)]if u look @ the above string[/background][/size][/font][/color]
[color=#282828][font=helvetica, arial, sans-serif][size=3][background=rgb(247, 247, 247)]there is no way i can file AUTO and AUTO2[/background][/size][/font][/color]

[color=#282828][font=helvetica, arial, sans-serif][size=3][background=rgb(247, 247, 247)]some times coz it may be lke this also right?[/background][/size][/font][/color]
AUTO [color=#282828][font=helvetica, arial, sans-serif][size=3][background=rgb(247, 247, 247)]Vehicle Mechanica $300 AUTO2 [/background][/size][/font][/color][color=#282828][font=helvetica, arial, sans-serif][size=3][background=rgb(247, 247, 247)]Vehicle Mechanic Level 2 [/background][/size][/font][/color][color=#282828][font=helvetica, arial, sans-serif][size=3][background=rgb(247, 247, 247)]£1.00[/background][/size][/font][/color]
AUTO [color=#282828][font=helvetica, arial, sans-serif][size=3][background=rgb(247, 247, 247)]Vehicle Mechanica AUTO2 [/background][/size][/font][/color][color=#282828][font=helvetica, arial, sans-serif][size=3][background=rgb(247, 247, 247)]Vehicle Mechanic Level 2 [/background][/size][/font][/color][color=#282828][font=helvetica, arial, sans-serif][size=3][background=rgb(247, 247, 247)]£1.00[/background][/size][/font][/color]

[color=#282828][font=helvetica, arial, sans-serif][size=3][background=rgb(247, 247, 247)]so if u look those string 1(s)[/background][/size][/font][/color]
[background=rgb(247, 247, 247)][font="helvetica, arial, sans-serif"][color="#282828"][size=3]there is no proper pattern[/size][/color][/font][/background]
[background=rgb(247, 247, 247)][font="helvetica, arial, sans-serif"][color="#282828"][size=3]to identify AUTO and AUTO2 and etc [/size][/color][/font][/background]

Posted

or if
[color=#282828][font=helvetica, arial, sans-serif]AUTO AUTO2 ELC IT-DB IT-DESK IT-NET PLU PLU2 TECH[/font][/color]
[color=#282828][font=helvetica, arial, sans-serif]these are all mandatory [/font][/color]
[color=#282828][font=helvetica, arial, sans-serif]and not sure of how String 1 will be then [/font][/color]
[color=#282828][font=helvetica, arial, sans-serif]there is way to do[/font][/color]
[color=#282828][font=helvetica, arial, sans-serif]what out put u need if match and/or doesn't match[/font][/color]

×
×
  • Create New...