beetlebailey
Programmer
I am using an Allen/Bradley 1746-BAS basic module. Within it's basic code is a variable in which I want to manipulate. The data is stored in string variable $(0) is 987723605XXXA9347286. Any ideas on how to access this string variable so I can chop it up into 3 pieces. The formula provided by johnwm works great like this:
10 A$ = "987723605XXXA9347286"
20 B$ = LEFT$(A$,4)
30 C$ = MID$(A$,5,8)
40 D$ = RIGHT$(A$,8)
which breaks up the string nicely into 3 pieces. But I cannot seem to get $(0) set to A$ or A$ to equal $(0).
Any ideas on what is going on here ?
Thanks
10 A$ = "987723605XXXA9347286"
20 B$ = LEFT$(A$,4)
30 C$ = MID$(A$,5,8)
40 D$ = RIGHT$(A$,8)
which breaks up the string nicely into 3 pieces. But I cannot seem to get $(0) set to A$ or A$ to equal $(0).
Any ideas on what is going on here ?
Thanks