- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Is there a maximum length of the character variable "buffer" in the intrinsic routine GETARG?
CALL GETARG(n,buffer[,status])
I am making a call with the variable "buffer" defined with len=255. When I try to get an argument with > 133 characters, I only get the first 133. The return value of staus is 133.
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I can't reproduce this - I just tried an argument of 140 characters and got all 140. I looked at the code for GETARG and saw nothing that limits the length.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Oops. User error. A space snuck into my long command line argument, which of course made it two arguments.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page