concatenate_required_fields = "amount=" + required.amount + "&interval=" + required.interval + "&product[name]=" + required.product_name + "¤cy=" + required.currency)
?concatenate_required_field
="("amount=2500&interval=month&product[name]=Silver¤cy=usd)"
This is a lot of typing, could this be turned into a function that took the required dot variable and turned it into the needed string? Here is the twist
the number of fields in the dot variable may change, for instance the above may also include more or less required.fields.
Function concatenate_in_curl_format(required,8) 8 being the number of required fields included in the dot variable.
Guess my first step would be parsing the variable. The function would have to detect the required.dots it contained. How can a function dissect the variable?
Then it would have to build the string accordingly. Any xbasic functions or methods to help with this?
Bookmarks